Skip to main content

A python API for Outline Wiki.

Project description

Outline Wiki Python API

A python wrapper for Outline knowledge base platform API.

For full Outline API documentation visit Outline Developers page.

[!NOTE] Relevant for Outline version 0.85.1

[!IMPORTANT] The main branch may be in an unstable or even broken state during development. For stable versions, see releases.


Installation

python3 -m pip install outline-wiki-api

Usage

Let's try to search a document in our knowledge base and look through the results:

from outline_wiki_api import OutlineWiki

OUTLINE_URL = "https://my.outline.com"
OUTLINE_TOKEN = "mysecrettoken"

app = OutlineWiki(url=OUTLINE_URL, token=OUTLINE_TOKEN)

search_results = app.documents.search(query='outline').data

for result in search_results:
    print(f"document_title: {result.document.title} | "
          f"ranking: {result.ranking} | "
          f"context: {result.context[0:20].replace('\n', ' ')}\n")

You can find more usage examples in the docs.

Built with Material for MkDocs

Community Tools & Examples

The following third-party scripts/extensions use outline-wiki-api and may be useful for specific workflows:

[!NOTE] These tools are maintained by the community and not part of the core outline-wiki-api project.


License

This library is a wrapper, not affiliated with Outline.

Outline itself is BSL 1.1 licensed.

Use of Outline’s API via this wrapper must comply with Outline's licensing terms.

The original code of the wrapper is under the Apache 2.0 license. See the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

outline_wiki_api-0.3.1.tar.gz (21.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

outline_wiki_api-0.3.1-py3-none-any.whl (33.5 kB view details)

Uploaded Python 3

File details

Details for the file outline_wiki_api-0.3.1.tar.gz.

File metadata

  • Download URL: outline_wiki_api-0.3.1.tar.gz
  • Upload date:
  • Size: 21.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for outline_wiki_api-0.3.1.tar.gz
Algorithm Hash digest
SHA256 f72b95794c160507cb17a4480a94d5032b877ac0b2084c4cb514af3871a36008
MD5 9acaccda4c805197a260e2525298e4e5
BLAKE2b-256 7793531fd13191b2f8bff4021b0ee0e9caec08c1cdb3d1369a0654da0eb6cbc2

See more details on using hashes here.

Provenance

The following attestation bundles were made for outline_wiki_api-0.3.1.tar.gz:

Publisher: python-publish.yml on eppv/outline-wiki-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file outline_wiki_api-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for outline_wiki_api-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dd5898b5776413912d20555596d7c08dbeb1588794e404b805e08d9d595a3921
MD5 3cf329c9b556fe09a5c5dd4a66d20e25
BLAKE2b-256 ef95cf1597eeb00e07499d2808af3b409b9ababccf35b1e459dbbebfd63433e8

See more details on using hashes here.

Provenance

The following attestation bundles were made for outline_wiki_api-0.3.1-py3-none-any.whl:

Publisher: python-publish.yml on eppv/outline-wiki-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page