Skip to main content

basket_case

A lib to fit objects of different size into multiple baskets (of the same size) optimally.

For example, use it to backup contents to CDs, DVDs, USB sticks, etc.

Note: the name refers to a good horror film of the 80s

Repository

The lib code lives on gitlab at this address

Notes

As it can be seen below, the time of computation grows exponentially based on the number of objects in input:

$ python tests/timings.py

Run with params:
    NUM_OBJECTS=28
    FREQ_OVERSIZE=6
    BASKET_SIZE=100
    NUM_TIMINGS=10
    
Preserving input: 50.43828155000028
Without preserving input: 5.0550676299999395

$ python tests/timings.py 
Run with params:
    NUM_OBJECTS=29
    FREQ_OVERSIZE=6
    BASKET_SIZE=100
    NUM_TIMINGS=10
    
Preserving input: 99.51453974099968
Without preserving input: 9.925193711000247

Metadata

Release files for basket_case_pynchia 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for basket_case_pynchia 0.1.0
File Size Uploaded Provenance Actions
basket_case_pynchia-0.1.0.tar.gz 31.3 kB Without provenance Details for basket_case_pynchia-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for basket_case_pynchia 0.1.0
File Interpreter ABI Platform Actions
basket_case_pynchia-0.1.0-py3-none-any.whl Python 3 none any Details for basket_case_pynchia-0.1.0-py3-none-any.whl

Total release size: 35.1 kB

Release files / basket_case_pynchia-0.1.0.tar.gz

Download URL basket_case_pynchia-0.1.0.tar.gz
Size 31.3 kB
Tags Source
SHA-256 checksum
How to use checksums
54d1f02fbdbaaae5e23764869ce709374de95f3b8ae0fab63dd3bdbb120bb5e0
BLAKE2b-256 checksum
How to use checksums
aa805df6e79282695187a2494ed7c4eee126278300a5822bcbc2dd3566a36d0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.12.3 CPython/3.11.4

Release files / basket_case_pynchia-0.1.0-py3-none-any.whl

Download URL basket_case_pynchia-0.1.0-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0ed299b8c5bc2f39f764611ccfd41f5cd410a00505778c2b85c3b2a37e11f024
BLAKE2b-256 checksum
How to use checksums
3a125027bce2bed557e759f4a28c1f0cdb4a49298fb5c61e11a53c5b1b7e09a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.12.3 CPython/3.11.4

Security for basket_case_pynchia 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page