Friend
What is Friend?
Friend is all of those of utilities you keep reimplementing across your Python projects, that all got together and decided to live in harmony.
Maybe you just parsed some YAML that contained some configuration in “snake_case”, and you want to pass this configuration to a boto3 function which takes the same values but in “PascalCase”. Then you might find snake_to_pascal_obj or one of its variants to come in handy.
with open('conf.yml') as f:
conf = yaml.load(f)
ec2 = boto3.resource('ec2')
ec2.create_instances(
ImageId='ami-12345678',
BlockDeviceMappings=snake_to_pascal_obj(conf['block_device_mappings']),
....
)
Or you need to add a retry to that script that keeps breaking your Jenkins job because the corporate proxy fails about 5% of the time. Sure, you can add a try/except and wrap it in a for loop, but putting the retryable decorator on top of that problematic function will do that for you in one configurable line.
@retryable(times=5)
def flaky_function():
status = requests.get('https://service.corp/v2/status').json()
if 'error' in status:
send_important_email(status['error'])
Read the full documentation at http://friend.readthedocs.io.
Metadata
Release files for friend 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| friend-0.2.1.tar.gz | 14.0 kB | Without provenance | Details for friend-0.2.1.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| friend-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for friend-0.2.1-py3-none-any.whl |
| friend-0.2.1-py2-none-any.whl | Python 2 | none | any | Details for friend-0.2.1-py2-none-any.whl |
Total release size: 35.4 kB
Release files / friend-0.2.1.tar.gz
| Download URL | friend-0.2.1.tar.gz |
|---|---|
| Size | 14.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be432d259d758d5abe6842214ea2f4e4e4021003c27a9c8e129b87e3fc9cd835
|
|
BLAKE2b-256 checksum How to use checksums |
226d046e0e2de30f4e0485af13d2608afc651504cde62d48d64b7de3e8b73b26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / friend-0.2.1-py3-none-any.whl
| Download URL | friend-0.2.1-py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
55e06ff3a690f91b8616fd47299c61449823b403a1f82565ec45eba25628feec
|
|
BLAKE2b-256 checksum How to use checksums |
add4c673c03880f680d4c44c93e143717b767baca4cdc286b59835cb5a851ed2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / friend-0.2.1-py2-none-any.whl
| Download URL | friend-0.2.1-py2-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
4260ffe877a33784e82197d871b02058ec51e40b7022974154337726cc8131a9
|
|
BLAKE2b-256 checksum How to use checksums |
9774b28c915b4183a612fa333926918caedc564f46bcdfbe8390f1309a0f6459
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for friend 0.2.1
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.