Workcell
Instantly turn your Python function into production-ready microservice.
English | 简体中文
Getting Started • License • Changelog
Instantly turn your Python function into delightful app and production-ready microservice, with lightweight UI to interact with.
⚡ Highlights
- 🔌 Instantly turn functions into microservices within seconds.
- 📈 Automatically generate user-friendly UI for interaction.
- 🤗 One-click deployment to Hugging Face Spaces.
- ☁️ Develop locally, deploy to the cloud.
- 🧩 Empower development and analysis with scalable components.
- 🦄 Get inspired by the open-source community.
⏰ Status
| Status | Stability | Goal |
|---|---|---|
| ✅ | Alpha | We are testing Workcell with a closed set of customers |
| ✅ | Public Alpha | Anyone can sign up over at weanalyze.co. But go easy on us, there are a few kinks. |
| 🚧 | Public Beta | Stable enough for most non-enterprise use-cases |
| ❌ | Public | Production-ready |
We are currently in: Public Alpha.
Wokrlcell is heavily under development, and we expect to iterate on the APIs/UIs before reaching beta (version 0.1.0).
🔖 Installation
-
Python version 3.8+
-
Install Workcell using
pip:pip install workcell
-
Or using Anaconda:
conda install workcell
🚀 Quick Start
-
After workcell installed, just run:
workcell hello -
You can find an automatically generated Swagger UI from
http://127.0.0.1:7860/docs, then just gotohttp://127.0.0.1:7860/uito try your first workcell app:)
📚 Guide
-
What happened?
Workcell has created a FastAPI service and a lightweight user interface for your functions without any additional API or UI-related code. This service is ready to be deployed to the cloud as a public service, requiring minimal setup on your end.
-
Speed up your development
With Workcell, you can focus on developing your core functionality while leaving the infrastructure and deployment details to the platform. All you need is to make sure your function is workcell compatible.
-
Workcell compatible
A workcell-compatible function must have an
inputandoutputparameter and return value based on Pydantic models. Theinputandoutputare specified using type hints.Here is an example of a simple workcell compatible function:
from pydantic import BaseModel class Input(BaseModel): message: str class Output(BaseModel): message: str def hello_workcell(input: Input) -> Output: """Returns the `message` of the input data.""" return Output(message=input.message)
🤗 Deployment
-
Why deployment?
You'll be able to access your workcell from anywhere and share it with your team and collaborators. Now you can deploy workcell to Hugging Face Spaces in 1-click!
-
Prepare your Hugging Face account
First you need a Hugging Face account, and prepare a User Access Tokens, then set environment variables like below:
export HUGGINGFACE_USERNAME={huggingface_username} export HUGGINGFACE_TOKEN={huggingface_token}
Replace
{huggingface_username}and{huggingface_token}with yours.You can also store these environment variables in a
.envfile in your project folder for convenience. -
Deploy in 1-click!
Once you prepared a workcell compatible function (or project), just run:
workcell up app:hello_workcell
Voila! The deployment process will start, and within a few minutes, workcell will be available on your Hugging Face Spaces.
-
Extra explain
When you run
workcell up, there're actually 2 seperate stepworkcell packandworkcell deploybeen applied.workcell packwill package your function code with a template into.workcellunder your project folder, andworkcell deploywill upload this folder to cloud.
📖 Documents
- You can find more details in our documents.
🎮 Examples
-
Get inspired and learn more about workcell by exploring our examples:
-
We also have a curated list for you to check out, feel free to contribute!
🛣️ Roadmap
- Missing a feature? Have a look at our public roadmap to see what the team is working on in the short and medium term. Still missing it? Please let us know by opening an issue!
😆 Contacts
-
If you have any questions about the workcell or weanalyze , feel free to email us at: support@weanalyze.co
-
If you want to say hi, or are interested in partnering with us, feel free to reach us at: contact@weanalyze.co
-
Feel free to share memes or any questions at Discord: https://discord.weanalyze.co
License
Apache-2.0 License.
Metadata
Release files for workcell 0.0.38
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| workcell-0.0.38.tar.gz | 45.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| workcell-0.0.38-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 102.6 kB
Release files / workcell-0.0.38.tar.gz
| Download URL | workcell-0.0.38.tar.gz |
|---|---|
| Size | 45.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c295a9143a32266781ff0663de249db8ff09bf774a3e4487727f2740a1919c93
|
|
BLAKE2b-256 checksum How to use checksums |
7a4f3fd4f4801ca98978ea2600163622f231f4dc77a19fa8d11ca654f1bf4186
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.8.16 Linux/5.15.0-1035-azure
|
Release files / workcell-0.0.38-py3-none-any.whl
| Download URL | workcell-0.0.38-py3-none-any.whl |
|---|---|
| Size | 57.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
45870c62f05d92df01e7387e13f47e8e1e1925ca5fe004fdc4b66bc4a0e654b1
|
|
BLAKE2b-256 checksum How to use checksums |
987dd45888a66b953483ddcf8a3f384a8b111770151d45cf7265b929dbb99662
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.8.16 Linux/5.15.0-1035-azure
|
Security for workcell 0.0.38
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.