Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

endmapper

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

endmapper

This is the simplest module for quick get project endpoints

  • 0.5.0
  • PyPI
  • Socket score

Maintainers
1

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)

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc