Skip to main content

Add your description here

Project description

SciKuFu

中文

SciKuFu is a Python toolkit that wraps up the most frequently used utilities from my personal research workflow. It aims to boost productivity and simplify common scientific computing and data analysis tasks.

Features

  • Parallel computing and batch processing (e.g., concurrent OpenAI API requests, result caching)
  • Common statistical analysis methods (e.g., t-test, normality checks, visualization)
  • Clean code structure, easy to extend and integrate into personal projects

Installation

Recommended:

pip install scikufu

Or from source:

git clone https://github.com/Mars160/scikufu.git
cd scikufu
pip install .

Quick Start

Parallel OpenAI API Calls

from scikufu.parallel.openai import Client

client = Client(api_key="your-api-key")
messages = [
    [{"role": "user", "content": "What is Python?"}],
    [{"role": "user", "content": "What is JavaScript?"}],
]
results = client.chat_completion(
    messages=messages,
    model="gpt-4",
    n_jobs=4,
    with_tqdm=True,
    temperature=0.7
)

Statistical T-Test

from scikufu.stats.ttest import t_test
import numpy as np

group1 = np.random.normal(100, 15, 30)
group2 = np.random.normal(105, 15, 30)
t_stat, p_value, significant = t_test(
    data=(group1, group2),
    alpha=0.05,
    show_plot=True,
    save_path="./t_test_plot.png"
)
print(f"t-statistic: {t_stat}")
print(f"p-value: {p_value}")
print(f"Significant: {significant}")

Project Structure

  • src/scikufu/: main code
  • tests/: test code
  • htmlcov/: coverage report

License

MIT

Note

All features are developed based on my own research needs. Suggestions and feedback are welcome!

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

scikufu-0.1.0.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

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

scikufu-0.1.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file scikufu-0.1.0.tar.gz.

File metadata

  • Download URL: scikufu-0.1.0.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for scikufu-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5d22ee4d307bd86e29a107797e17d26cd863f43e8411c169aa0be60b76ef722a
MD5 d0ad82d4187aefb8ca5d771ab5fcded9
BLAKE2b-256 3d425ee206ed2588b5f7f5a2dde128be2dc44d6b8c28ae1218a0f7868e2333df

See more details on using hashes here.

File details

Details for the file scikufu-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: scikufu-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for scikufu-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2ebe525749e421bd40efa7f5731d71715424378344b01e9a2b88f386847348bd
MD5 6270f9cd3b255e17be230ab85f79f15c
BLAKE2b-256 767a773b93ac63a1b017a0081593738b60658d8b34c326b884c9a447abc93f6f

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