Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finalize zip-file export capabilities #3

Closed
lukasmasuch opened this issue Apr 19, 2021 · 2 comments
Closed

Finalize zip-file export capabilities #3

lukasmasuch opened this issue Apr 19, 2021 · 2 comments
Labels
feature Request for new feature or improvement stale Awaiting input from creator for prolonged time period

Comments

@lukasmasuch
Copy link
Contributor

Feature description:

Finalize capabilities to package and export a compatible function into a self-contained zip-file.

The export can be executed via command line:

opyrator export my_opyrator:hello_world my-opyrator.zip

This exported zip-file packages relevant source code and data artifacts into a single file which can be shared, stored, and used for launching the API or UI.

External requirements are automatically discovered from the working directory based on the following files: Pipfile (Pipenv environment), environment.yml (Conda environment), pyproject.toml (Poetry dependencies), requirements.txt (PIP requirements), setup.py (Python project requirements), packages.txt (apt-get packages), or discovered via pipreqs as fallback. However, external requirements are only included as instructions and are not packaged into the ZIP file. If you want to export your Opyrator fully self-contained including all requirements or even the Python interpreter itself, please refer to the Docker or PEX export options.

As a side note, Opyrators exported as ZIP files are (mini) Python libraries that can be pip-installed, imported, and used from other Python code:

pip install my-opyrator.zip
@lukasmasuch lukasmasuch added the feature Request for new feature or improvement label Apr 19, 2021
@github-actions
Copy link

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 14 days

@github-actions github-actions bot added the stale Awaiting input from creator for prolonged time period label Jul 19, 2021
@lukasmasuch lukasmasuch removed the stale Awaiting input from creator for prolonged time period label Jul 19, 2021
@github-actions
Copy link

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 14 days

@github-actions github-actions bot added the stale Awaiting input from creator for prolonged time period label Oct 18, 2021
@github-actions github-actions bot closed this as completed Nov 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Request for new feature or improvement stale Awaiting input from creator for prolonged time period
Projects
None yet
Development

No branches or pull requests

1 participant