Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
.. _readme:
Pyramid configuration library Minty Python (micro)services.
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
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>
_
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.
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/>
_
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.
.. SPDX-FileCopyrightText: 2020 Mintlab B.V. .. .. SPDX-License-Identifier: EUPL-1.2
FAQs
Minty HTTP Api server based on Pyramid
We found that minty-pyramid demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.