Skip to main content

WikiJs API client

Project description

Wiki.Js Python client ( ⚠ WIP ⚠ )

Examples

  • Move all pages in a folder to a new folder

    from wikijs import WikiJs
    
    client = WikiJs(<endpoint>, <api_key>)
    
    OLD_FOLDER = 'OldFolder/'
    NEW_FOLDER = 'NewFolder/'
    
    for page in client.search_pages('', OLD_FOLDER):
        new_path = page['path'].replace(OLD_FOLDER, NEW_FOLDER, 1)
        client.move_page(page['id'], new_path, page['locale'])
    

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

wikijs-0.1.dev1.tar.gz (8.0 kB view hashes)

Uploaded Source

Built Distribution

wikijs-0.1.dev1-py3-none-any.whl (8.7 kB view hashes)

Uploaded Python 3

Supported by

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