Skip to main content

Ampalibe is a lightweight Python framework for building Facebook Messenger bots faster.

Project description

Ampalibe

Video Tutorials · Documentation · Report Bug

Ampalibe is a lightweight Python framework for building Facebook Messenger bots faster. It provides a new concept, it manages webhooks, processes data sent by Facebook and provides API Messenger with advanced functions such as payload management, item length, and more.

Installation

pip install ampalibe

OR you can install dev version

pip install https://github.com/iTeam-S/Ampalibe/archive/refs/heads/main.zip

if you use mysql as database, you have to install mysql-connector or mysql-connector-python with ampalibe

pip install ampalibe[mysql-connector]

if you use postgresql as database, you have to install psycopg2 with ampalibe

pip install ampalibe[psycopg2]

Usage

command-line ampalibe is ampalibe.bat for Windows

ampalibe create myproject

OR

$ cd myproject
$ ampalibe init

to run project, just use

ampalibe run

for dev mode with Hot Reload

ampalibe run --dev

Register for an Access Token

You will need to configure a Facebook application, a Facebook page, get the access to the page, link the application to the page, configure a webhook for your app before you can really start using Ampalibe.

This app setup guide should help

OR

See this video on Youtube

Documentation

Other resource

Deployment

Using container

Go to our dir project and run

$ docker run -d -v "${PWD}:/usr/src/app" -p 4555:4555 ghcr.io/iteam-s/ampalibe

Using heroku container

  • Go to heroku docs for docker deploys

  • Change your Dockerfile like this

FROM ghcr.io/iteam-s/ampalibe

ADD . /usr/src/app/

# RUN pip install --no-cache-dir -r requirements.txt

CMD ampalibe -p $PORT run
  • Customize your Dockerfile if necessary

Using heroku python

About

Ampalibe is a word of Malagasy origin designating the fruit jackfruit.

We have made a promise to

  • keep it light
  • make it easy to use
  • do it quickly to develop

Contributors

Image des contributeurs GitHub

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

ampalibe-1.1.3.tar.gz (20.4 kB view details)

Uploaded Source

Built Distribution

ampalibe-1.1.3-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

Details for the file ampalibe-1.1.3.tar.gz.

File metadata

  • Download URL: ampalibe-1.1.3.tar.gz
  • Upload date:
  • Size: 20.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.13

File hashes

Hashes for ampalibe-1.1.3.tar.gz
Algorithm Hash digest
SHA256 b55dba2b125bd4cd35e41b6fa63a0a51b764d0283e0eefe709bf3fe564900484
MD5 389b3a6604396a9d2afe78965775ac38
BLAKE2b-256 6fd791d9c917a782bf13ce22c786f3f2da39df8618d926fc879e2299bcea069e

See more details on using hashes here.

Provenance

File details

Details for the file ampalibe-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: ampalibe-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 20.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.13

File hashes

Hashes for ampalibe-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0dde45f6b7f8f2ee88b79d9a1364ae598e0655c0988db62ec1224d7fb4bd9c52
MD5 4a4485f015b8211f9302f179789e0dcc
BLAKE2b-256 98e21fc8038c1ac08f2fdf6a6ccf7a39a22bd4939b76014aa2bf6338a7c94052

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page