Skip to main content

Studio Seat Management Tools

Project description

⚠️ Not Production Ready ⚠️

pyfost.gestion_studio

PyPI - Version PyPI - Python Version

Fost Studio Seats Management Tools

Table of Contents

Installation

Create a virualenv, activate it, and then:

pip install pyfost.gestion-studio

Run

Services

Edit a .env or .env.DEV or .env.PROD file (Use the .env in the repo root as example). Then, in the same folder, spawn your services:

  • Full Stack: python -m pyfost.gestion_studio.main_all
  • All Backends: python -m pyfost.gestion_studio.main_backends
  • All Frontends: python -m pyfost.gestion_studio.main_frontends

Python APIs

You can interact with the services using their respecive clients:

from pyfost.gestion_studio.floors.api import FloorsAPI
from pyfost.gestion_studio.projects.api import ProjectsAPI

floors_api = ProjectsAPI(host=<floors_service_host>, port=<floors_service_port>)
facilities = floors_api.get_facilities()

project_api = ProjectsAPI(host=<project_service_host>, port=<project_service_port>)
tasks = projects_api.get_tasks()

Dev

Tips

floors

(! OUTDATED !)

  • To generate the python client from the backend (api)
    • run the backend standalone: fastapi run src/pyfost/gestion_studio/floors/backend/main.py
    • install openapi-python-client: pipx install openapi-python-client --include-deps
    • cd to the root of the repo (containing this file)
    • generate the client: openapi-python-client generate --url http://127.0.0.1:8000/openapi.json --output-path ../pyfost.gestion-studio-floors_api --config openapi-python-client.yaml
    • replace current client (./src/pyfost/gestion_studio/floors/api) by the generated one (../pyfost.gestion-studio-floors_api/api)
    • also copy the client README (../pyfost.gestion-studio-floors_api/README.md -> ./src/pyfost/gestion_studio/floors/api/README.md)

License

pyfost.gestion-studio is distributed under the terms of the GNU GPL-3.0 or later 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

pyfost_gestion_studio-0.1.4.tar.gz (254.6 kB view details)

Uploaded Source

Built Distribution

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

pyfost_gestion_studio-0.1.4-py3-none-any.whl (277.9 kB view details)

Uploaded Python 3

File details

Details for the file pyfost_gestion_studio-0.1.4.tar.gz.

File metadata

  • Download URL: pyfost_gestion_studio-0.1.4.tar.gz
  • Upload date:
  • Size: 254.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for pyfost_gestion_studio-0.1.4.tar.gz
Algorithm Hash digest
SHA256 6be783cdbf7faa4ccdcc8e381af6eac1f50b4791ec84052dc9216082cc034e78
MD5 7f407a72d8d526bbb35ad53f25d48917
BLAKE2b-256 c2929eb6c517e6fcfd6ce7d4de14b38b47af0a02e9a897b4ef3bebe9321b86ca

See more details on using hashes here.

File details

Details for the file pyfost_gestion_studio-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for pyfost_gestion_studio-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 00ed9aecaa3579a85e125ce703a7627c6d69fb7393dda8ce29380f9e0b0fe8fc
MD5 b34f7e6ad67c6af58c3a88429c7d7455
BLAKE2b-256 c27b4dc6d28f7ae58dc7d21717c954fab0737f34b552b168322b6aaf8cb38d27

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