Skip to content

Python package, which has utility code like files, http-request, convert, datetime, command, trim, round, and so on.

License

Notifications You must be signed in to change notification settings

tomoki171923/python-util

Repository files navigation

python-util

Python package, which has utility code like files, http-request, convert, datetime, command, trim, round, and so on.

For User

Install

pip install git+https://github.com/tomoki171923/python-util#egg=pyutil

OR

Pipfile

[packages]
pyutil = {git = "https://github.com/tomoki171923/python-util.git", editable = true, ref = "main"}

OR

requirements.txt

pyutil @ git+https://github.com/tomoki171923/python-util@main

Usage

e.g. sample.py

from pyutil.command import execCmd
from src.pyutil.date_time import DateTime

cmd = "ls -l"
execCmd(cmd)

date_time:DateTime = DateTime()
print(date_time.today())
print(date_time.now())

For Contributor

Pre-Commit

brew install pre-commit
pre-commit install

Build

docker-compose build

Add Python Package

docker-compose run --rm app pipenv install PACKAGE_NAME

Update Python Packages

docker-compose run --rm app pipenv update

Unit Test

docker-compose up app

About

Python package, which has utility code like files, http-request, convert, datetime, command, trim, round, and so on.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •