The python package for Revornix API.
Project description
Revornix-Python-Lib
The python package for Revornix API.
📕 API Document: revornix/api
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)
Create Audio Document
from revornix import Session, Schema
session = Session(base_url='YOUR_API_PREFIX', api_key='YOUR_API_KEY');
data = Schema.DocumentSchema.AudioDocumentParameters(
file_name="demo.mp3",
sections=[],
labels=[],
auto_summary=False,
auto_transcribe=True
)
res = session.create_audio_document(data=data)
Contributors
Project details
Release history Release notifications | RSS feed
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.9.tar.gz
(6.6 kB
view details)
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.
Copy a direct link to the current filters
File details
Details for the file revornix-0.0.9.tar.gz.
File metadata
- Download URL: revornix-0.0.9.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c741d4bec00f43c8bd72726171f0fa35187e45de094a2074da4ab69430939b2
|
|
| MD5 |
dc0c4dfb31d93561525222e9c66488be
|
|
| BLAKE2b-256 |
9d816c66ef41ced2582f8ef1d98a6071fe0a08ae3c755a92bb14737a0b515caa
|
File details
Details for the file revornix-0.0.9-py3-none-any.whl.
File metadata
- Download URL: revornix-0.0.9-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4abd57ab1ec33c091ee9a56223e75ecf0b78ffac98b26e98d6b8c40ea68299ac
|
|
| MD5 |
17062821a5683fbc3e397289f9ca2c2d
|
|
| BLAKE2b-256 |
0ea0e38ae86bc8dd3b94814aeda0715b8c7ef52ab83d5d40708f8fbfc25222f7
|