This is the simplest module for quick get project endpoints
Project description
Endmapper
Endmapper is a library for mapping endpoints.
Installation
pip install endmapper
Config file "cmapcfg.json"
{
//This keywords must be in path
"path_white_list": [],
//This keywords could not be in path
"path_black_list": [],
//This keywords must be in endpoint name
"name_white_list": [],
//This keywords could not be in endpoint name
"name_black_list": [],
//Services use with proxy endpoints
//Service what you want to connect must use endmapper too
"services": {
"endpoint_name": "hostname or ip"
}
//You can use fields from .env
"services": {
"endpoint_name": "${ENV_FIELD}"
}
//Use debug mode is you need
"debug": true,
}
How to use with django/drf
- add new path to main project urls
from django.urls import path, include
urlpatterns = [
# another paths
path('', include('endmapper.urls'))
]
WARNING: all paths what you want to add to endmapper must have "name"
How to use with fastAPI
from fastapi import FastAPI
from endmapper.mappers.fastapi_mapper import connect_app
from lib_1 import some_router_1
from lib_2 import some_router_2
app = FastAPI()
app.include_router(some_router_1)
app.include_router(some_router_2)
connect_app(app)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
endmapper-0.5.2.tar.gz
(5.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file endmapper-0.5.2.tar.gz.
File metadata
- Download URL: endmapper-0.5.2.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f9bc76df6b8b75ef1d4ca77cd9a07132a20dbec9caa2bfd2cf2819126109841
|
|
| MD5 |
4bae1a64b8c23fedd2e384b88aa46f3d
|
|
| BLAKE2b-256 |
7121898e15132c76ccfd487287bfd6df6e79f435851831df2a92f080dc2c80ac
|
File details
Details for the file endmapper-0.5.2-py3-none-any.whl.
File metadata
- Download URL: endmapper-0.5.2-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5fbe4aaa44db7cb300502e6a2b57836ed229d72ec252fa05ad3a250e3f29982
|
|
| MD5 |
4ab6571c49cffa565c6978a5ba222d9f
|
|
| BLAKE2b-256 |
66b30f593135ddef1f904ac493c39c37190c4b39712239538f26ca82c7f427c2
|