Skip to main content

A socket-based solution for resolving Python environment incompatibilities

Project description

A socket-based solution for resolving Python environment incompatibilities.

Usage Guidelines

Installation:

To install the inincompatibility package, run:

pip install inincompatibility

Example: LLMs Integration:

First, make your LLMs callable functions and import them into a .py file, like so:

# LLM_functions.py
from your_LLM import your_forward, your_backward

Next, use the inincompatibility package to run the LLM in its (Python / conda) environment and generate the necessary importable code:

python -m inincompatibility -i LLM_functions.py -o api_for_other.py

Now, you can directly import the generated code in another (Python / conda) environment:

# your_other_code.py
from api_for_other import your_forward, your_backward

Example: Additional Samples:

For more usage examples, check out the sample1 directory on GitHub.

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

inincompatibility-0.0.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

inincompatibility-0.0.1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file inincompatibility-0.0.1.tar.gz.

File metadata

  • Download URL: inincompatibility-0.0.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.7

File hashes

Hashes for inincompatibility-0.0.1.tar.gz
Algorithm Hash digest
SHA256 93a459fbed6e365ae1b01f884fc8faf9a62f5a046376a38e06cf93c1d2f5b911
MD5 9d2f0eea9cb37a427cfa0ecbc7b3c4f8
BLAKE2b-256 f7e57e5b7b4fbc56d45c192c6d9c59d82e6fc83bea4895a5086b5b9d5cf551fd

See more details on using hashes here.

File details

Details for the file inincompatibility-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for inincompatibility-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dc41cf835b923057a09ca4981166006e339f34392933670d17268fbb5c8c2a8c
MD5 4d6ae4644d51bab3753c6427bd8f168d
BLAKE2b-256 94ecc13fcbdb224418e4c62233e1a29e277a6a5c98ee3cbcde3232257ca0c35b

See more details on using hashes here.

Supported by

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