Skip to main content

CONTRIBUTORS WANTED!!

Installation

pip install python-soql-parser

or, with poetry

poetry add python-soql-parser

Usage

from python_soql_parser import parse


parse_result = parse("SELECT Id FROM Account")

where parse_result is a ParseResults object from pyparsing.

Notable caveats

Unsupported features

  • Subqueries (e.g., SELECT Name, (SELECT LastName FROM Contacts) FROM Account)
  • Aggregate queries
  • SOQL specific WHERE-clause tokens (e.g., LAST_N_DAYS:<integer>)

Partially supported

These are either partially supported or weakly supported

  • Related attributes (e.g., SELECT Id, Account.Name FROM Contact). The object name is not yet parsed out on its own. This will simply parse out "Account.Name"

Contributing

A lot of work remains to be done. Practically no SOQL-specific features are supported as of yet. If you want to contribute, just open a PR! (and add a test for your new feature)

Setting up locally

First install poetry. Afterwards, to install the dependencies, run

poetry install

Running the tests

Simply execute

pytest

House cleaning

Please sort imports with isort and format the code with black (in that order).

Metadata

Release files for python-soql-parser 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-soql-parser 0.2.0
File Size Uploaded Provenance Actions
python-soql-parser-0.2.0.tar.gz 3.4 kB Without provenance Details for python-soql-parser-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for python-soql-parser 0.2.0
File Interpreter ABI Platform Actions
python_soql_parser-0.2.0-py3-none-any.whl Python 3 none any Details for python_soql_parser-0.2.0-py3-none-any.whl

Total release size: 7.3 kB

Release files / python-soql-parser-0.2.0.tar.gz

Download URL python-soql-parser-0.2.0.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b3df8612afe4a9bbe45017eb857738fb81f9715da32bacb12fc99c4706f80c7e
BLAKE2b-256 checksum
How to use checksums
98b9aa24cd82ed8470a52ea23cfbfb887634b931b7d7ed669702698b1fdfc9de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.0 CPython/3.8.16 Linux/5.4.0-1103-azure

Release files / python_soql_parser-0.2.0-py3-none-any.whl

Download URL python_soql_parser-0.2.0-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
51b37064c2b7e098e9020837707aa30accfff918303fc92fb63fefb3e21804d3
BLAKE2b-256 checksum
How to use checksums
e1e34cd320e3a36a3eeb8ff3ba6abdb2fc087d151b8204cd581b1a6ce951d5ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.0 CPython/3.8.16 Linux/5.4.0-1103-azure

Security for python-soql-parser 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page