Skip to main content

🍧 snowcone

Code style: black Python CI PyPI - Downloads PyPi version

Set of useful utilities for Python inspired by other libraries and languages

Requirements

  • Python 3.6 or newer

🛠 Installation

To install the package, run the following command from a terminal:

$   pip install snowcone

🚀 Usage

JavaScript style arrays

Manipulate Python lists using a more object-oriented style JavaScript array syntax:

from snowcone.containers import Array

array = [
    [
        {"category": "A", "value": 0},
        {"category": "A", "value": 2},
        {"category": "A", "value": 4},
    ],
    [
        {"category": "B", "value": 7},
        {"category": "B", "value": 3},
        {"category": "B", "value": 9},
    ]
]

values = (
    Array(array)
        .flatten()
        .filter(lambda x: x["category"] == "A")
        .map(lambda x: x["value"] * 5)
        .all()
)
print(values)
>>> [0, 10, 20, 35, 15, 45]

📚 Documentation

Documentation can be built using the command make docs, which uses the Makefile and the make binary.

Metadata

Release files for snowcone 0.3.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 snowcone 0.3.0
File Size Uploaded Provenance Actions
snowcone-0.3.0.tar.gz 3.3 kB Without provenance Details for snowcone-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 6.9 kB

Release files / snowcone-0.3.0.tar.gz

Download URL snowcone-0.3.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
87a2ba863714352d1dbc4fba78cc243c6a0585a76919b4fa9e27a0510cd4f7b2
BLAKE2b-256 checksum
How to use checksums
e9010f6ba6b5cabf6ebb394c8c4b27b72d8939dbc80c444c7023fd42c2018da8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

Release files / snowcone-0.3.0-py3-none-any.whl

Download URL snowcone-0.3.0-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ab0637745e96da05eb5f2e756d1f6925f756f4d3fe99a3cc1044a61d8d0333f4
BLAKE2b-256 checksum
How to use checksums
6da055d75b72d7721fd56ede8c3cd3eeeeb3ef404cea3fd7858b5c945bb97c3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

Security for snowcone 0.3.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.3.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