SyntaxDB
This is a small Python library for accessing the SyntaxDB API.
SyntaxDB is a programing language syntax database. See https://syntaxdb.com/about for more infomation.
Official document of the API can be found at https://syntaxdb.com/api/v1.
Installation
pip install syntaxdb
Usage
import syntaxdb
Authentication
The usage of the API doesn’t require any authentication.
Queries
First, there is an example:
import syntaxdb
db = syntaxdb.syntaxdb()
#add parameters if neccessary:
db.parameters['language_permalink'] = 'python'
#query concepts of language (here is Python):
db.concept()
Before executing some queries, we need to add the parameters (if necessary).
db.parameters['parameter_name'] = value
Then call concept(), language(), category() to get what we want (in the example we get all concepts corresponding to Python).
After finishing query, we can change parameters to make another query.
See parameters list in API’s document: https://syntaxdb.com/api/v1.
More detail about operations, parameter’s type, required parameters, response content type … can be found at the API documentation too.
To query an operation (listed in the API doc), we just simply add parameters mentioned in the doc (pay attention to required parameters), then call concept(), language() or category().
Changelog:
26/2/2017: 0.0.1
Inital release. Success build with Travis. Pip support.
9/3/2017: 0.0.6
Fix bug: function name "addparameters".
8/5/2017: 0.1.2
Add Python3 support.
Contributing
Bug reports and pull requests are welcomed at https://github.com/lhat-messorem/syntax_db.
License
This library is a open source software licensed under the MIT License. Details provided in the LICENSE file.
SyntaxDB API copyrights © 2017 SyntaxDB
Metadata
Release files for syntaxdb 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| syntaxdb-0.1.2.tar.gz | 3.2 kB | Without provenance | Details for syntaxdb-0.1.2.tar.gz |
Release files / syntaxdb-0.1.2.tar.gz
| Download URL | syntaxdb-0.1.2.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
713923a4fb5ab034da612165cd9af9be17b0417997eeaaa196d13a84efa18e62
|
|
BLAKE2b-256 checksum How to use checksums |
9d51e951ab7c02786127cff28a6698b8e3c434b017b8ecd14ec84bd8490147b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for syntaxdb 0.1.2
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.