Skip to main content

The scheduler that nobody wants but every application needs.

Project description

Asyncz

Asyncz

🚀 The scheduler that simply works. 🚀

Test Suite Package version Supported Python versions


Documentation: https://asyncz.dymmond.com 📚

Source Code: https://github.com/dymmond/asyncz


Asyncz is a scheduler for any ASGI application that needs to have those complicated scheduled operations with the best of what pydantic can offer.

Motivation

Nowadays using async frameworks with python is somewhat common and becoming even more mainstream. A lot of applications usually need a complex stack of technologies to fullfil their needs and directly or indirectly, a scheduler.

There are great frameworks out there that do the task extremely well, the best example is APScheduler, which is where Asyncz came from.

To be even more honest, Asyncz is a revamp of APScheduler. Without the APScheduler there is no Asyncz, so much that even the APScheduler tests are used within asyncz. That is how great APScheduler is!

So what was the reason why recreating another similar version of APScheduler? Well, it is not entirely the same thing. Asyncz was designed to work only with ASGI and AsyncIO as well as integrating pydantic and bring the modern python into the table.

APScheduler is widely used by millions of python developers and Asyncz does not aim to replace it, instead is a more focused and optimised solution for async and ASGI frameworks out there.

See the vendors for more details.

Logging

We all struggle with the logging and the configurations and with that in mind Asyncz comes with natice support for loguru.

This will make the logging a lot easier to understand and clear to read.

Async and ASGI

What does this mean? Well, Asyncz does not need to run inside any specific framework, actually you can use it completely indepent from any framework as well as inside ASGI frameworks such as Esmerald, FastAPI, Starlette, Starlite, Quart... You can pick one and go for it.

Asyncz comes with special support to Esmerald for the simple reason that the author is the same but it can be added more support. If you are interested in adding support to your favourite frameworks then see the contributing section.

Concepts

Like APScheduler, Asyncz also brings four kinds of components:

Requirements

  • Python 3.7+

Asyncz wouldn't be possible without two giants:

Installation

$ pip install asyncz

The right decisions

How do you know if you are choosing the right scheduler, triggers, stores and executors?

Well, Asyncz is intentionally designed for specific systems and already helps you out with some of those questions.

Sometimes having a lot of options makes the decision making very hard and Asyncz is intentionally designed and driven to simplify and for specific use cases but is not limited to those. In every section you have the option of uilding your own stores, executors, triggers and schedulers.

Configuring the scheduler

Due its simplificy, Asyncz provides some ways of configuring the scheduler for you.

First way:

from asyncz.schedulers.asyncio import AsyncIOScheduler

scheduler = AsyncIOScheduler()

Second way:

from asyncz.schedulers import AsyncIOScheduler

scheduler = AsyncIOScheduler()

Initialize the rest of the application after the scheduler initialisation. More details can be found with more thorough explanations.

This is in simple terms and in a nutshell how to start with Asyncz quickly. For more information, details and examples how to leverage Asyncz simply navigate through the documentation and have fun 😁🎉.

ASGI support

Asyncz currently supports the Esmerald framework and brings some batteries that are currently used by the framework and leveraging Asyncz.

If you wish to have support to any other framework such as FastAPI, Starlite, Starlette or literally any other, check the contributing section and see how you can do it.

Sponsors

Currently there are no sponsors of Asyncz but you can financially help and support the author though GitHub sponsors and become a Special one or a Legend.

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

asyncz-0.8.1.tar.gz (38.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

asyncz-0.8.1-py3-none-any.whl (55.1 kB view details)

Uploaded Python 3

File details

Details for the file asyncz-0.8.1.tar.gz.

File metadata

  • Download URL: asyncz-0.8.1.tar.gz
  • Upload date:
  • Size: 38.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.8.18

File hashes

Hashes for asyncz-0.8.1.tar.gz
Algorithm Hash digest
SHA256 5101b30485be768743422cc2951e4e15ad53f3b45b33049b01779e934f0ef808
MD5 1584fc74d2d63021521b831891f61381
BLAKE2b-256 520efeb829654a04c93382e67d99f342daf4a4233ba4c8b070304246b2a1880a

See more details on using hashes here.

File details

Details for the file asyncz-0.8.1-py3-none-any.whl.

File metadata

  • Download URL: asyncz-0.8.1-py3-none-any.whl
  • Upload date:
  • Size: 55.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.8.18

File hashes

Hashes for asyncz-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 688502c91df627fa2827f1fe179beb58c99b75e5370b0cd3fabde717b001f2d4
MD5 1991a41ade608d7115155530cb64f6c5
BLAKE2b-256 1b8c1f35609ec0095ff458bfa5c6f2018fa043676baee1928591acf2345ebb4a

See more details on using hashes here.

Supported by

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