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.
Show your support by giving a star 🌟 if this project helped you!
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
- [Youtube] Create a Facebook Bot Messenger with AMPALIBE Framework (EN)
- [Youtube] Tutoriel Framework Ampalibe (FR)
- [Youtube] Ampalibe Framework Episode (Teny Vary Masaka)
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
-
Go to heroku docs for Getting Started on Heroku with Python
-
Define your Procfile like this
web: ampalibe -p $PORT run
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
Community
📌 Extension
-
Ampalibe extension by Raja Rakotonirina
A VScode extension that allows the user to write a snippet of code using easy to remember prefixes
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
Built Distribution
File details
Details for the file ampalibe-1.1.5.tar.gz
.
File metadata
- Download URL: ampalibe-1.1.5.tar.gz
- Upload date:
- Size: 21.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b48ed78c66231db87d9afc2d0a98606252f5e9b893363d1fba04bfac65de9c0 |
|
MD5 | b5d5322dc5b19ea3130c33f3a6abcca7 |
|
BLAKE2b-256 | 51c9e7065247d01e9178f7b5f4b661fcb00c463da37bbe92a22e03b55041ce56 |
Provenance
File details
Details for the file ampalibe-1.1.5-py3-none-any.whl
.
File metadata
- Download URL: ampalibe-1.1.5-py3-none-any.whl
- Upload date:
- Size: 20.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f23e2b4068b23e248c8ac375c23b66bdb0cd82d0f79fe747e6392eb9ed0554c |
|
MD5 | 92f6271a9135f94316310ae7b6b692f9 |
|
BLAKE2b-256 | 908026f4d59dc043ca777aefe81728f44e72cdd133e5bfdcfea594423a143ce6 |