Skip to main content

FlaskMason

FlaskMason is a command-line tool designed to quickly scaffold Flask applications with a Django-like project structure. It automates the creation of a boilerplate project with organized blueprints, configuration files, and other essential components, allowing developers to focus on building features instead of setting up their environment.

Features

  • Django-like Folder Structure: Automatically creates a structured layout for your Flask projects, including blueprints for authentication, admin, and more.
  • Predefined Boilerplate Code: Generates essential files with predefined content, reducing the need for repetitive setup.
  • Easy Installation: Installs all necessary dependencies with a single command.

Installation

You can install FlaskMason via pip. To install it along with its dependencies, run:

pip install flaskmason

Usage

To create a new Flask project, simply run:

flaskmason <project_name>

This command will generate a new directory called <project_name> containing the following structure:

<project_name>/
├── app.py
├── config.py
├── requirements.txt
├── .env
├── blueprints/
│   ├── __init__.py
│   ├── auth/
│   │   ├── __init__.py
│   │   ├── views.py
│   │   ├── models.py
│   │   └── forms.py
│   └── admin/
│       ├── __init__.py
│       ├── views.py
│       ├── models.py
│       └── forms.py
├── static/
└── templates/

Example Commands

  1. Create a new Flask project:

    flaskmason my_flask_project
    
  2. Change directory into the new project:

    cd my_flask_project
    
  3. Run the application:

    python app.py
    

File Descriptions

  • app.py: The main application file where the Flask app is created and configured.
  • config.py: Contains configuration settings for the application, such as database URI and secret keys.
  • blueprints/: Directory for organizing application features into blueprints, improving modularity and maintainability.
  • static/: Directory for static files (CSS, JavaScript, images).
  • templates/: Directory for HTML templates used in rendering views.

Contributing

Contributions are welcome! If you have suggestions or find bugs, please open an issue or submit a pull request.

  1. Fork the repository.
  2. Create your feature branch (git checkout -b feature/YourFeature).
  3. Commit your changes (git commit -m 'Add some feature').
  4. Push to the branch (git push origin feature/YourFeature).
  5. Open a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Author

Akash Nath

Acknowledgements

  • Thanks to the Flask community for providing an excellent framework for web development.

Notes:

  • Personalize the Author Section: Update the author section with your name and any other relevant details, like your LinkedIn or personal website, if desired.
  • Add More Details: Feel free to expand on any sections, add more examples, or include additional features you plan to implement in the future.
  • Contribution Guidelines: You might want to include more specific contribution guidelines if you expect contributions from others.

Metadata

Release files for flaskmason 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 flaskmason 0.1.4
File Size Uploaded Provenance Actions
flaskmason-0.1.4.tar.gz 4.7 kB Without provenance Details for flaskmason-0.1.4.tar.gz

Built distribution (wheel)

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

Total release size: 9.7 kB

Release files / flaskmason-0.1.4.tar.gz

Download URL flaskmason-0.1.4.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5e79c05420006ce09f2b020a6cbaa27c8df97b1cacc26aa775e7026ffec7e285
BLAKE2b-256 checksum
How to use checksums
dcf86cf151c288a89cfe63081a38ba4d54d58785a8a113e26f10d87b750f0726
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

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

Download URL flaskmason-0.1.4-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
687921ae7d4377a719925feec76ec9fe82e5cd66cea29667e4726be963862ebd
BLAKE2b-256 checksum
How to use checksums
29b28142df721223ee2db8049e64d3d88e739674cac9be6ac87dd2630ed8c70a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Security for flaskmason 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