Skip to main content

Toolkit for AI Engineers

Project description

phidata

Run open source tools using python

version pythonversion downloads build-status


Phidata is a toolkit for building applications with open source tools.

  • Phidata makes it easy to run tools like FastApi, Django, Jupyter, Streamlit, Airflow and Superset.
  • Use these tools to build LLM Apps, Web Apps and Data Platforms.
  • Run locally for development and production on AWS, with 1 command.

🚀 How it works

  • Create your codebase from a template using phi ws create
  • Run your app locally using phi ws up dev:docker
  • Run your app on AWS using phi ws up prd:aws

Basic Example: Run a Jupyter Notebook

Requirements

Setup

Open the terminal and create a python virtual environment

python3 -m venv ~/.venvs/labenv
source ~/.venvs/labenv/bin/activate

Install phidata

pip install phidata

Define DockerConfig that runs a Jupyter app

Create a file resources.py and add the following code to it

from phidata.app.jupyter import Jupyter
from phidata.docker.config import DockerConfig

dev_docker_config = DockerConfig(
    apps=[
        # -*- Run Jupyter on port 8888
        Jupyter(mount_workspace=True)
    ],
)

Start the app

phi start resources.py
  • Open the browser and go to http://localhost:8888
  • Password is admin

Stop the app

phi stop resources.py

More Information:

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

phidata-2.0.0.dev21.tar.gz (759.0 kB view details)

Uploaded Source

Built Distribution

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

phidata-2.0.0.dev21-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file phidata-2.0.0.dev21.tar.gz.

File metadata

  • Download URL: phidata-2.0.0.dev21.tar.gz
  • Upload date:
  • Size: 759.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.12

File hashes

Hashes for phidata-2.0.0.dev21.tar.gz
Algorithm Hash digest
SHA256 2c205236a0ccf27b32f58dc910e2198e3e102dc9ddaf0197320bea4b9a0f6f5c
MD5 2c975bfa63f56da74e33e9f800c4aa98
BLAKE2b-256 69c157f68dc31559518bb65c91987979711b8009cca5ceb8eace42fff1171c38

See more details on using hashes here.

File details

Details for the file phidata-2.0.0.dev21-py3-none-any.whl.

File metadata

  • Download URL: phidata-2.0.0.dev21-py3-none-any.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.12

File hashes

Hashes for phidata-2.0.0.dev21-py3-none-any.whl
Algorithm Hash digest
SHA256 13f59e29cf96272e136e9e80a3f8b2c4661565a5917a79a05f88df61283dbb01
MD5 86494ec93789b6f9cb95af3d61cc8341
BLAKE2b-256 f0203cabf1833f628b8e7ce6bc4db3c5b9f3201ff30c6eb1ed7da7c148ec9e56

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