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.0.tar.gz (30.6 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.0-py3-none-any.whl (53.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dsap-0.1.0.tar.gz
  • Upload date:
  • Size: 30.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.12

File hashes

Hashes for dsap-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3dac258ec668b955c30a984cd4351d0f581decac6456228deeb4c1a80b9eb5b3
MD5 c0f44a606e63572cd565f4b1a76bf4bb
BLAKE2b-256 602eab702edaf60c557c148a23bb7275704a36f15ca5cc1ea15f1fd2ee423809

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dsap-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 53.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.12

File hashes

Hashes for dsap-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0be364bf0cb71781c385cef70c6b2a59fba842d0b1fedd3ef847fc4158f39c6c
MD5 1c6343a85f0416b1d606f77dce022881
BLAKE2b-256 c9f4f07051a100f08c9903bc93771cb5c9915f2e3e3e890c197d3a0b18dbd882

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