Skip to main content

FastAPI webserver for loading and interaction with JIVAS agents.

Project description

JIVAS Web Server (jvserve)

GitHub release (latest by date) GitHub Workflow Status GitHub issues GitHub pull requests GitHub

jvserve is a FastAPI-based web server designed for loading and interacting with JIVAS agents. It is built on top of jac-cloud and provides a robust platform for managing jivas agent jobs, handling webhooks, and executing actions within the JIVAS ecosystem.

Installation

To install jvserve, use pip:

pip install jvserve

Usage

To use jvserve, you can start the server with the following command:

jac jvserve <path_to_your_jac_file>

For example:

jac jvserve main.jac

You can also start a file server to serve static files:

jac jvfileserve <directory>

For example:

jac jvfileserve ./static

Supported Arguments

  • filename: Path to your JAC file.
  • host: Host address to bind the server (default: 0.0.0.0).
  • port: Port number to bind the server (default: 8000).
  • loglevel: Logging level (default: INFO).
  • workers: Number of worker processes (optional).

Example with all arguments:

jac jvserve main.jac --host 127.0.0.1 --port 8080 --loglevel DEBUG --workers 4

API Endpoints

  • Interact with Agent: /interact (POST)
  • Execute Webhook: /webhook/{key} (GET, POST)
  • Execute Action Walker: /action/walker (POST)

You can see all endpoints at the URL /docs.

🔰 Contributing

Contributing Guidelines
  1. Fork the Repository: Start by forking the project repository to your GitHub account.
  2. Clone Locally: Clone the forked repository to your local machine using a git client.
    git clone https://github.com/TrueSelph/jvserve
    
  3. Create a New Branch: Always work on a new branch, giving it a descriptive name.
    git checkout -b new-feature-x
    
  4. Make Your Changes: Develop and test your changes locally.
  5. Commit Your Changes: Commit with a clear message describing your updates.
    git commit -m 'Implemented new feature x.'
    
  6. Push to GitHub: Push the changes to your forked repository.
    git push origin new-feature-x
    
  7. Submit a Pull Request: Create a PR against the original project repository. Clearly describe the changes and their motivations.
  8. Review: Once your PR is reviewed and approved, it will be merged into the main branch. Congratulations on your contribution!
Contributor Graph

🎗 License

This project is protected under the Apache License 2.0. See LICENSE for more information.

Additional Information

Since jvserve is a wrapper around jac-cloud, it supports all the primitives available in jac-cloud. You can find more information about jac-cloud primitives here.

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

jvserve-2.0.11.tar.gz (23.8 kB view details)

Uploaded Source

Built Distribution

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

jvserve-2.0.11-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

Details for the file jvserve-2.0.11.tar.gz.

File metadata

  • Download URL: jvserve-2.0.11.tar.gz
  • Upload date:
  • Size: 23.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.17

File hashes

Hashes for jvserve-2.0.11.tar.gz
Algorithm Hash digest
SHA256 3d35b75df2e0099bac1935eb0fc18d6a7ba9ec5a5c050d8e80a58d084f1fa9ce
MD5 f41c361edb20a1e8ff46453c4031e9de
BLAKE2b-256 010325a1b973bff2fcd0d6ba24d249a5d8e34bad621a28acd7afdf9ee60459bb

See more details on using hashes here.

File details

Details for the file jvserve-2.0.11-py3-none-any.whl.

File metadata

  • Download URL: jvserve-2.0.11-py3-none-any.whl
  • Upload date:
  • Size: 20.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.17

File hashes

Hashes for jvserve-2.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 4fb20eb2ca8ef3618dd904498389e30ea8dbb8b9d4fdaff78d4fe53b73f05e57
MD5 588d81eb5eb942e9ad9a22ed4ce0ee3f
BLAKE2b-256 ea24e939a811d1dc57444b74cc7355904946c2ef13ca16f6b6bb5d4c7cac0dfc

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