pycify
Convert your entire Python project from .py files to .pyc files.
Installation
pip install pycify
Usage
$ python cli.py
Hello CLI!
$ pycify .
Replacing ./utils/foo.py with ./utils/__pycache__/foo.cpython-311.pyc
Replacing ./cli.py with ./__pycache__/cli.cpython-311.pyc
$ tree .
.
├── cli.pyc
└── utils
└── foo.pyc
2 directories, 2 files
$ python cli.pyc
Hello CLI!
Local Development / Testing
- Create and activate a virtual environment
- Run
pip install -r requirements-dev.txtto do an editable install - Run
pytestto run tests
Type Checking
Run mypy .
Create and upload a package to PyPI
Make sure to bump the version in setup.cfg.
Then run the following commands:
rm -rf build dist
python setup.py sdist bdist_wheel
Then upload it to PyPI using twine:
twine upload dist/*
Metadata
Release files for pycify 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pycify-1.2.0.tar.gz | 5.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pycify-1.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.8 kB
Release files / pycify-1.2.0.tar.gz
| Download URL | pycify-1.2.0.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cac7ab09b18c4692a1c1259b57a480051d8bbcdc181ca2512612fdb8e9b01d8f
|
|
BLAKE2b-256 checksum How to use checksums |
46cd6b075752358ccfb232d7aec9226666b52ca4fd537708255f3a32ef987f67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.3
|
Release files / pycify-1.2.0-py3-none-any.whl
| Download URL | pycify-1.2.0-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
41e92192f1d16d6e15872a52445e7b14d5492f0e1cf40730e7dd2db32a7b4785
|
|
BLAKE2b-256 checksum How to use checksums |
e14ece6f12b0b8d2cf22358d1117a3d85fab76a13d87e90b47bb6376885c2343
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.3
|