semvec/pypi-packages huggingface dataset:
zenetics-sdk 0.0.1
Zenetics SDK
Requires Python: >=3.8

# Zenetics SDK

Zenetics sdk

### Running the SDK

Requires **Python>=3.11**. **TIP**: Use a virtual env before running the commands.

```bash
$ make install-requirements

$ make build-wheel

$ export OPENAI_API_KEY=<your-openai-api-key>

# make sure you are running server locally at localhost:8080
$ python3 usage.py

zenetics sdk: session={'id': '1d787eae-aba7-4971-9be5-2ccb660e9cc2', 'applicationId': 'default', 'completions': [{'messages': [{'role': 'system', 'content': 'You are a helpful assistant.'}, {'role': 'user', 'content': 'Knock knock.'}, {'role': 'assistant', 'content': "Who's there?"}, {'role': 'user', 'content': 'Orange.'}], 'model': 'gpt-3.5-turbo', 'result': {'content': 'Orange who?', 'role': 'assistant'}}]}
```
rockai-cli-app 0.2.130
Python SDK for RockAI.online
Requires Python: <3.12,>=3.9

# Setup

Python SDK for inference and training for RockAI

```shell
# Install package using pip
pip install rockai-cli-app
```

```python
from rockai_cli_app import Client
import asyncio

my_client = Client()


# Function to run the asynchronous function and print the result
async def main():
    
    result = await my_client.run_async(
        version="001bb81139b01780380407b4106ac681df46108e002eafbeb9ccb2d8faca42e1",
        input={
            "width": 1024,
            "height": 1024,
            "prompt": "a cartoon of a IRONMAN fighting with HULK, wall painting",
            "guidance_scale": 3,
            "negative_prompt": "(deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation, NSFW",
            "num_inference_steps": 15,
        }
    )
    print("Result:", result)


# Run the main function using asyncio.run
if __name__ == "__main__":
    asyncio.run(main())
```

```shell
# clean docker space
docker system prune --all --force --volumes
```

# Development
* Python version 3.9.19
plemmy 0.4.8
A Python package for accessing the LemmyHttp API
Requires Python: >=3.7

# Plemmy: a Python package for accessing the Lemmy API

<img src="https://github.com/Fedihosting-Foundation/plemmy/blob/main/img/plemmy.png" alt="drawing" width="325"/>

[![GitHub version](https://badge.fury.io/gh/Fedihosting-Foundation%2Fplemmy.svg)](https://badge.fury.io/gh/Fedihosting-Foundation%2Fplemmy)
[![PyPI version](https://badge.fury.io/py/plemmy.svg)](https://badge.fury.io/py/plemmy)
[![GitHub license](https://img.shields.io/badge/license-Apache-blue.svg)](https://raw.githubusercontent.com/Fedihosting-Foundation/plemmy/master/LICENSE.txt)

Plemmy allows you to interact with any Lemmy instance using Python and the [LemmyHttp API](https://join-lemmy.org/api/classes/LemmyHttp.html).

**WARNING:** Plemmy is still in development and needs testing!

## Installation ##

For the most up-to-date version of Plemmy, clone and install from the repository:

```
git clone https://github.com/Fedihosting-Foundation/plemmy
cd plemmy
python -m pip install .
```

A PyPI repository is updated whenever a new version is available:

```
python -m pip install plemmy
```

## Basic usage ##

Interact with a Lemmy instance using the _LemmyHttp_ object:

```python
from plemmy import LemmyHttp

# create object for Lemmy.world, log in
srv = LemmyHttp("https://lemmy.world")
srv.login("<username_or_email>", "<password>")
```

Access specific communities:

```python
from plemmy.responses import GetCommunityResponse

# obtain community, parse JSON
api_response = srv.get_community(name="Lemmy")
response = GetCommunityResponse(api_response)

# community info
community = response.community_view.community
print(community.name)
print(community.actor_id)
print(community.id)

# list community moderators
for person in response.moderators:
    print(person.moderator.name, person.community.name)
```

Create a post:
```python
from plemmy.responses import PostResponse

# create post, parse JSON
api_response = srv.create_post(community.id, "Test post please ignore", "Body text")
response = PostResponse(api_response)

# post info
post = response.post_view.post
print(post.creator_id)
print(post.community_id)
print(post.name)
print(post.body)
```

Full documentation is on its way, but in the meantime check out our source code and some [examples](https://github.com/Fedihosting-Foundation/plemmy/tree/main/examples).

## Reporting issues, making contributions, etc. ##

Don't hesitate to report a bug or unexpected results! Want to contribute? Make a pull request. Contact [@tjkessler](https://github.com/tjkessler) with any questions.