Minty HTTP Api server based on Pyramid
Project description
.. _readme:
Introduction
============
Pyramid configuration library Minty Python (micro)services.
Getting started
---------------
def hello(request):
# See minty-ddd for more information about these domain classes:
domain_query_instance = request.get_query_instance("YourDomainHere")
return domain_query_instance.some_domain_query()
def main(*args, **kwargs):
# See minty-ddd for more information about these domain classes:
loader = minty_pyramid.Engine(domains=[YourDomainHere])
# 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"
)
# Returns a WSGI application
return loader.main()
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 <https://gitlab.com/minty-python/minty-pyramid/blob/master/CONTRIBUTING.md>`_
for details on our code of conduct, and the process for submitting pull requests to us.
Versioning
----------
We use `SemVer <https://semver.org/>`_ for versioning. For the versions
available, see the
`tags on this repository <https://gitlab.com/minty-python/minty-pyramid/tags/>`_
License
-------
Copyright (c) 2018, Minty Team and all persons listed in
`CONTRIBUTORS <https://gitlab.com/minty-python/minty-cqs/blob/master/CONTRIBUTORS>`_
This project is licensed under the EUPL, v1.2. See the
`EUPL-1.2.txt <https://gitlab.com/minty-python/minty-pyramid/blob/master/LICENSE>`_
file for details.
Introduction
============
Pyramid configuration library Minty Python (micro)services.
Getting started
---------------
def hello(request):
# See minty-ddd for more information about these domain classes:
domain_query_instance = request.get_query_instance("YourDomainHere")
return domain_query_instance.some_domain_query()
def main(*args, **kwargs):
# See minty-ddd for more information about these domain classes:
loader = minty_pyramid.Engine(domains=[YourDomainHere])
# 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"
)
# Returns a WSGI application
return loader.main()
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 <https://gitlab.com/minty-python/minty-pyramid/blob/master/CONTRIBUTING.md>`_
for details on our code of conduct, and the process for submitting pull requests to us.
Versioning
----------
We use `SemVer <https://semver.org/>`_ for versioning. For the versions
available, see the
`tags on this repository <https://gitlab.com/minty-python/minty-pyramid/tags/>`_
License
-------
Copyright (c) 2018, Minty Team and all persons listed in
`CONTRIBUTORS <https://gitlab.com/minty-python/minty-cqs/blob/master/CONTRIBUTORS>`_
This project is licensed under the EUPL, v1.2. See the
`EUPL-1.2.txt <https://gitlab.com/minty-python/minty-pyramid/blob/master/LICENSE>`_
file for details.
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
minty_pyramid-0.0.6.tar.gz
(5.3 kB
view hashes)
Built Distribution
Close
Hashes for minty_pyramid-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64255ea1111bae3701f1ae4d75120949464137292b4c16f61e6d67417a98abf0 |
|
MD5 | 8a6341a4a8692ed2cb53914daf0c65fe |
|
BLAKE2b-256 | 3bf26ee7e4aecf9f3fea28072bac008c7bc0b18339f30b3cb7d12aee58c36517 |