![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Add yaml parser to the sqla-filters package.
Add YAML support to sqla-filters.
This package use the python package pyyaml
. To install pyyaml you need to have the yaml.h header file. If it's not
present on your system you need to install the libyaml-dev package.
sudo dnf install libyaml-devel
sudo apt install libyaml-dev
pip install sqla-filter-yaml
---
type: and
data:
- type: or
data:
- type: operator
data:
attribute: name
operator: eq
value: toto
- type: operator
data:
attribute: name
operator: eq
value: tata
- type: operator
data:
attribute: age
operator: eq
value: 21
:warning: Yaml format can change in the futur. :warning:
Create an instance of the YAMLilterParser from the yaml string / document.
Example:
# Sqlalchemy setup + model definition
# Create a YAML parser instance
parser = YAMLiltersParser(raw_json_string)
# You can finaly filter your query
query = session.query(Post)
filtered_query = parser.tree.filter(query)
# Get the results
query.all()
+----------------------+
| |
| and |
| |
-----------------------+
||
||
||
+----------------------+ || +----------------------+
| | || | |
| or <------------> age == 21 |
| | | |
+----------------------+ +----------------------+
||
||
||
+----------------------+ || +----------------------+
| | || | |
| name == toto <----------------> name == tata |
| | | |
+----------------------+ +----------------------+
Fork the repository and run the following command to install the dependencies and the dev dependencies.
pip install -e '.[dev]'
FAQs
YAML parser for sqla-filters.
We found that sqla-filters-yaml 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.