Skip to main content

Kelvin's miscellaneous tools for python

Project description

Docs PyPI

kttools

Kelvin’s miscellaneous python tools

Install

pip install kttools

# or
pip install git+https://github.com/tuonglab/kttools.git

# or
git clone https://github.com/tuonglab/kttools.git
cd kttools; pip install -e .

Usage

import tools

Please checkout the documentation api for details about the functions you can use to make your life easier.

jupyterhub issue

On jupyterhub, If you find yourself trying to import from local directory, i.e. git clone, and finding that you can’t import it, you will need to edit your your kernel.json file like so:

vi /home/jovyan/.local/share/jupyter/kernels/<condaenvironmentname>/kernel.json

add in the $PATH and $PYTHONPATH bits:

{
 "argv": [
  "/home/jovyan/my-conda-envs/<condaenvironmentname>/bin/python",
  "-m",
  "ipykernel_launcher",
  "-f",
  "{connection_file}"
 ],
 "env": {
     "PATH": "/home/jovyan/scripts/kttools:$PATH",
     "PYTHONPATH": "/home/jovyan/scripts/kttools:$PYTHONPATH"
 },
 "display_name": "Python (<condaenvironmentname>)",
 "language": "python"
}

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

kttools-0.2.2.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

kttools-0.2.2-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file kttools-0.2.2.tar.gz.

File metadata

  • Download URL: kttools-0.2.2.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.9.13 Linux/5.15.0-1037-azure

File hashes

Hashes for kttools-0.2.2.tar.gz
Algorithm Hash digest
SHA256 43c211d5edf88ef86e1cb3bd48926188b351ec81756f09cfb4bc1779eb33afc7
MD5 ec868b34c060e640814fd7d2caecd5c1
BLAKE2b-256 797d6aba1b7e78fcff5148e0f9e7646821c7f3f643ab629c19e711a94677d120

See more details on using hashes here.

File details

Details for the file kttools-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: kttools-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.9.13 Linux/5.15.0-1037-azure

File hashes

Hashes for kttools-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 121c2ac135c974b95d394917532fde7785abb2e3261b54f8d67bbc4acd005204
MD5 16abaa8b0acf43b22d12410f25f988ab
BLAKE2b-256 40da988fa91b273c9f4746c8bb3808bba3caa2f381ac0c3ca36930badb8f268e

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