Skip to main content

Managed isolated environments for Python

Project description

Isolate

Run any Python function, with any dependencies, in any machine you want. Isolate offers a pluggable end-to-end solution for building, managing, and using isolated environments (virtualenv, conda, remote, and more).

Motivation

XKCD 1987

The fact that nearly every piece of software uses some other libraries or some other programs is undeniable. Each of these come with their set of dependencies, and this chain moves forward. Once there are enough 'nodes' in the chain, then the "dependency mess" starts to surface and our lives become much harder.

Python tried to solve it by recommending the "virtual environment" concept. In theory it was designed to isolate environments of different projects, so my project A can depend on pandas==1.0.0 while B depends on pandas==2.0.0 and whichever project I choose to work with, I just activate its own environment.

Overall this was a very nice solution that did work, and still continues to work for this use case. But as with every other scoped fix, in time other problems started to appear that demand a much narrower scope (like defining module-level dependencies, or even function-level ones for cloud runtimes that allow seamless integration with the rest of your code running in a different machine).

However, unlike "virtual environment" concept, each of the projects that tried to tackle this problem lacked a universal interface which one can simply define a set of requirements (this might be dependencies, size of the machine that is needed to run it, or something completely different) and can change it without any loss. Isolate is working towards a future where this transititon is as seamless as the transition from your local environment to the remote environment.

Contributing

Installing in editable mode with dev dependencies

pip install -e '.[dev]'

Running tests

pytest

Pre-commit

pre-commit install

Commit format

Please follow conventional commits specification for descriptions/messages.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

isolate-0.14.1.tar.gz (70.5 kB view details)

Uploaded Source

Built Distribution

isolate-0.14.1-py3-none-any.whl (72.0 kB view details)

Uploaded Python 3

File details

Details for the file isolate-0.14.1.tar.gz.

File metadata

  • Download URL: isolate-0.14.1.tar.gz
  • Upload date:
  • Size: 70.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for isolate-0.14.1.tar.gz
Algorithm Hash digest
SHA256 cfce25d865ccdddc8d697391b3e738140de8eee4f3aac85da31f7439a6183ad1
MD5 e66b4bcce5ab40b89396166ecf0b2021
BLAKE2b-256 ab2d4a065c947501e92ba994a5ab5a8d77f579c5af573a73bba5becfcb7a9f54

See more details on using hashes here.

File details

Details for the file isolate-0.14.1-py3-none-any.whl.

File metadata

  • Download URL: isolate-0.14.1-py3-none-any.whl
  • Upload date:
  • Size: 72.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for isolate-0.14.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2d613c8691b6a9e5c86cda80bf9fa6c13a76685d3133e9c54b2a5d0fbfd46cea
MD5 ecfaaf2bd016e7318e7f9165bd82c0c4
BLAKE2b-256 44d05f466b8317c7545d03fa37dd29e760d0d20fcc8cd876ea709b0553fc6a2a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page