sitreps-python-api
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 0.1.0
- Package version: 1.2.1
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements.
Python >=3.6
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 sitreps_python_api
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 sitreps_python_api
Getting Started
Please follow the installation procedure and then run the following:
import time
import sitreps_python_api
from pprint import pprint
from sitreps_python_api.api import code_coverage_api
from sitreps_python_api.model.code_coverage_create import CodeCoverageCreate
from sitreps_python_api.model.http_validation_error import HTTPValidationError
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = sitreps_python_api.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with sitreps_python_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = code_coverage_api.CodeCoverageApi(api_client)
code_coverage_create = CodeCoverageCreate(
time=dateutil_parser('1970-01-01T00:00:00.00Z'),
coverage=3.14,
repository_id=1,
) # CodeCoverageCreate |
try:
# Create Code Coverage
api_response = api_instance.create_code_coverage(code_coverage_create)
pprint(api_response)
except sitreps_python_api.ApiException as e:
print("Exception when calling CodeCoverageApi->create_code_coverage: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to http://localhost
| Class | Method | HTTP request | Description |
|---|---|---|---|
| CodeCoverageApi | create_code_coverage | POST /api/v1/coverage/ | Create Code Coverage |
| CodeCoverageApi | read_code_coverage | GET /api/v1/coverage/ | Read Code Coverage |
| CountLineOfCodeApi | create_cloc | POST /api/v1/cloc/ | Create Cloc |
| CountLineOfCodeApi | read_cloc | GET /api/v1/cloc/ | Read Cloc |
| IntegrationTestsApi | create_integration_test | POST /api/v1/integrationtest/ | Create Integration Test |
| IntegrationTestsApi | read_integration_test | GET /api/v1/integrationtest/ | Read Integration Test |
| JiraApi | create_jira | POST /api/v1/jira/ | Create Jira |
| JiraApi | read_jira | GET /api/v1/jira/ | Read Jira |
| ProjectGroupsApi | create_project_group | POST /api/v1/projectgroups/ | Create Project Group |
| ProjectGroupsApi | delete_project_group | DELETE /api/v1/projectgroups/{id} | Delete Project Group |
| ProjectGroupsApi | read_project_group | GET /api/v1/projectgroups/{id} | Read Project Group |
| ProjectGroupsApi | read_project_groups | GET /api/v1/projectgroups/ | Read Project Groups |
| ProjectGroupsApi | update_project_group | PUT /api/v1/projectgroups/{id} | Update Project Group |
| ProjectsApi | create_project | POST /api/v1/projects/ | Create Project |
| ProjectsApi | delete_project | DELETE /api/v1/projects/{id} | Delete Project |
| ProjectsApi | read_project | GET /api/v1/projects/ | Read Project |
| ProjectsApi | read_project_id | GET /api/v1/projects/{id} | Read Project Id |
| ProjectsApi | update_project | PUT /api/v1/projects/{id} | Update Project |
| RepositoriesApi | create_repository | POST /api/v1/repositories/ | Create Repository |
| RepositoriesApi | delete_repository | DELETE /api/v1/repositories/{id} | Delete Repository |
| RepositoriesApi | read_repository | GET /api/v1/repositories/ | Read Repository |
| RepositoriesApi | read_repository_id | GET /api/v1/repositories/{id} | Read Repository Id |
| RepositoriesApi | update_repository | PUT /api/v1/repositories/{id} | Update Repository |
| SonarQubeApi | create_sonarqube | POST /api/v1/sonarqube/ | Create Sonarqube |
| SonarQubeApi | read_sonarqube | GET /api/v1/sonarqube/ | Read Sonarqube |
| UnitTestsApi | create_unittests | POST /api/v1/unittests/ | Create Unittests |
| UnitTestsApi | read_unittests | GET /api/v1/unittests/ | Read Unittests |
| DefaultApi | dump_data | POST /api/v1/ | Dump Data |
| DefaultApi | get_status | GET /api/v1/ | Get Status |
Documentation For Models
- CLOCCreate
- CodeCoverageCreate
- Data
- HTTPValidationError
- IntegrationTestCreate
- JiraCreate
- LocationInner
- ProjectCreate
- ProjectGroupCreate
- ProjectGroupUpdate
- RepositoryCreate
- RepositoryUpdate
- SonarQubeCreate
- UnitTestCreate
- ValidationError
Documentation For Authorization
All endpoints do not require authorization.
Author
Notes for Large OpenAPI documents
If the OpenAPI document is large, imports in sitreps_python_api.apis and sitreps_python_api.models may fail with a RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:
Solution 1: Use specific imports for apis and models like:
from sitreps_python_api.api.default_api import DefaultApifrom sitreps_python_api.model.pet import Pet
Solution 2: Before importing the package, adjust the maximum recursion limit as shown below:
import sys
sys.setrecursionlimit(1500)
import sitreps_python_api
from sitreps_python_api.apis import *
from sitreps_python_api.models import *
Metadata
Release files for sitreps-python-api 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sitreps_python_api-0.0.3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for sitreps_python_api-0.0.3-py2.py3-none-any.whl |
Release files / sitreps_python_api-0.0.3-py2.py3-none-any.whl
| Download URL | sitreps_python_api-0.0.3-py2.py3-none-any.whl |
|---|---|
| Size | 109.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
ac9240fe49ae46977814f3db82630e2a2643ddc2a889369a04e454e98f17618e
|
|
BLAKE2b-256 checksum How to use checksums |
3785bbfe0721cb4e7219ddb43d7931748d361d1cd3fb487763ed972a0e5633e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.14
|
Security for sitreps-python-api 0.0.3
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.