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.
The package provides enhanced support for writing REST APIs with Muffin framework
Muffin-REST ###########
.. _description:
Muffin-REST -- provides enhanced support for writing REST APIs with Muffin_.
.. _badges:
.. image:: https://github.com/klen/muffin-rest/workflows/tests/badge.svg :target: https://github.com/klen/muffin-rest/actions :alt: Tests Status
.. image:: https://img.shields.io/pypi/v/muffin-rest :target: https://pypi.org/project/muffin-rest/ :alt: PYPI Version
.. image:: https://img.shields.io/pypi/pyversions/muffin-rest :target: https://pypi.org/project/muffin-rest/ :alt: Python Versions
.. _features:
Peewee ORM
, Mongo, SQLAlchemy Core
_;.. _contents:
.. contents::
.. _requirements:
.. note:: Trio is only supported with Peewee ORM
.. _installation:
Muffin-REST should be installed using pip: ::
pip install muffin-rest
With SQLAlchemy Core
_ support: ::
pip install muffin-rest[sqlalchemy]
With Peewee ORM
_ support: ::
pip install muffin-rest[peewee]
With YAML support for autodocumentation: ::
pip install muffin-rest[yaml]
.. _usage:
Create an API:
.. code-block:: python
from muffin_rest import API
api = API()
Create endpoints and connect them to the API (example for sqlalchemy):
.. code-block:: python
from muffin_rest.sqlalchemy import SAEndpoint from project.api import api
@api.route class MyEndpoint(SAEndpoint):
class Meta:
table = MyTable
database = db
Connect it to your Muffin_ application:
.. code-block:: python
from project.api import api
api.setup(app, prefix='/api/v1')
.. _bugtracker:
If you have any suggestions, bug reports or annoyances please report them to the issue tracker at https://github.com/klen/muffin-rest/issues
.. _contributing:
Development of Muffin-REST happens at: https://github.com/klen/muffin-rest
.. _license:
Licensed under a MIT license
_.
.. _links:
.. _klen: https://github.com/klen .. _Muffin: https://github.com/klen/muffin .. _Swagger: https://swagger.io/tools/swagger-ui/ .. _Mongo: https://www.mongodb.com/ .. _Peewee ORM: http://docs.peewee-orm.com/en/latest/ .. _SqlAlchemy Core: https://docs.sqlalchemy.org/en/14/core/
.. _MIT license: http://opensource.org/licenses/MIT
FAQs
The package provides enhanced support for writing REST APIs with Muffin framework
We found that muffin-rest 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.