
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
A tool for provide format and serialize support to json, xml, form data and query string.
This library provides a simple API for encoding and decoding declared classes to and from JSON, XML, FORM-DATA or QueryString.
It's very easy to get started.
pip install pydeclares
from pydeclares import var, Declared
class Person(Declared):
name = var(str)
age = var(int)
# decode json string
data = '{"name": "Tom", "age": 18}'
person = Person.from_json(data)
assert person.name == "Tom"
assert person.age == 18
# you can encode to xml after decode json string
result = person.to_xml()
assert result == '<person><name>Tom</name><age>18</age></person>'
# or form-data
result = person.to_form_data()
assert result == "name=Tom&age=18"
# or query string
person = Person(name="tom@a", age=18)
result = person.to_query_string()
assert result == "name=tom%40a&age=18"
FAQs
A tool for provide format and serialize support to json, xml, form data and query string.
We found that pydeclares 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
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.