Skip to main content

Python auxiliary tools

Project description

pyemon

Python auxiliary tools

Concept

Make your python work easier

What is possible

  1. Initialization work required to create your own package
  2. Installing the package
  3. Testing the package
  4. Building the package
  5. Uploading the package
  6. Execute your own defined tasks

Reason for development

  • I want to easily create my own packages

Versions

Version Summary
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

pyemon package.init -u USERNAME -e EMAIL -d DESCRIPTION

[With value]
  -u|--user-name    {USERNAME}    # User name
  -e|--email        {EMAIL}       # Email
  -d|--description  {DESCRIPTION} # Description
  -p|--project-name               # Project name

package.install

Installing the package

pyemon package.install

[No value]
  -p|--pip   # PIP
  -d|--dev   # Development
  -t|--test  # TestPYPI

package.test

Testing the package

pyemon package.test

package.build

Building the package

pyemon package.build

package.upload

Uploading the package

pyemon package.upload

[No value]
  -p|--pypi  # PYPI

task.run

Executing a task

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

pyemon task.run camelize device_type

DeviceType

pyemon task.run underscore DeviceType

device_type

pyemon task.run singularize posts

post

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

pyemon-0.1.6.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyemon-0.1.6-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file pyemon-0.1.6.tar.gz.

File metadata

  • Download URL: pyemon-0.1.6.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for pyemon-0.1.6.tar.gz
Algorithm Hash digest
SHA256 47bdbc8eb2866ed70ccba1f752f12e32623deb490875379d4ccbbfde62077dd7
MD5 59d96cb704305083ad20927859c127de
BLAKE2b-256 198ec1a96402a7772f9dcc22ee29a86ce91f0b4e75f1a89137eedb8a9e157b98

See more details on using hashes here.

File details

Details for the file pyemon-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: pyemon-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for pyemon-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 8ffd8cecec0a36902e09ed604ea86a828398d23da2d24e46e0cceab1acc3c9c4
MD5 65276f25309fb1b8e145f13f966e270d
BLAKE2b-256 7b08f6dc06dc9c90f309906c08334b1f169661f4ad47ef5ae2b5eec0d68f9b6b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page