Skip to main content

AI API

Project description

Copyright (c) 2023 Jérémie DECOCK (www.jdhp.org)

Description

AI API

Note:

This project is still in beta stage, so the API is not finalized yet.

Dependencies

C.f. requirements.txt

Installation (development environment)

Posix (Linux, MacOSX, WSL, …)

From the AI-API source code:

conda deactivate         # Only if you use Anaconda...
python3 -m venv env
source env/bin/activate
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements-dev.txt

Windows

From the AI-API source code:

conda deactivate         # Only if you use Anaconda...
python3 -m venv env
env\Scripts\activate.bat
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements-dev.txt

Installation (production environment)

python3 -m pip install --no-cache-dir "aiapi @ git+ssh://git@gitlab.com/jdhp-dev/ai-api.git"

Documentation

Example usage

Build and run the Python Docker image

Build the docker image

From the AI-API source code:

docker build -t aiapi:latest .

Run unit tests from the docker container

From the AI-API source code:

docker run aiapi pytest

Run an example from the docker container

From the AI-API source code:

docker run aiapi python3 /app/examples/hello.py

Bug reports

To search for bugs or report them, please use the AI-API Bug Tracker at:

https://gitlab.com/jdhp-dev/ai-api/issues

License

This project is provided under the terms and conditions of the MIT License.

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

aisrv-0.1.dev0.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

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

aisrv-0.1.dev0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file aisrv-0.1.dev0.tar.gz.

File metadata

  • Download URL: aisrv-0.1.dev0.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.2

File hashes

Hashes for aisrv-0.1.dev0.tar.gz
Algorithm Hash digest
SHA256 7c35b1c774f598b638bad611234cd6d4cb401cac27281969e37c36dae34c18b5
MD5 ea91d4a3f2f8f64673bab3c8ff21a524
BLAKE2b-256 9a0ec9cadbf4d284c855f5d0d81bcbb4ac7b9f7741d8535a3fad428297ef141d

See more details on using hashes here.

File details

Details for the file aisrv-0.1.dev0-py3-none-any.whl.

File metadata

  • Download URL: aisrv-0.1.dev0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.2

File hashes

Hashes for aisrv-0.1.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 41be7a351c5b7c1df07dfcbb2070373e1def59f9ff3a3ac83da2e7c0a2da65c0
MD5 64225125335a7ff1beb611585b5ce4f4
BLAKE2b-256 50630c2740d1edcd316e3268752c0ddb2f3369720b82efde51ac7f8cc1d3dda9

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