Dead simle wrapper for venv
Project description
💀💀💀 deadsimplevenv
Simple wrapper for python venv
If you want to automate python project structure creation and great projects as POETRY cannot be used in your envinronment, you can try deadsimplevenv. It does not add anything special and it stucks with basic python setuptools 🛠.
How to use
What it does for me
-
It will create following folder structure by default:
. ├── .cz.toml ├── .git ├── .gitignore ├── .venv ├── LICENSE ├── README.md ├── my_ultra_mega_project │ └── __ini__.py ├── setup.cfg └── setup.py
-
It will create venv and install/upgrade following packages (you can add/remove packages in your config):
- pip
- setuptools
- wheel
- black
- pylint
- commitizen
-
It will connect to your devops platform (github or gitlab) and create project and make initial commit.
Installation
# Make dir for deadsimplevenv
λ mkdir deadsimplevenv && cd deadsimplevenv
# Use python -m venv for the last time :))
λ python -m venv .venv && source .venv/bin/activate
# Install deadsimplevenv
λ[.venv] pip install deadsimplevenv
# OPTIONAL - make alias for deadsimplevenv
λ[.venv] which deadsimplevenv
/path/to/the/deadsimplevenv/.venv/bin/deadsimplevenv
λ[.venv] echo "alias deadsimplevenv=/path/to/the/deadsimplevenv/.venv/bin/deadsimplevenv" >> ~/.bashrc
λ[.venv] source ~/.bashrc
Token needed
You need to specify gitlab or github token in the config file.
Options
-p, --project PATH | Project name |
-d, --description TEXT | Brief project description |
-u, --username TEXT | Your username |
-n, --name TEXT | Your full name |
-e, --email TEXT | Your email adress |
-l, --license [MIT|GNU|EMPTY] | Project license |
--devops_platform [github|gitlab] | Your devops platform |
--devops_url TEXT | Your devops url |
--devops_group TEXT | Your devops group |
--makerepo / --norepo | Create repo in DEVOPS |
--private / --public | Create repo in DEVOPS |
--help | Show this message and exit. |
Config file
You can make your own config file in default config locations for each platform:
- Other Unix: $XDG_CONFIG_HOME/app and ~/.config/deadsimplevenv
- OS X: ~/.config/app and ~/Library/Application Support/deadsimplevenv
Check example config in examples folder for possible parameters.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file deadsimplevenv-0.2.0.tar.gz
.
File metadata
- Download URL: deadsimplevenv-0.2.0.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28b0ec952db8e416f03da861be9eb522510d98f33f655f47e6cfe1b9815a9edf |
|
MD5 | 9fc8008fde4fa02c80f716fd6f904862 |
|
BLAKE2b-256 | 6a9310068707a8474907cb89cd0c6af8e8d05f653b53fd311a1e9d2812352cf1 |