Python MongoDB Content Store
Python Store Implementation for Content in MongoDB
Usage
from frappymongocontent import ContentStore
MONGO_URL = "mongodb://localhost:27017"
content_store = ContentStore(mongo_url=MONGO_URL, mongo_db="myDatabase", collection_name="content")
content_list = content_store.find_by_reference("my-demo")
for item in content_list:
print(item.content, "is a dictionary with all the content")
Methods
Base methods provided by pbu
find_by_reference(references)- retrieves content associated with the provided reference ID (e.g.demo1). This maps to the references declared by the embedding of the frontend module@frappy/react-contentfind_by_reference_and_content_type(references, content_type)- similar tofind_by_reference, this additionally filters by content type as well. Content types are also declared by the embedding of the frontend module.update_content(content_id, label, references, content)- this is a complete update of the data (except for the content type, which shouldn't change with regular updates). This will completely replace a content objects label, reference assignment and the entire content (provided aslistordict, depending on the type of content (declared in the embedding of the frontend module)
Metadata
Release files for frappymongocontent 1.0.1
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 |
|---|---|---|---|---|
| frappymongocontent-1.0.1.tar.gz | 2.4 kB | Without provenance | Details for frappymongocontent-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| frappymongocontent-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for frappymongocontent-1.0.1-py3-none-any.whl |
Total release size: 9.4 kB
Release files / frappymongocontent-1.0.1.tar.gz
| Download URL | frappymongocontent-1.0.1.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
14f6167b8890a2b7a65f1956f6f5c8ec4524d41c7391ddd01807e75f3eff46e7
|
|
BLAKE2b-256 checksum How to use checksums |
aa3d8f1ab9c5067d85feeed76de2147ac7ebf22467704642ae492fbb0e0df47c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.12
|
Release files / frappymongocontent-1.0.1-py3-none-any.whl
| Download URL | frappymongocontent-1.0.1-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
39e7dcc5141da6b9b76b44786b09255badc0cf1afbab41f4ff493e718f6d1a03
|
|
BLAKE2b-256 checksum How to use checksums |
2293a0788e3c1669820882e9449fa91138a76ee81f62d4d5f423f2c0e531b45a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.12
|
Security for frappymongocontent 1.0.1
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.