Skip to main content

splendid is a collection of useful small python tools to make your life easier.

Visit us on https://github.com/pythoncircus/splendid !

Some Examples

>>> from splendid import chunker
>>> list(chunker([1, 2, 3, 4, 5], 3))
[[1, 2, 3], [4, 5]]

>>> from splendid import get_path
>>> get_path({'foo':[{'bar':3}]}, ['foo'], 'not found')
[{'bar': 3}]
>>> get_path({'foo':[{'bar':3}]}, ['foo', 'bar'], 'not found')
'not found'
>>> get_path({'foo':[{'bar':3}]}, ['foo', 0, 'bar'], 'not found')
3
>>> get_path({'foo':[{'bar':3}]}, ['foo', 0], 'not found')
{'bar': 3}

>>> from splendid import run_once
>>> @run_once
... def foo():
...     print('bar')
>>> for i in range(10):
...     foo()
bar

Metadata

Release files for splendid 1.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 splendid 1.1.0
File Size Uploaded
splendid-1.1.0.tar.gz 7.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for splendid 1.1.0
File Interpreter ABI Platform
splendid-1.1.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 16.4 kB

Release files / splendid-1.1.0.tar.gz

Download URL splendid-1.1.0.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
cf00d1511b06c9eddc3a49b7fb3f0101245fd09921473eece409250f92dded41
BLAKE2b-256 checksum
How to use checksums
5691217f00f91cafb5e74e3c18ce3a92b2ae65de386d757e63a55ceee6847fc7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / splendid-1.1.0-py2.py3-none-any.whl

Download URL splendid-1.1.0-py2.py3-none-any.whl
Size 9.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
1cb1d923bed7cf5f427d96bcca8ec898906b105f6eadd62d9a1b00e8d6b1b6d5
BLAKE2b-256 checksum
How to use checksums
2c05e150be46aafcaece349e455acf2d4f416d8abcbaae6ab5218cc7885c415d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.2

2 release files

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