pyemon
Python auxiliary tools
Concept
Make your python work easier
What is possible
- Initialization work required to create your own package
- Installing the package
- Testing the package
- Building the package
- Uploading the package
- Execute your own defined tasks
Reason for development
- I want to easily create my own packages
Versions
| Version | Summary |
|---|---|
| 0.2.2 | Update json |
| 0.2.1 | Update pyemon |
| 0.1.7 | Update Path |
| 0.1.6 | Refactoring |
| 0.1.4 | Refactoring |
| 0.1.3 | Release pyemon |
Installation
pyemon
pip install pyemon
CLI
package.init
Initialization work required to create your own package
package.init
[With value]
-u|--user-name {USERNAME} # User name
-e|--email {EMAIL} # Email
-d|--description {DESCRIPTION} # Description
-p|--project-name # Project name
pyemon package.init -u USERNAME -e EMAIL -d DESCRIPTION
package.install
Installing the package
package.install # <pip(pipenv) install args>
[No value]
-p|--pip # PIP
-d|--dev # Development
-t|--test # TestPYPI
pyemon package.install
package.test
Testing the package
package.test # <pytest args>
pyemon package.test
package.build
Building the package
package.build # <build args>
pyemon package.build
package.upload
Uploading the package
package.upload # <twine upload args>
[No value]
-p|--pypi # PYPI
pyemon package.upload
task.run
Executing a task
task.run # <task name> <task args>
pyemon task.run
1. Prepare pyetask.py file
[pyetask.py]
from pyemon.task import *
class CamelizeTask(Task):
def run(self, argv):
for arg in argv:
print(inflection.camelize(arg))
Task.set(CamelizeTask("<words>"))
class UnderscoreTask(Task):
def run(self, argv):
for arg in argv:
print(inflection.underscore(arg))
Task.set(UnderscoreTask("<words>"))
class SingularizeTask(Task):
def run(self, argv):
for arg in argv:
print(inflection.singularize(arg))
Task.set(SingularizeTask("<words>"))
class PluralizeTask(Task):
def run(self, argv):
for arg in argv:
print(inflection.pluralize(arg))
Task.set(PluralizeTask("<words>"))
2. Execute tasks with CLI execution
camelize # <words>
pyemon task.run camelize device_type
DeviceType
underscore # <words>
pyemon task.run underscore DeviceType
device_type
singularize # <words>
pyemon task.run singularize posts
post
pluralize # <words>
pyemon task.run pluralize post
posts
Release files for pyemon 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyemon-0.2.2.tar.gz | 11.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyemon-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.8 kB
Release files / pyemon-0.2.2.tar.gz
| Download URL | pyemon-0.2.2.tar.gz |
|---|---|
| Size | 11.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
862e15932cab9263affb1617232914de5fbcf42715d725626fe4e165b96b60de
|
|
BLAKE2b-256 checksum How to use checksums |
0b83c73e52eb31f254d46962f250f83a5d67789a9f17fb65ae6a856dd5558020
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.0
|
Release files / pyemon-0.2.2-py3-none-any.whl
| Download URL | pyemon-0.2.2-py3-none-any.whl |
|---|---|
| Size | 14.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
11a3b72bf9f3c495779fa94942ff81d78dff975775a9179e5fc86529cf9fc047
|
|
BLAKE2b-256 checksum How to use checksums |
2439993ddc9c776352eaec11877727275a9641c6d3da1d8544bea082ed5b6d32
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.0
|