Skip to main content

A (personal) rapid development Python library that manages common tasks, tests and knowledge.

Project description

Rapid Development Library for Python

  • sqlalchemy: database object relationship mapping
  • lxml: parsing XML and HTML
  • networkx: graph, edge and vertex analysis

Development

# Note: Install Python 3
# Update pip and install virtualenv (dependency encapsulator) and black (linter; IDE needs to be restarted)

# Note: install Poetry for Linux
$: curl -sSL https://install.python-poetry.org | python3 -

# Note: install Poetry for Windows
$: (Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py -

$: curl -sSL https://install.python-poetry.org | python3 - --uninstall
$: poetry install  # install all dependencies

dist

$: pip install dist/rapdevpy-1.0.0-py3-none.any.whl

$: rapdevpy

docs

$: poetry shell
$: cd docs
# Note: review source/conf.py and source/index.rst
$: make html
# Note: see docs in docs/build/apidocs/index.html

rapdevpy

$: poetry run python ./rapdevpy/runner.py

tests

$: poetry run pytest --durations=0
$: poetry run pytest --cov=poetry_template --cov-report=html tests
# Note: see coverage report in htmlcov/index.html
# Note: exclude directories from coverage report through .coveragerc

poetry.lock

Dependencies, Python version and the virtual environment are managed by Poetry.

$: poetry search Package-Name
$: poetry add [-D] Package-Name[==Package-Version]

pyproject.toml

Define project entry point and metadata.

Linters

$: poetry run black .

MyPy

$: poetry run mypy ./rapdevpy ./tests

cProfile

$: poetry run python ./rapdevpy/profiler.py

Build and publish

$: poetry build

# Note: get the token from your PiPy account
$: poetry config pypi-token.pypi PyPI-Api-Access-Token
$: poetry publish --build
https://pypi.org/project/rapdevpy/

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

rapdevpy-1.0.0.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

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

rapdevpy-1.0.0-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file rapdevpy-1.0.0.tar.gz.

File metadata

  • Download URL: rapdevpy-1.0.0.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.8 Windows/10

File hashes

Hashes for rapdevpy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5840c688827512b983a40be113d881fbdf040cb17db51ec49791e343fa2c90a5
MD5 e778051022f44c5b139b3a7e57fc197f
BLAKE2b-256 ab96ede5d98a251be3396de1c67804b429edab2142b60066c9962cb1e3c0855d

See more details on using hashes here.

File details

Details for the file rapdevpy-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: rapdevpy-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.8 Windows/10

File hashes

Hashes for rapdevpy-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 94baac3bdd0823d998bea310b35ce4ef64905f5ccb46fa417d7b6b94f426d623
MD5 b90d8e8c5546533e48cf60b53619db5d
BLAKE2b-256 6c4470e26787a722905c5be663c9360ff590820c4a7ae0ec191dc5dbe12ac1ed

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