Skip to main content

Core to write deep APIs using a module's tree

Project description

HalfAPI

Base tools to develop comlex API with rights management.

Dependencies

  • python3
  • python3-pip
  • libgit2-dev
  • starlette
  • PyJWT
  • click
  • uvicorn
  • orjson
  • pyyaml

Configuration

Configure HalfAPI in the file : .halfapi/config .

It's an ini file that contains at least two sections, project and domains.

### Project

The main configuration options without which HalfAPI cannot be run.

name : Project's name

halfapi_version : The HalfAPI version on which you work

secret : The file containing the secret to decode the user's tokens.

port : The port for the test server.

loglevel : The log level (info, debug, critical, ...)

Domains

The name of the options should be the name of the domains' module, the value is the submodule which contains the routers.

Example :

dummy_domain = .routers

Usage

Develop an HalfAPI domain by following the examples located in tests/dummy_domain . An HalfAPI domain should be an importable python module that is available in the python path.

Run the project by using the halfapi run command.

API Testing

@TODO

Example

Check out the sample project that helps you to build your own domain.

Development

@TODO

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

halfapi-0.5.13.tar.gz (18.3 kB view details)

Uploaded Source

Built Distribution

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

halfapi-0.5.13-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

Details for the file halfapi-0.5.13.tar.gz.

File metadata

  • Download URL: halfapi-0.5.13.tar.gz
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5

File hashes

Hashes for halfapi-0.5.13.tar.gz
Algorithm Hash digest
SHA256 a56637bd34a5ffe84548255db0a12345ce7bdf0251d4dd90ead762ee572be117
MD5 97493e529db510101b1f1937a60b4543
BLAKE2b-256 df7b85ff78a885c3096a08076bd30bc54828654530f8c4ccf5aa35eefbafa371

See more details on using hashes here.

File details

Details for the file halfapi-0.5.13-py3-none-any.whl.

File metadata

  • Download URL: halfapi-0.5.13-py3-none-any.whl
  • Upload date:
  • Size: 23.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5

File hashes

Hashes for halfapi-0.5.13-py3-none-any.whl
Algorithm Hash digest
SHA256 cbed20ce0ec04a71dcd41eaf1b0bd9484410062c6937f81d55e419ae1a5364f9
MD5 0473fb6bece1b4b15b3b9f3b90632937
BLAKE2b-256 f72d87495ecf9ce22d426a0297a9bad1925bcb8f76dc487dc01a69b822c9ac0e

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