Python auxiliary tools
Project description
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.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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyemon-0.1.7.tar.gz.
File metadata
- Download URL: pyemon-0.1.7.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a2c8467a905a74cd9271c57531385edf1ebe85aa7ba50bb8e14463199d4dd4f
|
|
| MD5 |
be1e3303c491d1b320ae25d08c90c9e7
|
|
| BLAKE2b-256 |
3a0c2fd77a9c16604b537d58c118135bba7778b93a8946ea5f6a5dd3c9489c4a
|
File details
Details for the file pyemon-0.1.7-py3-none-any.whl.
File metadata
- Download URL: pyemon-0.1.7-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1915fca348aaed9a23a688fc9ee8ef08e450ffca7db817c7c957d27f8b0ba5d0
|
|
| MD5 |
0e42095ac86252ae28fdf013fc2558d5
|
|
| BLAKE2b-256 |
189942d28e23cf1de51b363f2e15ef115a92a91a3ed48b00c2a17861e20c4373
|