Skip to main content

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.txt to do an editable install
  • Run pytest to 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)

Source distribution for pycify 1.2.0
File Size Uploaded
pycify-1.2.0.tar.gz 5.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pycify 1.2.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.1.0

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page