Guillotina link integrity
The package aims to provide link integrity support for Guillotina.
Features:
- Ability to check for linked content
- Automatically redirect requests when content is renamed or moved
- Manage aliases to content
- Translate resolveuid urls in text
Dependencies
- Python >= 3.7
- Guillotina > 5
- PG/Cockroachdb with redis
Installation
This example will use virtualenv:
python -m venv .
./bin/pip install .[test]
Running
Running Postgresql Server:
docker run --rm -e POSTGRES_DB=guillotina -e POSTGRES_USER=guillotina -p 127.0.0.1:5432:5432 --name postgres postgres:9.6
Most simple way to get running:
./bin/guillotina
API
The package provides some high level APIs for interacting with content.
Working with linked content:
import guillotina_linkintegrity as li
await li.get_links(ob)
await li.get_links_to(ob)
await li.add_links(ob, [ob2, ob3])
await li.remove_links(ob, [ob2, ob3])
await li.update_links_from_html(ob, content)
How about aliases:
import guillotina_linkintegrity as li
await li.get_aliases(ob)
await li.add_aliases(ob, ['/foo/bar'])
await li.remove_aliases(ob, ['/foo/bar'])
# what about aliases from parents that might affect it?
await li.get_inherited_aliases(ob)
Translate uid linked content:
import guillotina_linkintegrity as li
result = await li.translate_links(content)
6.0.0 (2021-11-09)
- Support guillotina >= 6.3.0 [frapell]
5.0.2 (2019-10-29)
- Fixing Tests and Manifest [bloodbare]
5.0.1 (2019-10-29)
- Fixing behavior richtext field and G5 [bloodbare]
5.0.0 (2019-06-22)
- Upgrade to work with Guillotina 5
1.0.8 (2019-06-18)
- Restrict compat with guillotina
1.0.7 (2019-01-29)
- Fix use of storage lock [vangheem]
1.0.6 (2019-01-15)
- Safe queries [vangheem]
1.0.5 (2018-10-02)
- Fix error on link integrity [vangheem]
1.0.4 (2018-09-27)
- Fix dummy storage 404 error
1.0.3 (2018-09-26)
- Implement caching [vangheem]
1.0.2 (2018-09-26)
-
Add
@links-toendpoint and utils.get_links_to [vangheem] -
Do not fail when using dummy storage [vangheem]
1.0.1 (2018-09-26)
- Fix imports to match docs [vangheem]
1.0.0 (2018-09-25)
- initial release
Release files for guillotina-linkintegrity 6.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| guillotina_linkintegrity-6.0.0.tar.gz | 11.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| guillotina_linkintegrity-6.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.3 kB
Release files / guillotina_linkintegrity-6.0.0.tar.gz
| Download URL | guillotina_linkintegrity-6.0.0.tar.gz |
|---|---|
| Size | 11.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
604c6f481fe72b1e12c7d7029532bea75a030158af693eb6bd43704037f1f18f
|
|
BLAKE2b-256 checksum How to use checksums |
69b7694bb6247cc430c559c8d3351b4f929fe3a08b2531946c9cc00e3aeedd88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5
|
Release files / guillotina_linkintegrity-6.0.0-py3-none-any.whl
| Download URL | guillotina_linkintegrity-6.0.0-py3-none-any.whl |
|---|---|
| Size | 12.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
245fc88d4a4c7ed77343cb22311c7ab092f1a509cb11720f8fd53acf3cf796cf
|
|
BLAKE2b-256 checksum How to use checksums |
d3689c8b87f21d3091b2c28d22515f5995b7568420e6140030b9af8baec57f91
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5
|