A simple python module generator
Project description
PyModuleGenerator
Module to generate a python module
Installation
pip install PyModuleGenerator
Prerequisites
Folders
- Module folder
-
- src
-
-
- __init__.py
-
-
-
- MyModule.py
-
-
-
- README.md
-
-
-
- LICENSE
-
-
-
- .gitignore
-
__init__.py
"""
pyexample.
An example python library.
"""
__version__ = "1.0.0"
__author__ = 'Your Name'
__credits__ = '###'
{{Rest of the file}}
Utilisation
import PyModuleGenerator
config: PyModuleGenerator.PyModuleGeneratorConfig = PyModuleGenerator.PyModuleGeneratorConfig(
pythonCommand="python", # Python command to use (python or python3 or py)
modulePath="C:/.../MyModuleFolder/src",
buildFolder="C:/.../MyModuleFolder/build",
moduleName="MyModule",
moduleVersion="1.0.0",
moduleDescription="My module description",
moduleLongDescription="My module long description displayed on pypi", # You can read file from README.md
moduleLongDescriptionType="text/markdown",
githubURL="",
moduleAuthor="My name",
moduleAuthorEmail="",
moduleLicense="MIT",
moduleDependencies=[],
moduleTags=[], # https://pypi.org/classifiers/
)
PyModuleGenerator.PyModuleGenerator(
config=config,
clearBuildFolder=False, # Erase the build folder after the build
publishToPypi=False # Publish the module to pypi
)
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
File details
Details for the file PyModuleGenerator-1.1.1.tar.gz.
File metadata
- Download URL: PyModuleGenerator-1.1.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/35.0 requests/2.25.1 requests-toolbelt/0.10.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.11.3 keyring/23.7.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
adc33a4698c70c2bd31862e9b092e24c1e040f70fe03ffd76d5d32c185e162ad
|
|
| MD5 |
17c880a15f41e6485bf16d5ee6dd6c17
|
|
| BLAKE2b-256 |
291c1dd3804baaa1f59a8b95d3c98a40d51524b80cd9b7c4b60de3540725ca43
|