Skip to main content

Pyfinidash

Pyfinidash is a simple-to-use wrapper over the AWS Infinidash API. Infinidash allows users to quickly rescale applications across availability zones, programmatically. This rescaling is managed with identifier tokens generated from a key provided by an authenticated AWS user in any single given availability zone. The real magic is the cross-availability zone authentication engine which has been added that brings together the ability for applications to be auto-scaled within a single availability zone, and the ability to replicate across availability zones. The replication/rescaling process is enhanced by the ability to programmatically execute a fully recursive replication/rescaling of the application throughout all availability zones across the globe.

Pyfinidash is designed to take this entire process and make it user friendly.

Setup

To install Pyfinidash, make sure you have Python 3.x installed. Simply run this command to get started:

pip3 install pyfinidash

Using Pyfinidash

Generating an Infinidash Configuration

Pyfinidash reads the aws-infinidash.json file at the root of your project. In case you don't know how to format one, that's just fine. Until the aws-cli is updated with a full auto-generation of the configuration file, Pyfinidash can do it for you. From the command line run the following:

pyfinidash init

That's it! A brand new config file will be written to your project.

Using Pyfinidash in a Rescaling Script

Pyfinidash makes it easy to both encrypt and publish hashes for handing cross-availability-zone authentication, as well as scaling containerized applications across availability zones without needing much of the normal setup required for availability zone replication.

Here's the demo built into the CLI:

client = InfinidashClient()

client.encrypt(key).publish()

print(client.encrypted_key)

application = client.application("Hello")

print(application.get_app_arn())
print("")

application.scale_to(10)

rescaled_instances = application.get_rescaled_instances()

for instance in rescaled_instances:
    print(instance.get_app_arn())

You can see, with just a few lines of code, we get rescaling to 10 instances with minimal code, and we can quickly and easily capture the arns for each of the deployed application container instances. The wonderful bit of news is, each rescaled instance is, itself, a full application container instance which can be rescaled again.

This recursive rescaling technology is what makes Infinidash the perfect tool to quickly bring your application containers up and get them running in web scale!

Happy hacking!

Release files for pyfinidash 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 pyfinidash 0.1.0
File Size Uploaded
pyfinidash-0.1.0.tar.gz 3.4 kB Details

Built distribution (wheel)

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

Total release size: 7.3 kB

Release files / pyfinidash-0.1.0.tar.gz

Download URL pyfinidash-0.1.0.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b5b4626d6e04792d18a08c7518af82d2e3a98037d04cf90a65d90027c793ad8b
BLAKE2b-256 checksum
How to use checksums
a0d6b486c909e44267a378460850586943e6b5aceeab34b63e3187931dc0a909
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.5

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

Download URL pyfinidash-0.1.0-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
94a487e59ed3f2bff7c9d1bafc7b74fa77de18de2799e9bb9fb098d33f7b6445
BLAKE2b-256 checksum
How to use checksums
8bc0ea1a4f479d30213b02a0475a1be8609d750cd8f94776460dc6a7d316a3d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.5

Release history Release notifications | RSS feed

This release

0.1.0 This release

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