Skip to main content

The python package for Revornix API.

Project description

Revornix-Python-Lib

The python package for Revornix API.

📕 API Document: revornix/api

Ask DeepWiki

Full Docker App

https://github.com/Qingyon-AI/Revornix

Introduction

🚀 RoadMap: RoadMap

🖥️ Official Website: https://revornix.com

❤️ Join our community: Discord | WeChat | QQ

Installation

pip install revornix

Usage

Upload File

from revornix import Session

session = Session(base_url='YOUR_API_PREFIX', api_key='YOUR_API_KEY');
res = session.upload_file(local_file_path="", remote_file_path="")

Create Document Label

from revornix import Session, Schema

session = Session(base_url='YOUR_API_PREFIX', api_key='YOUR_API_KEY');
data = Schema.DocumentSchema.LabelAddRequest(
    name="test"
)
res = session.create_document_label(data=data)

Create Section Label

from revornix import Session, Schema

session = Session(base_url='YOUR_API_PREFIX', api_key='YOUR_API_KEY');
data = Schema.SectionSchema.LabelAddRequest(
    name="test"
)
res = session.create_section_label(data=data)

Create Section

from revornix import Session, Schema

session = Session(base_url='YOUR_API_PREFIX', api_key='YOUR_API_KEY');
data = Schema.SectionSchema.SectionCreateRequest(
    title="test",
    description="test",
    auto_publish=False,
    cover='test.png',
    labels=[],
    process_task_trigger_type=1
)
res = session.create_section(data=data)

Get Mine All Document Labels

from revornix import Session

session = Session(base_url='YOUR_API_PREFIX', api_key='YOUR_API_KEY');
res = session.get_mine_all_document_labels()

Create Quick Note Document

from revornix import Session, Schema

session = Session(base_url='YOUR_API_PREFIX', api_key='YOUR_API_KEY');
data = Schema.DocumentSchema.QuickNoteDocumentParameters(
    content="test",
    sections=[],
    labels=[],
    auto_summary=False
)
res = session.create_quick_note_document(data=data)

Create Website Document

from revornix import Session, Schema

session = Session(base_url='YOUR_API_PREFIX', api_key='YOUR_API_KEY');
data = Schema.DocumentSchema.WebsiteDocumentParameters(
    url="https://www.google.com",
    sections=[],
    labels=[],
    auto_summary=False
)
res = session.create_website_document(data=data)

Create File Document

from revornix import Session, Schema

session = Session(base_url='YOUR_API_PREFIX', api_key='YOUR_API_KEY');
data = Schema.DocumentSchema.FileDocumentParameters(
    file_name="demo",
    sections=[],
    labels=[],
    auto_summary=False
)
res = session.create_file_document(data=data)

Contributors

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

revornix-0.0.7.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

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

revornix-0.0.7-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file revornix-0.0.7.tar.gz.

File metadata

  • Download URL: revornix-0.0.7.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for revornix-0.0.7.tar.gz
Algorithm Hash digest
SHA256 faafe775fd85e9439ecf865f1701663d92fcfd0751ddba0c1550a293f9d07eaa
MD5 ec8402a55e27044168390241958dd37a
BLAKE2b-256 7faf951ab3fce15f3b7318e86af5120341227c8cea7d7c8fa5ec6534e994731c

See more details on using hashes here.

File details

Details for the file revornix-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: revornix-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for revornix-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 2c01d751c545f339cdce156efcb3667c6637f0f459e5bdcc585a8504d20f987b
MD5 92bb74c84ca35fec9eb496d09ddeba7b
BLAKE2b-256 f85ad4c3922a783400dbb445ab5c8e49c225d9a174f4503648298799011b5fd8

See more details on using hashes here.

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