Skip to main content

Peasant helps you to build APIs

Project description

Candango Peasant

Peasant is a protocol abstraction of how to control agents that need to communicate with a central entity or entities.

We define agents as peasants and central entities (bases) as bastions.

Peasant will define some transport definition to help developer with basic http methods (i.e. head, post, get, etc), and avoid code duplication. Security level and your business should be implemented.

A bastion/peasant relationship could be defined as stateful or not. If stateful it is necessary to implement a session control in the bastion where peasants need to perform knocks (as knock at the door) to get permission or a valid session. In a stateless case we just ignore any knock implementation.

What must be implemented in the protocol are nonce generation, consumption and validation on both sides. A directory list of available resources offered by a bastion for peasants to consume could also be useful to have.

Support

Peasant is one of Candango Open Source Group initiatives. Available under the Apache License, Version 2.0.

This website and all documentation are licensed under Creative Commons 3.0.

Copyright © 2020-2025 Flavio Garcia

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

peasant-0.7.5.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

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

peasant-0.7.5-py3-none-any.whl (25.0 kB view details)

Uploaded Python 3

File details

Details for the file peasant-0.7.5.tar.gz.

File metadata

  • Download URL: peasant-0.7.5.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for peasant-0.7.5.tar.gz
Algorithm Hash digest
SHA256 6a0cf656f14854aa1d763b97d5fbb09cc88c4a506501005be4502ab7a936c45b
MD5 e5695a177494a96ef23b85b3df768159
BLAKE2b-256 2766a0ec5e43f92275598081475ff1036812d678fca6b67584e44549a9afb561

See more details on using hashes here.

File details

Details for the file peasant-0.7.5-py3-none-any.whl.

File metadata

  • Download URL: peasant-0.7.5-py3-none-any.whl
  • Upload date:
  • Size: 25.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for peasant-0.7.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7af9d317a730b352108e90c33636b3a2412056db183c324392e5296520abedd3
MD5 4f601124c1452dc831da4c26c65cc5a6
BLAKE2b-256 2cf7dd894e95edb789f0569931f49c1ea11a6f277dedd56db7555db8a77617fd

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