Skip to main content

Manny

Django cli add-on for generating apps, models, serializers, views, urls

Installation

Install with pip:

$ pip install manny

Then add it to your INSTALLED_APPS.

INSTALLED_APPS = (
    ...
    'rest_framework',
    'scaffold',
    ...
)

Usage

To create multiple apps at once, run the following command, where args are future app names:

$ python manage.py scaffold-app app1 app2 ...

To create models, serializers, views, urls, run the following command:

$ python manage.py scaffold {app_name} {options}
Option
-m, --model {fields} Add a model with specific fields. Default fields: update_date, create_date
-s, --serializers {model_names} Add a new serializer for the specific model; by default for all models
-vi, --views {model_names} Add a view for the specific model; by default for all models
-u Add urls for all models

To create models, use the following syntax:

$ python manage.py scaffold {app_name} -m {model_name} title:Char:255 books:Foreign::CASCADE

To specify a field, you must pass the arguments in this order:

NAME:FIELD_TYPE:FIELD_OPTIONS(only required)

Field options are optional because there are default values.
Result:

class Book(models.Model):
    title = models.CharField(max_length=255)
    books = models.ForeignKey("self", on_delete=models.CASCADE)
    update_date = models.DateTimeField(auto_now=True)
    create_date = models.DateTimeField(auto_now_add=True)

    class Meta:
        ordering = ["-id"]

Metadata

Release files for manny 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for manny 0.1.4
File Size Uploaded Provenance Actions
manny-0.1.4.tar.gz 7.2 kB Without provenance Details for manny-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for manny 0.1.4
File Interpreter ABI Platform Actions
manny-0.1.4-py3-none-any.whl Python 3 none any Details for manny-0.1.4-py3-none-any.whl

Total release size: 16.8 kB

Release files / manny-0.1.4.tar.gz

Download URL manny-0.1.4.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
49eaf76bb4b08539b315d2cfb264fba6635e9a2aaea3884afd4fa32244fc26e8
BLAKE2b-256 checksum
How to use checksums
deda884bfe99e3c2d51d3031e38afa282f0b0973408a372f981dc2c57ef370cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0

Release files / manny-0.1.4-py3-none-any.whl

Download URL manny-0.1.4-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b69c7c06ed543c11ef5784610300fcc24fab0e4a8dd922cad7645856bfc3b0f4
BLAKE2b-256 checksum
How to use checksums
2c02a1092bbd3b04da2fdb17c0178c54dc8037211f79443eade7644bf031b9eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0

Security for manny 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page