semvec/pypi-packages huggingface dataset:
fbapy 1.0.2
Unofficial Facebook Chat API for Python
Keywords: facebook,messenger,chat,api,python,unofficial

# fbapy
Unofficial Facebook Chat API for Python

## Table of Contents

- [Introduction](#introduction)
- [Installation](#installation)
  - [libmagic issue](#libmagic-issue)
- [Example Usage](#example-usage)
    - [Login](#login)
    - [Send Message (HTTP Method)](#send-message-http-method)
- [Testing](#testing)
- [Documentation](#documentation)
- [License](#license)


## Introduction

fbapy is a Python version of the Node.js package [@xaviabot/fca-unofficial](https://www.npmjs.com/package/@xaviabot/fca-unofficial). It is based on the forked deprecated version [fca-unoffical](https://www.npmjs.com/package/fca-unofficial), which itself is a fork of the deprecated version [facebook-chat-api](https://www.npmjs.com/package/facebook-chat-api).


fbapy acknowledges the contributions of the original authors of [facebook-chat-api](https://www.npmjs.com/package/facebook-chat-api), recognizes the efforts put into [fca-unoffical](https://www.npmjs.com/package/fca-unofficial), and explains that the Python version is based on the for [@xaviabot/fca-unofficial](https://www.npmjs.com/package/@xaviabot/fca-unofficial).


## Installation

fbapy is available on PyPI:

```bash
pip install fbapy
```

### libmagic issue

If you encounter an error like this:

`ImportError: failed to find libmagic.  Check your installation`

You need to install libmagic.

For Termux:

```bash
pkg install sox
```

For [replit.com](https://replit.com/), open `replit.nix` and add magic to the list of dependencies, for example:

```nix
{ pkgs }: {
  deps = [
    pkgs.python311Packages.magic
  ];
}
```

For Other Platforms, try installing `python-magic-bin`:

```bash
pip install python-magic-bin==0.4.14
```


## Example Usage

### Login

Using base64 encoded appstate from [c3c-fbstate](https://github.com/c3cbot/c3c-fbstate)

```python
from fbapy import *

client = Client()

api = client.login(
    appstate="YOUR_BASE64_ENCODED_APP_STATE",
    options={
        "user_agent": "YOUR_USER_AGENT",
    },
)
```

### Send Message (HTTP Method)

```python
api.http.send_message(
    msg="Hello World!",
    thread_id="0000000000000000",
)
```

## Testing

You can run `test.py` to test the package. Install packages from requirements.txt + python-dotenv first.

```bash
pip install -r requirements.txt
pip install python-dotenv
```

Then create a `.env` file in the root directory of the project and add the following:

```bash
APPSTATE="YOUR_BASE64_ENCODED_APP_STATE"
```

Then run `test.py`:

```bash
python test.py
```

Open a chat with the appstate account, try sending `?ping1`/`?ping2`, and you should get a reply `pong`

![Alt text](https://i.ibb.co/Mg3WZ3w/image-2024-01-18-221941325.png)

## Documentation

See [DOCS.md](DOCS.md) for more information.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
ia-sdk 0.4.22
SDK for Intelligent Artifact's GAIuS agents.

# GAIuS™ Python SDK
A Python SDK for Intelligent Artifacts' GAIuS™ agents.

## What is GAIuS™?
GAIuS™ is an Artificial General Intelligence framework for rapidly building machine intelligence solutions for any problem domain.

## What is IA's Python SDK?
This package, ia-sdk-python, is a software development kit for interacting with IA's GAIuS agents from Python.  It provides useful tools and services.

## Install
`pip install ia-sdk`

Provides:

    - GenomeInfo
    - AgentClient
    - PerformanceValidationTest
    - Higher Level Agent Operations
    - Utilities for interacting with the GAIuS Framework

## Documentation

Detailed documentation for the Python SDK can be found at [this site](http://intelligent-artifacts.bitbucket.io)
mrcs 0.1.4
A library to create bots for MRCS (custom msgroom server)
Requires Python: >=3.7

# MRCS bot library
Create a MRCS (custom Windows 96 msgroom server) bot using this library! This is a fork of [another library made by me](https://github.com/GEOEGII555/w96msgroom.py).
<details><summary>GitHub doesn't let you fork your own repository directly</summary>
<img alt="You can't directly fork your own library" src="https://github.com/GEOEGII555/mrcs.py/assets/57674559/63d1d5bd-b6ac-485f-b71f-31b11f4bb621" /></details>

# What is Windows 96 msgroom?
A website where you can talk with other people: [Click here](https://msgroom.windows96.net/).
# What is MRCS?
A custom server for that website. [Click here](https://github.com/nolanwhy/msgroom-custom-server)
# Installation
To install from PyPi, use this command:
```
<your python interpreter> -m pip install --upgrade mrcs
```
## Getting the latest developer version
To get the latest developer version, first clone this repository:
```
git clone https://github.com/GEOEGII555/mrcs.py mrcs
```
Then go to the newly cloned directory with `cd mrcs` and run:
```
<your python interpreter> -m pip install .
```
And it should be done.

# Documentation

The documentation is located on our [GitHub repository](https://github.com/GEOEGII555/mrcs.py). See the `documentation` folder.