Skip to main content

Loci Notes Server

Project description

loci-client

The Loci Notes server API.

The Loci Notes server is a FastAPI server that provides a RESTful API for interacting with the Loci Notes system. The server is designed to be used by the Loci Notes web UI, VS Code extension, Loci Notes CLI, and any other clients that may be developed in the future.

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 0.20240713.191920
  • Package version: 0.20240713.191920
  • Generator version: 7.4.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://loci-notes.gitlab.io/

Requirements.

Python 3.7+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import loci_client

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import loci_client

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import loci_client
from loci_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = loci_client.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

configuration.access_token = os.environ["ACCESS_TOKEN"]


# Enter a context with an instance of the API client
with loci_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = loci_client.DefaultApi(api_client)
    api_key_in = loci_client.ApiKeyIn() # ApiKeyIn | 

    try:
        # Create Api Key
        api_response = api_instance.create_api_key(api_key_in)
        print("The response of DefaultApi->create_api_key:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling DefaultApi->create_api_key: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
DefaultApi create_api_key POST /api/v1/api_keys/ Create Api Key
DefaultApi create_note POST /api/v1/projects/{id}/note Create Note
DefaultApi create_project POST /api/v1/projects/ Create Project
DefaultApi create_user POST /api/v1/users/ Create User
DefaultApi create_user_open POST /api/v1/users/open Create User Open
DefaultApi delete_api_key DELETE /api/v1/api_keys/{id} Delete Api Key
DefaultApi delete_artifact DELETE /api/v1/artifacts/{id} Delete Artifact
DefaultApi delete_note DELETE /api/v1/notes/{id} Delete Note
DefaultApi delete_project DELETE /api/v1/projects/{id} Delete Project
DefaultApi delete_project_access POST /api/v1/projects/{id}/remove_users Delete Project Access
DefaultApi delete_user DELETE /api/v1/users/{user_id} Delete User
DefaultApi export_project GET /api/v1/projects/{id}/export Export Project
DefaultApi get_artifact_file GET /api/v1/artifacts/{id}/file Get Artifact File
DefaultApi login_access_token POST /api/v1/login/access-token Login Access Token
DefaultApi read_api_key GET /api/v1/api_keys/{id} Read Api Key
DefaultApi read_api_keys GET /api/v1/api_keys/ Read Api Keys
DefaultApi read_artifact GET /api/v1/artifacts/{id} Read Artifact
DefaultApi read_note GET /api/v1/notes/{id} Read Note
DefaultApi read_project GET /api/v1/projects/{id} Read Project
DefaultApi read_project_artifacts GET /api/v1/projects/{id}/artifacts Read Project Artifacts
DefaultApi read_projects GET /api/v1/projects/ Read Projects
DefaultApi read_user_by_id GET /api/v1/users/{user_id} Read User By Id
DefaultApi read_user_me GET /api/v1/users/me Read User Me
DefaultApi read_users GET /api/v1/users/ Read Users
DefaultApi recover_password POST /api/v1/password-recovery/{email} Recover Password
DefaultApi recover_password_html_content POST /api/v1/password-recovery-html-content/{email} Recover Password Html Content
DefaultApi reset_password POST /api/v1/reset-password/ Reset Password
DefaultApi status GET /api/v1/status Status
DefaultApi test_email POST /api/v1/utils/test-email/ Test Email
DefaultApi test_token POST /api/v1/login/test-token Test Token
DefaultApi update_artifact PUT /api/v1/artifacts/{id} Update Artifact
DefaultApi update_note PUT /api/v1/notes/{id} Update Note
DefaultApi update_password_me PATCH /api/v1/users/me/password Update Password Me
DefaultApi update_project PUT /api/v1/projects/{id} Update Project
DefaultApi update_project_access POST /api/v1/projects/{id}/add_users Update Project Access
DefaultApi update_user PATCH /api/v1/users/{user_id} Update User
DefaultApi update_user_me PATCH /api/v1/users/me Update User Me
DefaultApi upload_project_zipfile POST /api/v1/projects/{id}/zipfile Upload Project Zipfile

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

OAuth2PasswordBearer

  • Type: OAuth
  • Flow: password
  • Authorization URL:
  • Scopes: N/A

Author

thetwitchy@thetwitchy.com

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

loci_client-0.20240713.191920.tar.gz (58.1 kB view details)

Uploaded Source

Built Distribution

loci_client-0.20240713.191920-py3-none-any.whl (135.9 kB view details)

Uploaded Python 3

File details

Details for the file loci_client-0.20240713.191920.tar.gz.

File metadata

  • Download URL: loci_client-0.20240713.191920.tar.gz
  • Upload date:
  • Size: 58.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.14 Linux/5.15.154+

File hashes

Hashes for loci_client-0.20240713.191920.tar.gz
Algorithm Hash digest
SHA256 ac5617cd8fb73ba765baebe23743c9330f552d4bac605cbb1c59285a596d6141
MD5 57a98c49d41ad6d7ba4e7517dfaf7464
BLAKE2b-256 5da225ce03fada2d6104121d2dd3a175bc48f72859292d7f89c1bd32bb107faa

See more details on using hashes here.

File details

Details for the file loci_client-0.20240713.191920-py3-none-any.whl.

File metadata

File hashes

Hashes for loci_client-0.20240713.191920-py3-none-any.whl
Algorithm Hash digest
SHA256 efa8e3bbdedd72739965603ac0e6222c7960040c45e3134bc8d236fd9ad182db
MD5 4bcd2133abcca497a5cabde8cf33fc89
BLAKE2b-256 18f7d6d6ca086f2843d03be93dc20f2b4aa0e81daf97befe703160acf88733d8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page