django-pyc
django-pyc is a package that implements additional commands for Django’s manage.py command.
django-pyc allows to remove or recompile all .pyc files in the project or Python libraries.
Installation
Install with pip or pipenv:
pip install django-pyc
Add django_pyc to your installed apps in your settings.py file:
INSTALLED_APPS = [
'django_pyc',
...
]
Commands
clearpyc
Clears .pyc files from the project.
Options:
- --noinput
Do NOT prompt the user for input of any kind.
- -f, --force
Force the removing files without user interaction.
- -p, --with-pythonpath
Remove also PYTHONPATH libraries.
- path
Directories with libraries
Example:
Run command for application directory only, without prompts and list processed files:
./manage.py clearpyc --noinput --verbosity 2 application
compilepyc
Compiles .pyc files in the project.
Options:
- -f, --force
Force the compiling files even if timestamps are up-to-date.
- -p, --with-pythonpath
Compile also PYTHONPATH libraries.
- path
Directories with libraries
Example:
Run command Run command for application directory only and list processed files:
./manage.py compilepyc --verbosity 2 application
Documentation
License
Copyright © 2014, 2019, Piotr Roszatycki
This software is distributed under the GNU Lesser General Public License (LGPL 3 or greater).
Metadata
Release files for django-pyc 1.1.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 | |
|---|---|---|---|
| django-pyc-1.1.0.tar.gz | 16.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_pyc-1.1.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 23.7 kB
Release files / django-pyc-1.1.0.tar.gz
| Download URL | django-pyc-1.1.0.tar.gz |
|---|---|
| Size | 16.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4ad36152db18c981ae13696ab7f149103664a4ce81fefe661cb3926efb44eebf
|
|
BLAKE2b-256 checksum How to use checksums |
dd120ff797878baf89aac27bdcf24a41a375252c512a7ae9855698b601876867
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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.26.0 CPython/3.7.3
|
Release files / django_pyc-1.1.0-py2.py3-none-any.whl
| Download URL | django_pyc-1.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
da99a1808a1976d25fb84dc63f53d6cdaf5136c76518c48266a3bab300ec7483
|
|
BLAKE2b-256 checksum How to use checksums |
eb5404b5ce298619b7efa7a67d02ed278b7477df8ac824bc4ec048ab2e092b36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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.26.0 CPython/3.7.3
|