Skip to main content

A Django package for microservices

Project description

Install the package

setup in settings.py:

PROTOCOL = "http://" DOMAIN = { 'profile'(this is define variable): 'localhost:8001(this is domain)', }

PATH = { 'profile-create(this isdefine variable)': 'profiles/profile-create(this is api/path)', }

for create: user_data = { "uuid": str(user.uuid), "name": user.name } profile_create = CallEndpoint(self.request, 'profile'(this is varable of Domain which is define in settings), 'profile-create'(this is varable of path)).create(user_data)

for read all data: profile_list = CallEndpoint(self.request, 'profile', 'profile-list').get()

for get specific data by using id/uuid: profile_detail = CallEndpoint(self.request, 'profile', 'profile-detail').get_detail(id or uuid)

for update: profile_update = CallEndpoint(self.request, 'profile', 'profile-update').update(id or uuid, data)

for delete: profile_delete = CallEndpoint(self.request, 'profile', 'profile-delete').delete(id or uuid)

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

microservices_django-0.0.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

microservices_django-0.0.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file microservices_django-0.0.1.tar.gz.

File metadata

  • Download URL: microservices_django-0.0.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for microservices_django-0.0.1.tar.gz
Algorithm Hash digest
SHA256 b8499dc254b0eba0ef49f966038617dbb3fb46529e8dd28d996d342c106bdf00
MD5 55769e7bf22ec6431662a47b62bfa836
BLAKE2b-256 3ab3bfb19d0edddab0def376931afc3755b06ab634c2c20a8e4f1a59d3ff6376

See more details on using hashes here.

File details

Details for the file microservices_django-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for microservices_django-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e36d62ec757b176056e5aa9a4787866e65464be866802284f4e3d99ac0a16dfb
MD5 f7d73100425c38715f1ea39554c2201e
BLAKE2b-256 1057072463109f0e38899cadc23e388f59008f0c00ddd216bd8c9afa55cfc762

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