Skip to main content

Manage .pyc files in Django project

Project description

https://img.shields.io/pypi/v/django-pyc.png https://travis-ci.org/dex4er/django-pyc.png?branch=master https://readthedocs.org/projects/django-pyc/badge/?version=latest

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.

--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.

-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

License

Copyright © 2014, 2019, Piotr Roszatycki

This software is distributed under the GNU Lesser General Public License (LGPL 3 or greater).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-pyc-1.0.0.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

django_pyc-1.0.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file django-pyc-1.0.0.tar.gz.

File metadata

  • Download URL: django-pyc-1.0.0.tar.gz
  • Upload date:
  • Size: 6.4 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.26.0 CPython/3.7.3

File hashes

Hashes for django-pyc-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c9da0f89c27aa06fc7cef470851322dadbd286fd2d6604402adae316b07b0b3b
MD5 f782fefd6ed1d79e62ac8daa19f01528
BLAKE2b-256 89efb6fa56bd347d8b41fb55df43a491ee567eab11e3cb7833207b0f7cd1d90d

See more details on using hashes here.

File details

Details for the file django_pyc-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: django_pyc-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.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.26.0 CPython/3.7.3

File hashes

Hashes for django_pyc-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4fc1445d65ec3a4ae43b1c1286c8841dbf11901c53c28959162f1b4580f5814b
MD5 cd348994b715835f862673a820195361
BLAKE2b-256 ed1af1a5773e8697da093b0553c9658c42d3ab249d50ed20eb78b2fbe5bda134

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page