Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
.. image:: https://travis-ci.org/palankai/pyrs-schema.svg?branch=master :target: https://travis-ci.org/palankai/pyrs-schema
.. image:: https://coveralls.io/repos/palankai/pyrs-schema/badge.svg?branch=master&service=github :target: https://coveralls.io/github/palankai/pyrs-schema?branch=master
.. image:: https://readthedocs.org/projects/pyrs-schema/badge/?version=stable :target: http://pyrs-schema.readthedocs.org/en/stable/ :alt: Documentation Status
| Project homepage: <https://github.com/palankai/pyrs-schema>
_
| Documentation: <http://pyrs-schema.readthedocs.org/>
_
| Issues: <https://github.com/palankai/pyrs-schema/issues>
_
I've used different python frameworks for data serialisation many times. Mostly when I had to implement an API for my work. I felt many times those frameworks did good job but not extensible enough. Also writing easily an API which is satisfy every expectations of projects, without coupled restrictions sometimes really hard.
.. code:: python
from pyrs import schema
class UserSchema(schema.Object):
version = schema.Version(version='1.0')
username = schema.StringField(required=True)
password = schema.StringField(required=True, tags=['writeonly'])
email = schema.EmailField(title='Registered email address')
writer = schema.JSONWriter(UserSchema)
jsonstring = writer.write(data) # The validation also happen
schemawriter = schema.JSONSchemaWriter()
jsonschemastr = writer.write(UserSchema)
The code is tested with python 2.7, 3.3, 3.4.
.. code:: bash
$ pip install pyrs-schema
See requirements.txt. But The goal is less dependency as possible. The main
dependency is the python jsonchema <https://github.com/Julian/jsonschema>
_
The validation is using that package.
Notice that even it's a JSON schema validator this work still can be used for any (compatible) schema validation.
This code is in beta version. I working hard on write stable as possible API in the first place but while this code in 0.x version you should expect some major modification on the API.
This work is part of pyrs framework <https://github.com/palankai/pyrs>
_.
The complete framework follow the same intention to implement flexible
solution.
I really welcome any comments! I would be happy if you fork my code or create pull requests. I've already really strong opinions what I want to achieve and how, though any help would be welcomed.
Feel free drop a message to me!
FAQs
Python microservice framework
We found that pyrs-schema 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.