Cassiopeia changes11/3/2022 ![]() ![]() Prevent infinite instances: Weird things will happen if you don't import correctly cassiopeia in your Django project (happens to Flask too), now you add to INSTALLED_APPS and import it from there, no more infinite intances crashing around.Īdapted settings syntax: Keep all settings in one place, the standard place -> settings.py, with adapted syntax that fits into the Django trend.Ĭurrently Cassiopeia is 98% thread safe with some exception on the patch number files that complains about a generator in extreme cases. Same performance (New in 2.0): You still get the same fast performance as cassiopeia's Cache, here you have its fine tuned version called Omnistone and safe to use (I am looking at you memory hunter). Integrated Featuresīypass the limitation of cassiopeia caching: No more worries about memory issues! Now you have the ability to use Django's cache framework for your caching, compatible with any cache backends that Django supports (Filebased, Database, Redis, MemCached, LocalMem, more). Reminder: it can be used anywhere as long as you do the correct import: from django_cassiopeia import cassiopeia # You can add "as cass" for shorter module name ^. environ # api key in env var CASSIOPEIA_DEFAULT_REGION = "NA" # default region CASSIOPEIA_PIPELINE = ) In your settings.py: INSTALLED_APPS = CASSIOPEIA_RIOT_API_KEY = os. #Cassiopeia changes installThis makes easy to get ahead of fixes of the main library without the need of me doing pararel updates, when cassiopeia updates a new version, you can get going by only upgrading cassiopeia with pip install cassiopeia -upgrade. Starting version 2.1, django-cassiopeia will no longer contain cassiopeia in its modules, instead it will wrap you original cassiopeia framework with the necessary changes in place. Installation and Requirements Django >= 3.0.1 Python >= 3.6 pip install django - cassiopeia v2.1 ![]() Documentationĭjango Cassiopeia has detailed documentation.įor functions and methods of Cassiopeia is found in this documentation. It's been designed with usability in mind - making sure all the bookkeeping is done right so you can focus on getting the data you need and building your application. ![]() For instance it is also the sister library to Orianna (Java). Django Cassiopeia has finished beta test, Django Cassiopeia 2 has backward incompatible changes, please check them out here.Īn Integration of Cassiopeia to the Django Framework (Compatible with DRF) with enhanced new features.Ĭassiopeia is a Python adaptation of the Riot Games League of Legends API ( ). ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |