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
)
Release files for PyModuleGenerator 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| PyModuleGenerator-1.1.1.tar.gz | 2.9 kB | Details |
Release files / PyModuleGenerator-1.1.1.tar.gz
| Download URL | PyModuleGenerator-1.1.1.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
adc33a4698c70c2bd31862e9b092e24c1e040f70fe03ffd76d5d32c185e162ad
|
|
BLAKE2b-256 checksum How to use checksums |
291c1dd3804baaa1f59a8b95d3c98a40d51524b80cd9b7c4b60de3540725ca43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|