Magicarp-api

Latest version: v1.7.1

Safety actively analyzes 715033 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 4

1.3.0

~~~~~~~~~~~~~~~~~~

New Features:

* input/output fields on schema that allow blanks will return None if None was
provided (with possibly default to be set for such cases in the future)
* automated error codes for incoming data validation are possible to override,
change ERROR_CODEBOOK_ATTRIBUTES and ERROR_CODEBOOK_SCHEMA in your local
settings
* add blinker as dependency to allow adding custom signals
* create signals module that will allow emitting signals from magicarp
* first magicarp signal is emitted, it's name is 'shutdown', is being
send only in development mode when shutdown request was received
* add implementation of persistent storage
* add example implementation of /auth endpoint
* add favicon to common endpoints
* add a way to override authentication
* add a way to override registering routes

Breaking Compatibility Changes:

* hooks on magicarp server_factory has been changed from 'before_set_up' to
'before_setup' and 'set_up' into 'setup'
* renamed two functions on server factory to be slightly clearer, one went
from 'before_setup' to 'first_setup' and the other changed from
'after_setup' to 'final_setup'

1.2.0

~~~~~~~~~~~~~~~~~~

New Features:

* TimeField accepts many different formats: ie. 12m 15h or 12:00:30
* Add common endpoint '/shutdown' it terminates server, is only available for
development and it's primary use is in test cases
* Add a way to override flask settings (not all of them yet, but it's trivial
to add missing ones)
* Bump version of flask to 1.0+
* New flask allows starting app by pointing to app factory, this allows to
drop unneeded file server.py
* Add a way to override port and host when starting dev server

Bug Fixes:

* DateField is correctly validated

1.1.0

~~~~~~~~~~~~~~~~~~

New Features:

* Add DateField and TimeField to existing fields on schema input/output
* Make date parsing more robust by assuming duck-typing

1.0.11

~~~~~~~~~~~~~~~~~~~

Bug Fixes:

* Fix input throwing exception if collection was in use on incoming data.
(Regression from change for version 1.0.10)

1.0.10

~~~~~~~~~~~~~~~~~~~

Bug Fixes:

* Fix fields on SchemaField (and in some cases on CollectionField) being shared
via reference.

1.0.9

~~~~~~~~~~~~~~~~~~

New Features:

* reduce number of exception
* add missing exception to be handled on default by fw
* add a way to register additional exceptions in a fw

Page 2 of 4

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.