Skip to main content

A Django app for compiling Python files

Project description

Django Compiler

django-compiler is a Django package that provides a custom management command to compile Python files within a directory while allowing you to exclude specific directories from the compilation process.

Features

  • Easily compile Python files in your Django project.
  • Exclude specific directories from compilation.
  • Simple and user-friendly command-line interface.

Installation

You can install django-compiler via pip:

pip install django-compiler

add django_compiler to your INSTALLED_APPS:

# settings.py
INSTALLED_APPS = [
    # ...
    'django_compiler',
    # ...
]

Usage

After installing the package, you can use the provided compile management command to compile Python files within your Django project. Here's how to use it:

python manage.py compile

Options

--exclude-dirs: Specify one or more directories to exclude from the compilation. Use space-separated directory names. For example:

python manage.py compile --exclude-dirs dir1 dir2

This command will compile Python files within your Django project while excluding the specified directories.

Contributing

If you'd like to contribute to this project, please follow these guidelines:

  • Fork the repository.
  • Create a new branch for your feature or bug fix.
  • Make your changes and ensure they are well-tested.
  • Create a pull request to merge your changes into the main repository.

License

MIT

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-compiler-0.45.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file django-compiler-0.45.tar.gz.

File metadata

  • Download URL: django-compiler-0.45.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for django-compiler-0.45.tar.gz
Algorithm Hash digest
SHA256 8e17893efae72fb714f7f2fe5a765654bf3baeb5558ae7bf52dd2b576f714243
MD5 4a55cb897e1ed1593025616fff36db34
BLAKE2b-256 743dc605b14f920a9f5e225f5c86ba21ca6189758e3c3c373011f8b1a698f08d

See more details on using hashes here.

Supported by

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