Skip to main content

Manage .pyc files in Django project

Project description


django-pyc is a package that implements additional commands for Django’s command.

django-pyc allows to remove or recompile all .pyc files in the project or Python libraries.


Install with pip or pipenv:

pip install django-pyc

Add django_pyc to your installed apps in your file:




Clears .pyc files from the project.


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.
Directories with libraries


Run command for application directory only, without prompts and list processed files:

./ clearpyc --noinput --verbosity 2 application


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.
Directories with libraries


Run command Run command for application directory only and list processed files:

./ compilepyc --verbosity 2 application


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.

Files for django-pyc, version 1.1.0
Filename, size File type Python version Upload date Hashes
Filename, size django_pyc-1.1.0-py2.py3-none-any.whl (7.4 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size django-pyc-1.1.0.tar.gz (16.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page