Metadata-Version: 2.1
Name: pyemon
Version: 0.1.7
Summary: Python auxiliary tools
Author-email: mskz-3110 <mskz.saito@gmail.com>
Project-URL: Homepage, https://github.com/mskz-3110/pyemon
Project-URL: Issues, https://github.com/mskz-3110/pyemon/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.13
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: inflection

# 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.7|Update Path|
|0.1.6|Refactoring|
|0.1.4|Refactoring|
|0.1.3|Release pyemon|

## Installation
### [pyemon](https://pypi.org/project/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]**
```python
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
```
