Skip to main content

An all-in-one toolkit package to easy my Python work in my PhD.

Project description

pyhdtoolkit

PyPI Version Github Release
Travis Build Code Coverage Docker Build
Code Style Linter Build tool Test runner License

♻️ An all-in-one package for Python work in my PhD

Made With Python

Installation

This code is compatible with Python 3.6+. If for some reason you have a need for it, create & activate a virtual enrivonment, then install with pip:

> pip install pyhdtoolkit

This repository respects the PEP 518 development and build recommandations, and Poetry as a tool to do so. If you intend on making changes, clone this repository through VCS and set yourself up with:

> git clone https://github.com/fsoubelet/PyhDToolkit.git
> cd PyhDToolkit
> poetry install

Standards, Testing, Tools and VCS

This repository follows the Google docstring format, uses Black as a code formatter with a default enforced line length of 100 characters, and Pylint as a linter. You can format the code with make format and lint it (which will format first) with make lint.

Testing builds are ensured after each commit through Travis-CI. You can run tests locally with the predefined make tests, or through poetry run pytest <options> for customized options.

VCS is done through git and follows the Gitflow workflow. As a consequence, make sure to always install from master.

Miscellaneous

Feel free to explore the Makefile for sensible defaults commands. You will get an idea of what functionality is available by running make help.

Python Environment

This repository currently comes with an environment.yml file to reproduce my work conda environment. You can install this environment and add it to your ipython kernel by running make condaenv.

Container

You can directly pull a pre-built image - tag latest is an automated build - from Dockerhub with:

> docker pull fsoubelet/simenv

You can then run the container to serve as a jupyter server, binding a local directory of notebooks to work on. Assuming you pulled the provided image from Dockerhub, the command is then (remove the --rm flag if you wish to preserve it after running):

> docker run --rm -p 8888:8888 -e JUPYTER_ENABLE_LAB=yes -v <host_dir_to_mount>:/home/jovyan/work fsoubelet/simenv

License

Copyright © 2019-2020 Felix Soubelet. MIT License

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

pyhdtoolkit-0.5.0.tar.gz (53.9 kB view details)

Uploaded Source

Built Distribution

pyhdtoolkit-0.5.0-py3-none-any.whl (61.3 kB view details)

Uploaded Python 3

File details

Details for the file pyhdtoolkit-0.5.0.tar.gz.

File metadata

  • Download URL: pyhdtoolkit-0.5.0.tar.gz
  • Upload date:
  • Size: 53.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.7.7 Linux/5.4.0-45-generic

File hashes

Hashes for pyhdtoolkit-0.5.0.tar.gz
Algorithm Hash digest
SHA256 d96a6cdd1f978dc36e8ffb096f1b098698ada443d85af839aee0d4cfd149c7e6
MD5 d1d7c7a665747e6bcce1b024c94d7717
BLAKE2b-256 b4bfcfaff40fec3c8be9e5cc2519a6ff8aec3ed1ddb67f1439e938ebaf75001d

See more details on using hashes here.

File details

Details for the file pyhdtoolkit-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: pyhdtoolkit-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 61.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.7.7 Linux/5.4.0-45-generic

File hashes

Hashes for pyhdtoolkit-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 316de1967c36939d652d7f4b60744c55149d170a07cbbe02e2f31fbbf26ac598
MD5 40f3d30597effe32cdd1c9e49043148d
BLAKE2b-256 32eb13966ff2d0afd4598b7c7f36032b5fabee824f521ccf870fe4a4ec26fb36

See more details on using hashes here.

Supported by

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