Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tusharsadhwani/pycify
Convert your entire Python project from .py files to .pyc files.
https://github.com/tusharsadhwani/pycify
pyc pycache python
Last synced: about 2 months ago
JSON representation
Convert your entire Python project from .py files to .pyc files.
- Host: GitHub
- URL: https://github.com/tusharsadhwani/pycify
- Owner: tusharsadhwani
- License: mit
- Created: 2023-10-21T07:23:11.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-21T21:32:18.000Z (6 months ago)
- Last Synced: 2024-10-15T02:29:42.625Z (2 months ago)
- Topics: pyc, pycache, python
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pycify
Convert your entire Python project from `.py` files to `.pyc` files.
## Installation
```bash
pip install pycify
```## Usage
```console
$ 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.pyc2 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:
```bash
rm -rf build dist
python setup.py sdist bdist_wheel
```Then upload it to PyPI using [twine](https://twine.readthedocs.io/en/latest/#installation):
```bash
twine upload dist/*
```