Skip to main content

🐗 A portable collection of functions for scientific exploration

Project description

🐗 pykirill

Documentation

This is my personal Python package, pykirill, which includes a collection of utilities and functions that I frequently use during scientific exploration. This package is especially designed to be portable, making it suitable for environments like Google Colab where setup needs to be minimal.

Installation

There are several ways to install pykirill

PyPI

You can use regualar pip install from PyPI

pip install pykirill

GitHub source

You can use pip to install directly from GitHub. This method ensures you always get the latest version. Also gives access to experimental features in development

pip install git+https://github.com/kirilledition/pykirill.git@main

GitHub release

You also can use link to wheel from github releases

pip install https://github.com/kirilledition/pykirill/releases/download/2024.2.1/pykirill-2024.2.1-py3-none-any.whl

GitHub Container Registry

And finally package is also runnable as docker container from GitHub Container Registry

docker run --rm -it ghcr.io/kirilledition/pykirill:2024.2.1

Usage

You can have a look at showcase jupyter notebooks, that shows primitive examples of how to use pykirill: showcase.ipynb

Transforms

from pykirill import transforms

scaled_data = data.apply(transforms.log_scale)
pca = transforms.principal_component_analysis(
  scaled_data, n_components=3
)

Plotting

from pykirill import plotting
plotting.setup()

axm = plotting.SubplotsManager(pca.n_components)

for pc, score in pca.scores.items():
    ax = axm.nextax()

    ax.set_title(pc)
    ax.set_ylabel("PC score")
    ax.set_xlabel("species")

    sns.boxplot(x=target, y=score, ax=ax)

axm.show()

License

pykirill is open-sourced under the MIT license. The details can be found in the LICENSE.md file.

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

pykirill-2024.3.0.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

pykirill-2024.3.0-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file pykirill-2024.3.0.tar.gz.

File metadata

  • Download URL: pykirill-2024.3.0.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pykirill-2024.3.0.tar.gz
Algorithm Hash digest
SHA256 630f732dc7c22cb6972d4d2298bab38538cdaa923d0050025c978a509d63306f
MD5 5e81393779df9b5b799dbeb792caf6ec
BLAKE2b-256 745247383f23399aeb6772ef8fead31e8e10e792d0a4af1068268a89bb4ed5a1

See more details on using hashes here.

File details

Details for the file pykirill-2024.3.0-py3-none-any.whl.

File metadata

  • Download URL: pykirill-2024.3.0-py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pykirill-2024.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eb11003cec37d425fbb97540ac7a714ce2eee5ac989f0c78858c9d6e0ce210aa
MD5 8c4305f7055f09df2626f40180cdd302
BLAKE2b-256 be9eb1f67ee2b984cfde4f5ee976720b4f3a76688ce4bb51caedf7bfe1fc0f50

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