Saravanan666/pypi-org huggingface dataset:
Package: awesome-django-timezones
Easily set a localized timezone for usersDocumentationThe full documentation is athttps://awesome-django-timezones.readthedocs.io.QuickstartInstall Awesome Django Timezones:pip install awesome-django-timezonesAdd it to yourINSTALLED_APPS:INSTALLED_APPS=(...'awesome_django_timezones',...)Add DjangoTimezonesMiddleware to yourMIDDLEWARE_CLASSES:MIDDLEWARE_CLASSES=(...'awesome_django_timezones.middleware.TimezonesMiddleware',...)Addjs/awesome_django_timezones.jsto your base template<scriptsrc="{% static 'awesome_django_timezones/js/awesome_django_timezones.js' %}"></script>(Optional) If you need Django to be timezone aware on the Admin page, you will have to extend the
Adminbase.htmlinyour_project/templates/admin/base.html{%extends'admin/base.html'%}{%loadstatic%}{%blockfooter%}{{block.super}}<scriptsrc="{% static 'js/awesome_django_timezones.js' %}"></script>{%endblock%}FeaturesProvides an accurate method of determining the an end user’s timezone and activating that timezone in Django.Uses client side, JavaScript detection for the most accurate method of determining a timezone.Uses the widely supported, nativeIntl JavaScript
libraryto detect the client’s timezone. This library is not currently implemented for IE11.Falls back to server side timezone detection via an IP API.Fall back is provided for IE11 clients or clients with JavaScript disabled.Relies on third-party IP API lookups byhttps://ipapi.co. Consider purchasing a plan if you need more than 30k IP lookups/month or
if you need support (no affiliation).Set a fallback timezone to always use in case a timezone can’t be found withAWESOME_TZ_DEFAULT_TZin yoursettings.py. (Be sure to use the “TZ database name” column fromhttps://en.wikipedia.org/wiki/List_of_tz_database_time_zones)Running TestsDoes the code actually work?source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install -r requirements_test.txt
(myenv) $ toxCreditsTools used in rendering this package:Cookiecuttercookiecutter-djangopackageipapiHistory0.1.0 (2019-02-04)First release on PyPI.
Package: awesome-exception
Awesome ExceptionA library designed to handle http exception elegantly with customization support like i18n support.Featurecommon http exception class that support custom message and status codeUsageInstallationpip install awesome-exceptionExceptionsUsing fast API as example, we may simply throw exception with a proper status code, and an optional error code. We may
also supply arbitrary key value in args dict, to help frontend render better error message.fromawesome_exception.exceptionsimportNotFoundfromfastapiimportAPIRouterrouter=APIRouter()@router.get('/transactions')defget(id:str):try:obj=find_by_id(id)exceptExceptionase:raiseNotFound(message='transaction not found'%id,error_code='A0001',args={id:id})...And we may implement a common error handler to convert all these errors to proper response schemafromawesome_exception.exceptionsimportHTTPExceptionfromfastapi.requestsimportRequestfromfastapi.responsesimportJSONResponse@app.exception_handler(HTTPException)asyncdefhttp_exception_handler(request:Request,exc:HTTPException):returnJSONResponse(status_code=exc.status_code,content={'detail':exc.detail,'error_code':exc.error_code,})This would result in a response with status code 404, and body{"status_code":404,"detail":{"message":"transaction not found","id":"some_id"},"error_code":"A0001"}With this response, frontend can decide to simply render detail, or map it to detailed message. If error_code "A0001"
correspond to the following i18 n entry"error.A0001":{"en-US":"transaction can not be found with supplied {id}: {message}"}we may format message accordingly witherrorMessage=formatMessage({id:`error.${error.data.error_code}`},error.data.detail);Note that error code is not supplied, is default to status code. So it is always safe to simply use error_code in
frontend to decide what to render.DevelopmentInstalling Poetrycreate your own environment for poetry, and simply run:pip install poetryalternatively, you can refer topoetry's official pageto be able to usepoedirectly,pip install poethepoetContributingproject setup:poetry installcreate your own branch to start developing new feature.before creating pr, make sure you passpoe lintandpoe test.what happened insidepoe testis that a minio server is setup for you temporarily, and teardown and unit
test is finished.notice thatpoe testwould also work if you already have a minio up and running. You need the following env
variable:MINIO_ACCESS_KEY,MINIO_SECRET_KEY,MINIO_ADDRESSupon runningpoe test.for a list of available poe command,poeafter you submit a pr, you should check if pipeline is successful.Releasingpoetry version [new_version]git commit -m"Bump version"git push origin developcreate new releaseon github.Create release off develop branch, auto generate notes, and review release note.Publish release
Package: awesome-finder
Awesome FinderSearch the awesome curated list without browserWhat does mean awesome? The awesome series provide a curated list of awesome frameworks, libraries, software and resources for a specific topic. An example isawesome-pythonA TUI based finder for searching the awesome resources on awesome series such asawesome-python,awesome-goand so on.With it, you can browse the awesome libraries, resources on your terminal without browser.InstallationIt supportsPython 3+only.pipinstallawesome-finder# or pip3 install awesome-finderUsage#Findawesomethingsfromawesome-<topic>awesome-hub <topic>#Findawesomethingsfromlatestawesome-<topic>(notusecache)awesome-hub <topic> -f (--force)#Findawesomethingswithinitialqueryawesome-hub <topic> -q (--query) 'query string you want to search'#Showhelpmessages(canseesupportedawesometopics)awesome-hub -h (--help)There are some helpful key bindings:KeyDescriptionKey up (↑)Scroll upKey down  (↓)Scroll downKey left (←)Page upKey right (→)Page downEnter (↵)Open the selected awesome link on default browserEscClose the awesome finderSupported awesome topicsUpdated: 2018-03-04These will be updated continuouslyawesomeawesome-androidawesome-elixirawesome-erlangawesome-goawesome-iosawesome-javaawesome-javascriptawesome-nodejsawesome-phpawesome-pythonawesome-rubyawesome-rustawesome-scalaawesome-swiftawesome-vueContributingDetails onCONTRIBUTINGChangelogDetails onCHANGELOGTODOQuery highlightingSupports paging with Key left (←) and Key right (→)Smart parsing with hierachical structureSupports all awesome seriesSupports initial query (example:awesome python -q 'django oauth')Add options to open the Issue and Pull Request page of a specific awesome seriesLicense
Package: awesome-git-mosaic
awesome-git-mosaicA simple tool to make cool tricks with your Github activity mosaicInstallJust create a new repo on Github and install like any python libpip install awesome-git-mosaicorpoetry add awesome-git-mosaicUsageIt comes ready to be used out of the box with dafault settings or you can use its full functionalities by importing on codeWarningIt is recommended to create an empty repo for this purpose only. A lot of files will be created and so a lot of commits (which can be problematic to revert in a working repo). SeeReseting.DefaultAfter installation, you can use with default parameter by runningpython -m awesome_git_mosaic <your_text_here[A-Za-z0-9# ]+>NoteWith default params, each character have 5 squares wide plus 1 square of space between letters. So, only 8 characters will appear at time.Importing on console (or anywhere)fromawesome_git_mosaic.usecases.write_mosaicimportWriteMosaicwm=WriteMosaic()wm.write('numenor',50,2,True,False,True)Method signature:defwrite(self,message:str,# what you want to writestrength:int=15,# how many commits each pixel will have (more details in "How it works" section)multiply:int=1,# number of times to write the message consecutive like "MSGMSGMSG" (more details in "How it works" section)with_spaces:bool=True,# put or not spaces between charactersbackground:bool=False,# put background or notinverted:bool=False,# invert pixels or not):ExamplesDefaultInvertedStrengh = 5No spacesMultiple timesHow it worksGit allow us toset the date and timeof a commit, so, we can do it in retrspective or even in the future.By understanding how Github activity mosaic works, we can figure out wich time correlates to each pixel and translate a matrix of pixels in a list of datetimes. So, for each datetime a commit is made modifying or create an unique file.Days with more contribution have a lighter green and the light intensity will be dynamic according to the day you have more contributions in the period of time showing in the mosaic. So, to have a good highlighted message, it is recommended to setstrengthat least as two times the number of max contributions you have in the period.Each week the leftmost column will disappear. So to make the mosaic looks like a veeeery slow scrolling text, you can setmultiplyto more than1.WarningCommits and pushes are made automatically by the code. It is HIGHLY RECOMMENDED to create a repo specially for this purpose.ResetingYou can easily remove everything by deleting the repo where you made the commits.AboutAfter watchthis videofrom@akshaymarch7i´ve just had an ideia to play around with the pixels instead of just make it random.So, why not draw or write something? A few days later and i had a working prototype. Now it is a lib for anyone who want to have fun or contribute with more ideas.If you enjoyed enough, considerContributing
Package: awesome-messages
Awesome Messages Generic PubSubGeneric Message Listeners and Publishers.This module provides interfaces to work with any kind of message
publisher and consumer.This module also provides currently the following implementations:RabbitMQ Message ListenerRabbbitMQ Message PublisherCurrently only rabbitmq support is implemented but in a future other
infrastructure pieces could be supported too.The infrastructure of this package rely on abstractions so it is highly
decoupled. Apps code should depend only inMessageHandler,MessagePublisherandMessageListener.Installationpip install awesome_messagesCreate a MessageHandler to handle the received messagesfromawesome_messages.domain.handlerimportMessageHandlerclassPrintRequestHandler(MessageHandler):defon_msg(self,message:dict):print(message)Configure a listenerI'm using here the RabbitMQ listener implementation.You can write your custom listener usingMessageListenerinterface.
if you write your own listener please make a pull request so that the
rest of the community can use it too.# Import infrastructure specific listenerfromawesome_messages.infra.rabbitmq.listenerimportRabbitMessageListenerconnection_string="amqps://user:password@host/.."queue="my_awesome_queue"# Declare our listener with our previously defined MessageHandlermsg_listener=RabbitMessageListener(connection_string,queue,PrintRequestHandler())# Currently RabbitMQ listener is blockingtry:msg_listener.start_listening()finally:msg_listener.stop_listening()Configure a publisherI'm using here the RabbitMQ publisher implementation.You can write your custom publisher usingMessagePublisherinterface.
if you write your own publisher please make a pull request so that the
rest of the community can use it too.# Import infrastructure specific publisherfromawesome_messages.infra.rabbitmq.publisherimportRabbitMessagePublishermsg_publisher=RabbitMessagePublisher(connection_string,queue)try:# Publish a messagemsg_publisher.publish({"my msg":"my msg data"})finally:msg_publisher.stop_publishing()Author notesThe way this module is structured allows anyone to easily replace one
implementation by another without changing the rest of the application
code.This module invites the developer to use dependency injection to build
their app. Relying on defined interfaces rather than implementations
allows changes in dependencies be possible without changing the code.Best practices in big projectsYou can use a dependency injection library for configure your message
handler, listener and publisher like the following one.https://python-dependency-injector.ets-labs.org/Support my workIf this module has been useful to you, it would mean a lot to me if you could support my work.
This way you help to keep this and other projects alive.https://ko-fi.com/elchicodepythonContributorsSamuel López Saura -Linkedin Contact
Package: awesome-object-store
Awesome Object StoreA library that extends minio python client to perform more complex task like read/write pandas DataFrame, json file, ...etcFeaturelist_buckets: list all buckets.list_objects: list object under a prefix.put_as_json: put a dict as json file on s3.exists: check if an object exist on s3.remove_dir: remove a directory on s3.upload_df: Upload df as csv to s3.get_json: Get as dict from a json file on s3.get_df: Get a dataframe from a csv object on s3.remove_objects: Remove objects.download: Downloads data of an object to file.Developmentrun unit testgetting service account credential:visit google cloud consolego to project 8ndpoint-datalake-dev -> Security -> Secret Manager -> awesome-object-store-unit-testaction -> view secret valuestore the value in tests/service-account.jsonrun ./run_test.sh
Package: awesome-package
awesome-packageis a demonstration package for a talk on making Python
packages.This is an exampleREADME.rstshowing off some ReStructuredText syntax.Simple font styling:italics,bold,InstallingInstall viapip:$ pip install awesome-packageThere is no step 2.UsingA simple example:from awesome import foo

# frobnicate the quux:
foo.bar("baz")More informationThe full documentation for this package can be found onReadTheDocsThe ReStructuredText documentation containsa good reference.
Package: awesome-panel
✨ awesome-panelWe want toshow how awesomePanelis and push the framework forward.We provideTheawesome-panel.orgweb site including galleries ofAwesome Panel ApplicationsandAwesome Community ResourcesYoutube Videos.Blog PostsCommunication on social media:Twitter|LinkedInPanel Extensions and Example Repositories🚀 Get started in under a minuteInstallawesome-panelincluding theexamplesdependencies.pipinstallawesome-panel[examples]Explore the sample apps by runningpnhelloawesome-paneland openinghttp://localhost:5007/galleryin your browser.You can find the sample apps in theexamples/awesome-panel/awesome-panelfolder.😅 Install geopandas on windowsOn Windows you unfortunately have to install thegeopandaspackage your self as described inusing-geopandas-windows. This is only required to be able to explore a small subset of the applications.📒 Explore the examples onlineClick one of the buttons⭐ SupportPlease supportPanelandawesome-panelby giving the projects a star on Github:holoviz/panel.awesome-panel/awesome-panel.Thanks❤️ ContributeIf you are looking to contribute to this project you can find ideas in theissue tracker. To get started check out theDEVELOPER_GUIDE.I would love to support and receive your contributions. Thanks..
Package: awesome-panel-cli
✨ Awesome Panel CLIWe want tomake it super simple to develop high-qualityPaneldata apps.We providean opinionated command line interface (CLI)pnanda set ofbest practicetemplatesThis project draws inspiration from other CLI tools likeAngular CLI,Django management commands,django-simple-deployandReact Create App.⚠️ THIS PROJECT IS IN AN ALPHA STATE AND WILL CHANGE. USE IT AT YOUR OWN RISK.🚀 Get started in under a minuteInstall the CLI.pipinstallawesome-panel-cli[all]Serve the examplespnhelloYou can now find the examples in the folderexamples/awesome-panel/awesome-panel-cli.📒 Get started on BinderClick the button❓ Check out the CLI commandsTry running the commands belowpn--helppncreate--helppncreateapp--helpYou can find the full list of commands in thedocs.mdfile.🎁 Create an appRunpncreateappstreaming_indicatorsServepanelservestreaming_indicators.py🔥 Install the currentmasterbranchIf you want to try out or test the newest features you can install the currentmasterbranch viapipinstallpip-U
pipinstallgit+https://github.com/awesome-panel/awesome-panel-cli.git⭐ SupportPlease supportPanelandawesome-panelby giving the projects a star on Github:holoviz/panel.awesome-panel/awesome-panel.Thanks❤️ ContributeIf you are looking to contribute to this project you can find ideas in theissue tracker. To get started check out theDEVELOPER_GUIDE.I would love to support and receive your contributions. Thanks..🖥️ Monitor
Package: awesome-panel-extensions
✨ awesome-panel-extensions⚠️ The extensions in this package are currently being carved out and split into seperate
extensions. Please check out theawesome-panel repositoriesto see if the
extension you need is available there.We want toMake surePanelhas lots of available extensionsWe provideTheawesome-panel-extensionsPython package containing extra extensions for Panel.You can install and use the package as simple as.pipinstallawesome-panel-extensions🚀 Get started in under a minuteInstallawesome-panel-extensionsincluding theexamplesdependencies.pipinstallawesome-panel-extensions[examples]Explore the sample appspnhelloawesome-panel-extensionsYou can now find thereferenceandgallerynotebooks in theexamples/awesome-panel/awesome-panel-extensionsfolder. Check them out by runningjupyter lab.📒 Explore the examples onlineClick one of the buttons⭐ SupportPlease supportPanelandawesome-panelby giving the projects a star on Github:holoviz/panel.awesome-panel/awesome-panel.Thanks❤️ ContributeIf you are looking to contribute to this project you can find ideas in theissue tracker. To get started check out theDEVELOPER_GUIDE.I would love to support and receive your contributions. Thanks..Monitor
Package: awesome-ryver
awesome-ryverThis package mostly started as a joke, and from the desire of adding some extra and funny formatting features to Ryver, without requiring administrator rights or any access to the server.
This is done by either installingAwesomeRyver.user.jswithTampermonkeyfor the web version, or by script injection with this Python package for the desktop version.In your browserThis is the simplest and quickest method:InstallTampermonkeyin your browserDownloadAwesomeRyver.user.jsInstall it via TampermonkeyGo to ryverOn your desktop: with prebuilt binaryWith near to zero install:Download the lastestAwesomeRyver-arch-version.ziprelease for your systemExtract the archiveMove both theAwesomeRyverbinary andAwesomeRyver.user.jsscript next to yourRyverbinaryRunAwesomeRyverOn your desktop: with pipIf you have Python installed on your system, you may prefer to install this Python package withpip:>pipinstallawesome-ryverMake sure to download and moveAwesomeRyver.user.jsin the folder from where you will be runningAwesomeRyver, then you can launch it with:>awesome-ryver-eC:\Path\To\Ryver.exeOr:>python-mawesome_ryver-eC:\Path\To\Ryver.exeEither way, you can show the help with:>awesome-ryver-h
>python-mawesome_ryver-h

usage:awesome-ryver[-h][-tTIMEOUT][-eEXE][-d][-pPLUGIN]Help

optionalarguments:-h,--helpshowthishelpmessageandexit-tTIMEOUT,--timeoutTIMEOUTTimeoutwhentryingtolaunchRyver-eEXE,--exeEXEPathtoRyverexecutable-d,--devtoolsEnabledevtoolsaccessfromRyver-pPLUGIN,--pluginPLUGINPathtothepluginscriptCommandsThose commands work when they are detected in received messages:CommandDescriptionPreview[color=FF0000]colored text[/color]Generate a colored text with an hexadecimal color[red]red text[/red]Generate a colored text[green]green text[/green]Generate a colored text[blue]blue text[/blue]Generate a colored text[rainbow]rainbow text[/rainbow]Generate a rainbow text[wave]wavy text[/wave]Generate a wavy text[html]<b>bold text</b>[/html]Your message is replaced by the HTML code[python/]Print a magnificient Python in ASCII artThose commands only work when clicking on the greenSendbutton:CommandDescriptionPreview[version/]Print AwesomeRyver version[spoil]some secret[/spoil]Hide the text until clicked[rand10/]Choose a random float between [0.0, 10.0[[random10/]Choose a random int between [0, 10[[d10/]Choose a random int between [1, 10]More to come !How to build the AwesomeRyver binaryFirst clone this repository:>gitclonehttps://github.com/Nauja/awesome-ryver.git
>cdawesome-ryverInstallpyinstaller:>python-mpipinstallpyinstallerRunpyinstaller:>pyinstaller--onefileawesome_ryver/main.pyThis generates adistfolder containing amainbinary.Simply rename the binary toAwesomeRyverand put it next toAwesomeRyver.user.js.LicenseThis content is released under theMITLicense.
Package: awesome-streamlit
Awesome Streamlit Package.This package supports theAwesome Streamlit Projectand provides features that are not yet and maybe never will be provided by theStreamlit package.This package is currentlyhighly experimentalandTheapi might changedramatically and often!If the Streamlit package starts providing the functionality, then it should be removed from this package.If you find a version that works for you, then pleasepin the version number!An example of pinning the version number isawesome-streamlit==20191014.2.You can install it usingpipinstallawesome-streamlitYou can use it usingimportawesome_streamlitasastast.experiments.write_hello_world()or alternatively if you just need the experimental featuresfromawesome_streamlitimportexperimentsassteste.write_hello_world()and the result should look likeAwesome Streamlit Gallery.For more information please visit theAwesome Streamlit Projecton GitHub.
Package: awesome-streamlit-master
Awesome Streamlit Package [Current Master Branch].This package supports theAwesome Streamlit Projectand provides features that are not yet and maybe never will be provided by theStreamlit package.This package is currentlyhighly experimentalandTheapi might changedramatically and often!If the Streamlit package starts providing the functionality, then it should be removed from this package.If you find a version that works for you, then pleasepin the version number!An example of pinning the version number isawesome-streamlit==20191014.2.You can install it usingpipinstallawesome-streamlit-masterYou can use it usingimportawesome_streamlitasastast.experiments.write_hello_world()or alternatively if you just need the experimental featuresfromawesome_streamlitimportexperimentsassteste.write_hello_world()and the result should look likeAwesome Streamlit Gallery.For more information please visit theAwesome Streamlit Projecton GitHub.
Package: awesto-djangocms-carousel
A carousel plugin for djangoCMSFree software: MIT licenseThis plugin was originally forked fromhttps://github.com/MagicSolutions/cmsplugin-carousel, but most of the
functionality has been replaced. This version is not compatible with the plugin
from Magic Solutions.Installationpip install awesto-djangocms-carouselAddcmsplugin_carouselto yourINSTALLED_APPS.UsageAdd aCarouselplugin to one of your placeholders. You can then add abritrary
child plugins which will be displayed as carousel items.ACarousel Captionplugin is also provided.A common scenario is:CarouselLinkImageCaptionTextDocumentationhttps://djangocms-carousel.readthedocs.io/DevelopmentTo run the all tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append toxChangelog0.1.0 (2017-02-22)First release on PyPI.
Package: awg
AWGAutomatic web generatorweb example:https://kianxineki.github.ioInstall:pipinstallawgif a settings.json automatically generates the web. If no settings.json
generates several files by defaultFirst use:awgvimsettings.json# configureUse:awg0.1.1 (11-11-2015) fix extension0.1.0 (11-11-2015) added tests0.0.3-0.0.10 (11-11-2015) fix pip install0.0.2 (11-11-2015) change run command to awg0.0.1 (11-11-2015) Initial release