Skip to content

Commit c5629ca

Browse files
initial commit
0 parents  commit c5629ca

File tree

15 files changed

+1933
-0
lines changed

15 files changed

+1933
-0
lines changed

.github/workflows/release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# this file is *not* meant to cover or endorse the use of GitHub Actions, but rather to
2+
# help make automated releases for this project
3+
4+
name: Release
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build-and-publish:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
# IMPORTANT: this permission is mandatory for trusted publishing
16+
id-token: write
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
- name: Set up Python
21+
uses: actions/setup-python@v4
22+
with:
23+
python-version: '3.x'
24+
- name: Install build dependencies
25+
run: python -m pip install -U setuptools wheel build
26+
- name: Build
27+
run: python -m build .
28+
- name: Publish
29+
uses: pypa/gh-action-pypi-publish@release/v1
30+
with:
31+
skip-existing: true
32+
user: __token__
33+
password: ${{ secrets.PYPI_API_TOKEN }}

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
__pycache__
2+
.pytest_cache
3+
.env
4+
core/__pycache__

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Pixy Official PythonSDK
2+
3+
Pixy is a GenAI plform to generate multi-media resources. This SDK provides a super simple and integrated interface to generate images, videos and subtitles using the Pixy API.
4+
5+
## Installation
6+
7+
```bash
8+
<span style="color:red">pip install pixy_sdk</span>
9+
```
10+
11+
## Usage
12+
13+
This SDK can be used in two ways:
14+
15+
1. **Naive**: Conducting tasks using the `PixyClient` class; this way, operations are simple and straightforward, sacrificing flexibility.
16+
17+
2. **Advanced**: Methods of the `PixyClient` rely on a set of functions, available at the `utils` [module](core/utils); using these functions directly increases the flexibility, however this approach can get more complex.
18+
19+
## Documentation
20+
21+
For each module of the SDK, we have prepaired exlusive documentation pages, as below:
22+
23+
1. [`client`](documentation/client): This module provides the `PixyClient` class; if you are considering taking the Naive approach (as described above) to use the SDK, you should start here.
24+
25+
2. [`schemas`](documentation/schemas): To avoid data validation issues, we define and use custom data classes as schemas; on this page, we go through each of them individually.
26+
27+
3. [`utils`](documentation/utils): To provide advanced users with more control over the SDK, the whole functionality of the SDK is also available outside of the `PixyClient` class; on this page, we go through each of them individually.

0 commit comments

Comments
 (0)