Create the file and folder structure for a Python package
Project description
create-python-package
Initialize a new package using best practices as described by the Python Packaging Authority (PyPA). Perfect for beginners and experts alike. No more guesswork!
Quick Overview
create-python-package mypackage
cd mypackage
source activate-venv
And to publish, run
publish-python-package mypackage
Virtualenv ready to go!
Inside the directory you can run
source activate-venv
to activate an isolated Python environment that was created specifically for that package. To deactivate it, type
deactivate
To learn more about virtual environments, see Creating Virtual Environments.
Usage and Installation
pipx allows you to run or install Python binaries from packages
To run the latest version
> pipx create-python-package mypackage # directly runs latest version
and to publish
> pipx --package create-python-package publish-python-package mypackage # directly runs latest version
To install to your system and freeze the version
> pipx install create-python-package
Requires Python 3.6+.
Example Session
> create-python-package /tmp/fake
Creating a new Python package in /private/tmp/fake
Creating a virtual environment at /private/tmp/fake/venv
Upgrading pip in the virtual environment.
Initialized a git repository.
Success! Created fake at /private/tmp/fake
Inside that directory, you can run several commands
source activate-venv
Activates this package's isolated Python environment
pip install PACKAGE
Installs a package to current environment
pip install -e .
Installs this package in editable mode to the current environment
We suggest that you being by typing:
cd fake
source activate-venv fake
To deactivate the virtual environment, type `deactivate`.
Questions? Create an issue at https://github.com/cs01/create-python-package
Happy hacking!
Credits
Created and published using create-python-package
😄
Inspired by create-react-app
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file create-python-package-0.0.0.4.tar.gz
.
File metadata
- Download URL: create-python-package-0.0.0.4.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.6.2+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0be064d0b028d85fb55ea351cf1505cc371adeb1f7730453c0b56c65710cea51 |
|
MD5 | f3eb9e2c5c3b57f4e02830c59d79f63c |
|
BLAKE2b-256 | 5c5a840a94de0fc9c8731af80368de420602d0f3f4d9642f0481a537a7cf5a80 |
File details
Details for the file create_python_package-0.0.0.4-py3-none-any.whl
.
File metadata
- Download URL: create_python_package-0.0.0.4-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.6.2+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6d303e81e79ed5f0a279be434267aad14fca234b65a0e09e4cfd9f40d807cdd |
|
MD5 | 68c46a18c3b7775796d97dad1ad442e5 |
|
BLAKE2b-256 | 9fade0acbad21c41d2c4338286b470454c431ba73db77f062fe6c6bf2c4dcb90 |