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.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

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.2.1.tar.gz (11.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.2.1-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyemon-0.2.1.tar.gz
  • Upload date:
  • Size: 11.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.2.1.tar.gz
Algorithm Hash digest
SHA256 73200709c580c97c063dfe750ac99c591e7bbbb2c1e82ff4e1d10baa94b5ccdd
MD5 486e12e18b56cd58e05ee87eaa0cf2fe
BLAKE2b-256 d682d07ad173772a2a92ea2c32d02d7e0f14088e1742b8e82ae723716c8ce057

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyemon-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 14.4 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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4fd4183b7582d29ce38b6056e1e39a4a4473a2397cd4df2afbd572705b4b4028
MD5 316188e4cbc352fc7c879c0ecba1a9fe
BLAKE2b-256 559488213dc15bc1365e5a50be10a18c30580b6432df9a1357d8981bfaac6909

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