Alvaro is a high-level, event-based networking module built to save you time on your projects without compromising on reliability, security or functionality. It offers SSL support, user management and many more features to help you on your projects.
To learn more, check out the wiki!
Never spend hours or even days writing complicated networking software just to get two devices to communicate again. All the difficult tasks of flow control, encryption and endless bugs all taken care of for you! This project provides you the ability to create a fully functional server in just a few lines of code. So you can dive right into your project.
After all, time is our most valuable resource.
# clone alvaro
git clone https://github.com/edgecase963/Alvaro
cd Alvaro
# Install requirements
# Will still work without this step, but slower
pip3 install -r requirements.txt
# install Alvaro
sudo python3 setup.py install
Alternatively, you can also use the pip command to install Alvaro:
pip3 install alvaro
As of the creation of this README, installing the requirements.txt
via pip is not necessary.
The requirements file only contains uvloop
which helps speed up Alvaro, but does not prevent it from working.
Alvaro is designed to work out of the box with no extra installations or dependencies.
This project is completely open source and anyone is free to use it.
Alvaro comes with some built-in features to help make data transfer not just more reliable, but easier to manage and implement into your project. One of these is the ability to monitor an ongoing download.
Below is a demonstration of how to set up a minimalistic server using Alvaro:
import alvaro, asyncio
server = alvaro.Host("127.0.0.1", port=8888)
asyncio.run( server.start() )
Alvaro uses asyncio to host/run/manage its servers. In order to start a server, it must be started with the asyncio.run
function.
If you're already using asynchronous software and want to run Alvaro in your program's main loop, simply use await
import alvaro, asyncio
server = alvaro.Host("127.0.0.1", port=8888)
async def start_server():
await server.start()