Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
align
Browse files Browse the repository at this point in the history
davidkhala committed Jan 31, 2025
1 parent e369f33 commit 61f36a6
Showing 4 changed files with 20 additions and 5 deletions.
7 changes: 3 additions & 4 deletions davidkhala/syntax/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from enum import Enum
from typing import Callable

from typing import Callable, Iterable
import platform

class Package:
def __init__(self, name: str):
@@ -13,12 +13,11 @@ def _generate_next_value_(name, start, count, last_values):
return name


def for_each(content: list, on_each: Callable[[int, str], None]):
def for_each(content: Iterable, on_each: Callable[[int, str], None]):
for index, value in enumerate(content):
on_each(index, value)


import platform


class Version:
13 changes: 13 additions & 0 deletions env/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# [pyenv](https://github.com/pyenv/pyenv)
Simple Python Version Management
- equivalent to `nvm` in nodejs ecosystem

Features
- Independent of Python: made from pure shell scripts
- pyenv's shim approach works by adding a directory to your `$PATH`

Limit
- > Pyenv does not officially support Windows
- Recommended solution: [`pyenv-win`](https://github.com/pyenv-win/pyenv-win)

# venv
File renamed without changes.
5 changes: 4 additions & 1 deletion venv.sh → env/venv.sh
Original file line number Diff line number Diff line change
@@ -2,4 +2,7 @@ create() {
python3 -m venv venv
source venv/bin/activate
}
$@
exit(){
deactivate
}
"$@"

0 comments on commit 61f36a6

Please sign in to comment.