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.8.tar.gz (6.5 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.8-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: revornix-0.0.8.tar.gz
  • Upload date:
  • Size: 6.5 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.8.tar.gz
Algorithm Hash digest
SHA256 74e5be51f43731ba534095313745aa3288dfe9303ee628d36e8b219db3bc24b6
MD5 2131fdcfe00bfb4504b03a6f2d4b6c19
BLAKE2b-256 1243dd50b4d8af831cfeafae78f74df43259ac7bc20fbff8458457c1dd8374b5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: revornix-0.0.8-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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 5570e02254cafcfbeda9bb3efc741254883041c88d7ac45fb549a4d120419d62
MD5 dac45fbafb182ea4a0f4c3bf10dcea8f
BLAKE2b-256 c39f9967ec9fad29d4b605f65eea085d7070d5b4592a974de747ca2d167db6e4

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