Skip to main content

A Project to setup a python project to build

Project description

hjimi_tools

Python Package Setup Script

This script is a utility for automatically setting up a new Python package structure. It creates a directory structure for the package, as well as several important files such as `pyproject.toml`, `README.md`, `LICENSE`, and `requirements.txt`.

Usage

To use this script, you simply need to run it with Python and pass the name of the package you want to create as a command line argument. For example:

```bash python setup_package.py --package_name hjimi_tools ```

This will create a new directory called `hjimi_tools` with the following structure:

``` hjimi_tools/ ├── src/ │ └── hjimi_tools/ │ └── init.py ├── test/ ├── pyproject.toml ├── README.md ├── LICENSE └── requirements.txt ```

Command Line Arguments

The script accepts several command line arguments for customizing the package:

  • `package_name`: The name of the package to set up. This is a required argument.
  • `--version`: The version of the package. Defaults to '0.0.1'.
  • `--description`: The description of the package. Defaults to 'A small example package'.
  • `--author`: The author of the package. Defaults to 'Example Author'.
  • `--author_email`: The email of the author. Defaults to 'author@example.com'.
  • `--homepage`: The homepage URL of the package. Defaults to 'https://github.com/YOUR_USERNAME/YOUR_REPOSITORY'.
  • `--bug_tracker`: The bug tracker URL of the package. Defaults to 'https://github.com/YOUR_USERNAME/YOUR_REPOSITORY/issues'.

Requirements

This script requires Python 3.8 or higher.

C Project Generator

This Python class, CProjectGenerator, is a utility for automatically setting up a new C project structure. It creates a directory structure for the project, as well as several important files such as main.c, Makefile or CMakeLists.txt depending on the chosen build system.

Class Initialization

The CProjectGenerator class is initialized with the following parameters:

  • project_name: The name of the project to set up. This is a required argument.
  • modules: The names of the modules to be created. This is an optional argument and defaults to an empty string.
  • build_system: The build system to use. This can be either 'make' or 'cmake'. Defaults to 'make'.

Example:

gen = CProjectGenerator("my_project", "module1 module2", "cmake")

Directory Structure

The following directory structure will be created:

my_project/
├── src/
│   └── main.c
├── include/
├── lib/
├── bin/
├── obj/
├── test/
└── docs/

Generated Files

The class will generate a main.c file in the src/ directory as well as a Makefile or CMakeLists.txt in the project root directory depending on the chosen build system. If modules are specified, corresponding .c and .h files will be created in the src/ and include/ directories respectively.

Usage

To use this class to generate a project, you simply need to create an instance of the class and call the generate_project method. For example:

gen = CProjectGenerator("my_project", "module1,module2", "cmake")
gen.generate_project()

This will create a new project with the specified name, modules and build system.

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

hjimi_tools-0.0.4.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

hjimi_tools-0.0.4-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file hjimi_tools-0.0.4.tar.gz.

File metadata

  • Download URL: hjimi_tools-0.0.4.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.12

File hashes

Hashes for hjimi_tools-0.0.4.tar.gz
Algorithm Hash digest
SHA256 d5e6a8b4ca00edf2f902ba2e15d7902a3883140cbb56451129baebc123a3580b
MD5 9bd2a79a539b4397a0d10b642fb3aec8
BLAKE2b-256 43964bc710e002f7fe03d5149d93d90f281211b72d896cf6a0cffb5d34caf362

See more details on using hashes here.

File details

Details for the file hjimi_tools-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: hjimi_tools-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.12

File hashes

Hashes for hjimi_tools-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4a53ad34af44082144ab43f8c0321ea6073722d9e5fb2530881e6199ddc12e42
MD5 5d8d5e6423b7040a1db8bed1ac3051d5
BLAKE2b-256 479e85dec332c332b5d189d70a29da89f1a61d07fbad73fe90bc497522db06d9

See more details on using hashes here.

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