r/madeinpython • • 1h ago

The NumPy build of my scientific computing library: same API as the pure-Python one, compiled speed

1 Upvotes

Repo: https://github.com/Furox-Art/scientific-computing-system-2.0 - PyPI scientific-computing-system-2.0 5.5.0, import name cds2, console script cds2.

This is the second half of a pair. scientific-computing-system is pure Python with zero runtime dependencies; this one is the NumPy/SciPy/pandas/matplotlib build of the same project. Same API, so a script can move between them.

It covers the usual ground - linear algebra, statistics, optimization, signal processing, information theory, chaos, Bayesian helpers, metaheuristics, geometry, reinforcement learning - with the compiled backends doing the heavy arithmetic.

Two naming things, because they confuse people every time: "2.0" names the generation of the project, not the release number. The current release is 5.5.0 and PyPI has never published a 2.x version. There was no clever reason for that, it is just how the version line went.

One honest limit: it is not a thin wrapper around SciPy with friendlier names. Where a compiled backend does not cover something, the pure-Python implementation from the other repo is what runs, and it is slow. The repo says which is which per module instead of pretending the speed is uniform.


r/madeinpython • • 6h ago

I built an async Python library that lets you control Spotify without an API key or Premium

Thumbnail
github.com
1 Upvotes

r/madeinpython • • 7h ago

I built LightsToFlag, an F1 race predictor in Python and Streamlit. Tonight’s Vegas pick: Verstappen from P2

Thumbnail
reddit.com
1 Upvotes

r/madeinpython • • 11h ago

Here's why I’m building a home for vulkan python. Why do you care about this community?

Thumbnail
github.com
1 Upvotes

r/madeinpython • • 14h ago

The first beta version of the tawjih package (version 0.13.1) is now available on PyPI!

1 Upvotes

​

https://pypi.org/project/tawjih/

We're excited to share the initial release of the tawjih package for Python developers, designed to \[state the package's function, e.g., facilitate code routing/path management/AI application building\]. Why try it now?

• 🛠️ Lightweight and fast: Designed to seamlessly integrate into your existing projects.

• 🧪 Open beta: All developers are welcome to test the package, find bugs, and share their suggestions for future releases. Package link and documentation: pypi.org

💻 Code repository (GitHub): https://github.com/AlmodinyMk/LLM-tawjih-Model-building

\#Python #PyPI #OpenSource


r/madeinpython • • 14h ago

We built sentropy, a Python package for measuring diversity while accounting for similarities between data points

1 Upvotes

Hi Python community!

I'd like to share an open-source Python package that I've co-authored: sentropy.

The motivation behind it is that traditional entropy measures, such as Shannon entropy, treat every distinct element as completely different. But in many datasets, distinct elements can be very similar to one another.

For example, consider a dataset of protein sequences. Two sequences that differ by a single amino acid are arguably more similar than two sequences that differ at every position. Traditional Shannon entropy doesn't capture this distinction.

Sentropy implements similarity-sensitive entropy measures, based on the mathematical framework developed by Leinster, Cobbold and Reeve.

A few things you can do with it:

  • Calculate similarity-sensitive α, β and γ diversity.
  • Explore different viewpoints using the parameter q.
  • Pass your own similarity matrix or define a custom similarity function.
  • Calculate similarities on the fly, without explicitly constructing a potentially large similarity matrix.
  • Calculate relative sentropy and cross-sentropy.
  • Use PyTorch/GPU functionality.
  • Calculate the Vendi score.

It's not restricted to biological data, either. The package can work with any dataset for which you can define a meaningful similarity function.

For example, the README includes demonstrations using amino-acid sequences and image datasets.

Installation:

pip install sentropy

Links:

I'd love to hear what you think! In particular, I'm interested in how people might use similarity-sensitive diversity measures in machine learning, data analysis, or other areas outside bioinformatics.

Feedback, suggestions, and contributions are welcome!