Skip to main content

Introduction

Pyramid configuration library Minty Python (micro)services.

Getting started

View:

def hello(request):
  # See minty package for more information about these domain classes:
  domain_query_instance = request.get_query_instance("YourDomainHere")
  return domain_query_instance.some_domain_query()

Main:

def main(*args, **kwargs):
  # See minty package for more information about these domain classes:
  loader = minty_pyramid.Engine(domains=[YourDomainHere])

  # [optional] To retrieve session information, make sure  to add before
  # running loader.setup()
  kwargs["session_manager"] = True

  # Ensure the "get_query_instance" request method is available
  # It will use a CQRS instance, built with an InstanceConfig built from
  # the configuration file specified in the file pointed to by
  # "minty_service.infrastructure.config_file" in kwargs
  config = loader.setup(*args, **kwargs)

  config.add_route("hello_world", "/hello")
  config.add_view(
      hello, request_method="GET", renderer="json", route_name="hello_world"
      )

  # If you've created the app from an openapi-spec file make sure to add:
  routes.add_routes(config)

  # Returns a WSGI application
  return loader.main()
Code generation commands:
generate-views: create boilerplate views by using “generate-views” command.

When creating your application from an openapi(v3) spec file run “generate-views” to create “views.py” file with boilerplate code for all the views specified in the openapi spec.

see “generate-views –help” for more info

generate-routes: create Routes by using “generate-routes” command.

Generate or re-generate “routes.py” file from an openapi spec file.

see “generate-routes –help” for more info

More documentation

Please see the generated documentation via CI for more information about this module and how to contribute in our online documentation. Open index.html when you get there: https://gitlab.com/minty-python/minty-pyramid/-/jobs/artifacts/master/browse/tmp/docs?job=qa

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository

License

Copyright (c) Minty Team and all persons listed in the file CONTRIBUTORS

This project is licensed under the EUPL, v1.2. See the EUPL-1.2.txt in the LICENSES directory for details.

Metadata

Release files for minty-pyramid 3.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for minty-pyramid 3.0.2
File Size Uploaded Provenance Actions
minty_pyramid-3.0.2.tar.gz 26.0 kB Without provenance Details for minty_pyramid-3.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for minty-pyramid 3.0.2
File Interpreter ABI Platform Actions
minty_pyramid-3.0.2-py3-none-any.whl Python 3 none any Details for minty_pyramid-3.0.2-py3-none-any.whl

Total release size: 58.1 kB

Release files / minty_pyramid-3.0.2.tar.gz

Download URL minty_pyramid-3.0.2.tar.gz
Size 26.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0a2a74c5ed0a486219c02c4661f2bd0a5fdc900ebab685ff19eb1a3627a4d78c
BLAKE2b-256 checksum
How to use checksums
5b06a5f8b1534d89ffe99dfb22fa1b900a184fd88cecafd3443767e7e769c236
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / minty_pyramid-3.0.2-py3-none-any.whl

Download URL minty_pyramid-3.0.2-py3-none-any.whl
Size 32.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e06f2db93b832fd69a072f31670b5f2176d20dc17d457cbd9a1e76b605ba6cb9
BLAKE2b-256 checksum
How to use checksums
3aeb8721087109dec6d3d894605e5c3aa7a461c86af0efd5374f1c3c70f60e04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Security for minty-pyramid 3.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

3.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page