Skip to main content

Common data structures and algorithms written in Python for learning

Project description

dsap: Data Structures & Algorithms & Practice

Python data structures & algorithms repository (for learning).

For developers or contributors, please see CONTRIBUTING.md.

Usage

Commands are given with the uv tool docs.

Quick Run

For testing the package without creating a new project structure, try the following:

uv run --with dsap --no-project -- python
>>> from dsap.sort import heap_sort
>>> heap_sort([5, 1, 3, 2, 4])
[1, 2, 3, 4, 5]

Project Setup

To install this project, run the following commands. We recommend first preparing a virtual python environment.

uv init example
cd example

To actually install this package (or, pip install dsap):

uv add dsap

To verify the installation, open a python3 interpreter, and try the following:

uv run python
>>> from dsap.sort import heap_sort
>>> heap_sort([5, 1, 3, 2, 4])
[1, 2, 3, 4, 5]

Congrats! Now, you can use the dsap library in your code!

Documentation

For documentation, see the docstrings within each module. Each data structure and algorithm is thoroughly documented and tested.

Contributing

We welcome creating new issues and PRs to improve this library. Please read the CONTRIBUTING.md file, first! Thank you ~

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

dsap-0.1.1.tar.gz (31.4 kB view details)

Uploaded Source

Built Distribution

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

dsap-0.1.1-py3-none-any.whl (54.5 kB view details)

Uploaded Python 3

File details

Details for the file dsap-0.1.1.tar.gz.

File metadata

  • Download URL: dsap-0.1.1.tar.gz
  • Upload date:
  • Size: 31.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for dsap-0.1.1.tar.gz
Algorithm Hash digest
SHA256 de2d036b63d1213ff68a072d68eac17df3cef52c4c664a9d8912ea640fdfa62b
MD5 a4dc02970057bd375d98b7bf20b67731
BLAKE2b-256 2ca87bb1d51c21be57e3df05ed5711dfd9c1f9e9811b4ef92b1d6c30eb5506aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsap-0.1.1.tar.gz:

Publisher: publish.yml on tshur/py-alg

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dsap-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: dsap-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 54.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for dsap-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b87cd438aa75bc3ddf2d60a9d6a81877e32db53d39ec858ae0f8028fca3aed92
MD5 4576221b328f27cb5d19e31731cb2554
BLAKE2b-256 eadd4aea28092807343159a29782c3749dde44f4329b4f69718f4c73c1f36a84

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsap-0.1.1-py3-none-any.whl:

Publisher: publish.yml on tshur/py-alg

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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