Skip to main content

A CLI tool to insert common Python syntax into files.

Project description

Python Syntax Helper CLI

Welcome to the Python Syntax Helper CLI tool! This tool allows you to quickly add commonly used Python syntax templates (such as lists, tuples, dictionaries, functions, and more) directly into your Python files. It's perfect for beginners and experienced developers alike, helping you speed up the coding process by providing quick code templates.

Project Structure

python_syntax/
├── python_syntax/
│   ├── __init__.py           # Initializes the module
│   ├── main.py               # Main logic for handling user input and syntax generation
├── setup.py                  # The setup script for packaging
├── pyproject.toml            # Build system requirements
├── LICENSE                   # The project’s license (MIT License)
├── README.md                 # Project documentation
└── MANIFEST.in               # Specifies additional files to include in the distribution

Deployment

To install theb package run

  pip install python_syntax

To selct the syntax

  python_syntax

select the option according to the syntax you want to include

Welcome to Python Syntax Helper CLI!
Please select a Python syntax template to include in your file:
1. List Syntax
2. Tuple Syntax
3. Dictionary Syntax
4. Function Syntax
5. If-Else Syntax
Enter your choice (1-5): 2


Select the file you want to include the syntax

Enter the file path where you want to save this syntax (e.g., main.py): my_tuple_code.py

You can specify any valid file path to save the selected syntax template. If the file doesn't exist, it will be created. For example:

your_file.py – An existing file.
new_file.py – A new file will be created.


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

python_syntax-3.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

python_syntax-3.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file python_syntax-3.1.tar.gz.

File metadata

  • Download URL: python_syntax-3.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.5

File hashes

Hashes for python_syntax-3.1.tar.gz
Algorithm Hash digest
SHA256 c032cb60bcbf8a36e514a6acd7e558c0e45c9ae01a8c3921f740a689f9d0f001
MD5 bee73f0a9fd843bf5e06e5de1fd7834f
BLAKE2b-256 10a8a49755a8da846fe8cc8c476f6de13b9a977bd612ffaef929ee11c16f64e7

See more details on using hashes here.

File details

Details for the file python_syntax-3.1-py3-none-any.whl.

File metadata

  • Download URL: python_syntax-3.1-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.5

File hashes

Hashes for python_syntax-3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0748fd87686e2e2dd877ab820ad5e99cd0d6da9bbaf51e34a0a210c46d48eac8
MD5 bd8fd3f0e81516d112defa2e378fc8cc
BLAKE2b-256 2926137f2952804cc38cf757990634f57b3cbdec6ce78fec0be5dcc045378a21

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