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.3.tar.gz (3.9 kB view hashes)

Uploaded Source

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