Skip to main content

cam CLI is a command-line tool for creating boilerplate code for various types of applications

Project description

cam cli

cam cli is a command-line tool for creating boilerplate code for various types of applications including vanilla JavaScript frontend web apps, Python module, Flask app, and etc.

Installation

You can install cam cli using pip and pip3:

pip3 install cam-cli-tool

Command list

  • cam create-js-app .
  • cam create-py-module .
  • cam create-flask-app .
  • cam create-js-app <app_name>
  • cam create-py-module <app_name>
  • cam create-flask-app <app_name>
  • cam run

note: . mains create app in current directory.

Usage

Once installed, you can use the following commands to create different types of applications:

Create a Vanilla JavaScript Frontend Web App

Command

cam create-js-app <app_name>

Nagivate to <app_name> directory

cam run

it will start the development server.

Directory tree

app_name/
│
├── assets/
│   ├── icons/
|   |   └── favicon.svg
|   └── images/
|
├── meta/
│   ├── config_script.js
│   └── config_styles.css
|
├── src/
│   ├── index.js
│   └── other_js_files
|
├── styles/
│   ├── styles.css
│   └── other_css_files
|
├── .gitignore
├── index.html
├── LICENSE.txt
└── README.md

Create a Python Module

Command

cam create-py-module <module_name>

Nagivate to <app_name> directory

cam run

it will run the python module for testing.

Directory tree

module_name/
│
├── docs/
|   └── index.md
|
├── module_name/
│   ├── utils/
|   |   └── __init__.py
│   ├── __init__.py
│   └── main.py
|
├── tests/
│   └── test.py
|
├── config.py
├── .gitignore
├── LICENSE.txt
├── README.md
└── requirements.txt

Create a Flask App

Command

admin create-flask-app <app_name>

Nagivate to <app_name> directory

cam run

it will start the flask development server.

Directory tree

flask_app_name/
│
├── docs/
|   └── index.md
|
├── src/
│   ├── __init__.py
│   ├── views.py
│   ├── models.py
│   ├── forms.py
│   ├── static/
│   │   ├── css/
│   │   |    └── style.css
|   |   ├── images/
|   |   ├── icons/
|   |   └── js/
|   |       └── script.html
│   ├── templates/
│   │   ├── base.html
│   │   └── home.html
│   └── utils/
│       └── helper_functions.py
│
├── tests/
│   └── test.py
│
├── config.py
├── .gitignore
├── LICENSE.txt
├── README.md
├── run.py
└── requirements.txt

Contributing

Contributions are welcome! Please feel free to submit issues, feature requests, or pull requests.

License

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

Author

If you have any questions or need assistance with this project, please contact Shailesh at shaileshpandit141@gmail.com.

Thank you for using cam cli.

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

cam-cli-tool-0.2.2.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cam_cli_tool-0.2.2-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file cam-cli-tool-0.2.2.tar.gz.

File metadata

  • Download URL: cam-cli-tool-0.2.2.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for cam-cli-tool-0.2.2.tar.gz
Algorithm Hash digest
SHA256 2f53de1c13ae626a2d1bf30bd3c6b7da096d846b7ba75910382c3832ea847978
MD5 31c13632c55e0d266f44f07d61bda92a
BLAKE2b-256 e15870b3cc1f1007d7f5995cc11eb327bb5e5a514e25cf971aa43aff96734527

See more details on using hashes here.

File details

Details for the file cam_cli_tool-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: cam_cli_tool-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 13.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for cam_cli_tool-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9b3c6ad010a49393771abada3c361ed9011e7b5ae74c52777bfb2f27e4ab457f
MD5 1fce028884d35d491c9bc18c53856886
BLAKE2b-256 71c97c4f35c810d39ab21374866b147f6eca38e74ccb8c0e98f3091bea78816b

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