Project description
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.6
Guillotina
PG/Cockroachdb
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 . 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 )
1.0.1 (2018-09-26)
Fix imports to match docs
[vangheem]
1.0.0 (2018-09-25)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages .
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names .
The dropdown lists show the available interpreters, ABIs, and platforms.
Enable javascript to be able to filter the list of wheel files.
Copy a direct link to the current filters https://pypi.org/project/guillotina-linkintegrity/1.0.1/#files
Copy
Showing 1 of 1 file.
File name
Interpreter
Interpreter
py3
ABI
ABI
none
Platform
Platform
any
File details
Details for the file guillotina_linkintegrity-1.0.1.tar.gz.
File metadata
Download URL: guillotina_linkintegrity-1.0.1.tar.gz
Upload date: Sep 26, 2018
Size: 8.1 kB
Tags: Source
Uploaded using Trusted Publishing? No
Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.6
File hashes
Hashes for guillotina_linkintegrity-1.0.1.tar.gz
Algorithm
Hash digest
SHA256
2009f28c4d50fcc887fa7ba83bd564a86e48ce0491d6bbab59a6ea71b94559e9
Copy
MD5
0527cbc96fc0e167dc1418aaac61de29
Copy
BLAKE2b-256
7027c95f80d1bdb176ec062fd36a5550de9762760ea1035fa0d6ef13631fcd54
Copy
See more details on using hashes here.
File details
Details for the file guillotina_linkintegrity-1.0.1-py3-none-any.whl.
File metadata
Download URL: guillotina_linkintegrity-1.0.1-py3-none-any.whl
Upload date: Sep 26, 2018
Size: 10.1 kB
Tags: Python 3
Uploaded using Trusted Publishing? No
Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.6
File hashes
Hashes for guillotina_linkintegrity-1.0.1-py3-none-any.whl
Algorithm
Hash digest
SHA256
efb4f695cccff082adeb48137dfef4441fc64d61c3426ae5d05ea7d0c4ca736e
Copy
MD5
9e0ed53342b8047a9d413fb3492951ad
Copy
BLAKE2b-256
e21423fa5fe110c48128041adecc6fa232b0c6ef8701df59bdfd2b180d463270
Copy
See more details on using hashes here.