Saravanan666/pypi-org huggingface dataset:
Package: allison
AllisonAllison: is a library  of Artificial IntelligenceAbout AllisonThis project implements the main machine learning and deep learning architectures in Python,
using libraries such as Numpy, Scipy and Matplotlib for the visualizations.
its objective is to show how machine learning works
inside and not be a black box for many people.RequirementsNumpyMatplotlibScipyPandasInstallclone the repositorygit clone https://github.com/Mitchell-Mirano/Allison.gitinstall a virtual environmentpython -m virtualenv envinstall the requirementspip install -r requirements.txtNow you can use AllisonExamples in Allisonfor examples review examples directory
Package: alljson
Make any type JSON-serializable.A Python module which makesjson.dumpswork with several builtin
and stdlib types. A hook for registering any custom type is also
provided.InstallingSimply installalljsonwith pip or add it to your project dependencies:pip install alljsonSupported typesAfter installing, the following types are JSON-serializable:generatorssetandfrozensetdictitem/key/value iterators and viewsdatetime.dateanddatetime.datetime(as strings in ISO format)uuid.UUIDdecimal.Decimal(serialized as string in order to preserve precision)reversedresultsIn addition to these, the following Python 3 types are supported:map,filter,rangeiteratorsenum.Enumpathlib.Pathtypes.MappingProxyTypeclasses implementingSequenceandMappingabc interfacesRegistering custom typesIn order to register a new type, usealljson.register_encoder(type, encoder_function).encoder_functionshould take object of given
type as the only parameter and return a simple JSON-serializable
Python value (such asdictorstr).For example:import arrow
import alljson

alljson.register_encoder(arrow.Arrow, arrow.Arrow.isoformat)Acknowledgementspth trick was stolen from delightfulfuture-fstringsproject
Package: all-label-converter
Label ConverterHello everyone, I'm trying to develop a solution to the problem I've had before while working on Computer vision with this repo.To train different models, there must be different types of labeling, for example coco, voc etc.Added labelling types.COCOPascal VOCCreate MLYOLO DarknetTensorflow Object Detection CSVTensorflow TFRecordInstallationUse the package managerpipto install foobar.pipinstallall_label_converterUsageimportall_label_convertercommon_objects=all_label_converter.import_dataset('{files_path}','{type_dataset_ex_coco}')all_label_converter.export_dataset(common_objects,"{target_dataset}","{target_file_path}")And you can see dataset translated according to your request.LicenseMIT
Package: allmusic
AllMusicAn unofficial scraperAllMusicreviews.InstallationpipinstallallmusicAlternatively, clone directly frommasterto run with the freshest bugs:pipinstallgit+git://github.com/fortes/allmusic.git@masterUsage>>> import allmusic
>>> review = allmusic.getAlbumReviewForAllMusicUrl('https://www.allmusic.com/album/beauty-and-the-beat-mw0000736440')
>>> print(review.album)
'Beauty and the Beat'
>>> print(review.rating)
9TestsThere is one test, you can try it:python-munittestLicenseMITContributionsPlease do
Package: allmydata-tahoe
Tahoe-LAFS is a Free and Open decentralized cloud storage system. It distributes
your data across multiple servers. Even if some of the servers fail or are taken
over by an attacker, the entire file store continues to function correctly,
preserving your privacy and security.To get started please seequickstart.rstin the docs directory.LICENCECopyright 2006-2015 The Tahoe-LAFS Software FoundationYou may use this package under the GNU General Public License, version 2 or, at
your option, any later version.  You may use this package under the Transitive
Grace Period Public Licence, version 1.0, or at your option, any later
version. (You may choose to use this package under the terms of either licence,
at your option.)  See the fileCOPYING.GPLfor the terms of the GNU General
Public License, version 2.  See the fileCOPYING.TGPPL.rstfor the terms of
the Transitive Grace Period Public Licence, version 1.0.SeeTGPPL.PDFfor why the TGPPL exists, graphically illustrated on three slides.
Package: allneo
Project description#developed by :Roni Das#Date : 30/05/2021allneo is a Python package that provides fast, flexible, and expressive toolkit this helps to work with neo4j graph database easyily and intuitively. It aims to be the fundamental high-level building block for doing practical, real world operation and data analysis in Python. Additionally, it has the broader goal of becoming the most powerful and flexible open source neo4j operation and manipulation tool available in python. We are trying to make its way toward this goal.allneo is well suited for many different kinds of neo4j operations#30/05/2021#version 12.0.0
#added function count_node for getting the nodecoun
#added exception handling for invalid hostname, username and password
Package: allocation-language
allocation_languageLanguage intented to construct the financial behaviour of (re)insurance contracts.
Complete documentation of all methods is still pending because this is still in development.Installation$ pip install allocation_languageExamplesimportrandomfromallocation_languageimportmake_contractfromallocation_language.alloc_lang_data_containersimportconverterscontract=make_contract.make_contract_from_text("alloc @'claim' $name_1 @'liable';")contract.update('name_1',50)defloss_data():foriinrange(10):yield{'id':i,'claim':random.randint(1,1e3),'liable':0,}losses=converters.dict_iter_to_event_iter(loss_data())results=contract.evaluate_stream(losses)forxinresults:print(x)The above code is an example to feed a generator of loss data into a contract.
The "alloc @'claim' $name_1 @'liable';" command translates in english to 'move as much as possible, limited to name_1's value, from the claim field into the liable field'.
This means it applies an occurence limit equal to name_1.
The contract.update method allows modification of any named variables in a contract. There can be multiple.
Package: allocine-seances
Packagehttps://pypi.org/project/allocine-seances/pip install allocine-seancesDescriptionObjectif : récupération des horaires des séances de cinéma.Les méthodesget_top_villes(),get_departements()etget_circuit()retournent un id d’emplacement.La méthodeget_cinema(id_location)retourne un id de cinéma pour un emplacement donné.La méthodeget_showtime(id_cinema, day_shift)retourne la liste des séances pour un cinema donné et un jour. le paramètre day_shift (entier positif) représente le décalage en jour par rapport à la date actuelle.ImportfromallocineAPI.allocineAPIimportallocineAPIapi=allocineAPI()Liste des méthodesListes des villesret=api.get_top_villes()# {'id': 'ville-87860', 'name': 'Aix-en-Provence'}# {'id': 'ville-96943', 'name': 'Bordeaux'}# {'id': 'ville-85268', 'name': 'Cannes'}# {'id': 'ville-110514', 'name': 'Clermont-Ferrand'}# ...Liste des départementsret=api.get_departements()# {'id': 'departement-83191', 'name': 'Ain'}# {'id': 'departement-83178', 'name': 'Aisne'}# {'id': 'departement-83111', 'name': 'Allier'}# {'id': 'departement-83185', 'name': 'Alpes de Haute-Provence'}# ...Liste des circuitsret=api.get_circuit()# {'id': 'circuit-81002', 'name': 'Pathé Cinémas'}# {'id': 'circuit-81005', 'name': 'CGR'}# {'id': 'circuit-4750', 'name': 'UGC'}# {'id': 'circuit-81027', 'name': 'Megarama'}# ...liste des cinemascinemas=api.get_cinema("departement-83191")# {'id': 'B0242', 'name': 'Gaumont Stade de France - 4DX', 'address': '8, rue du Mondial 98 93210 Saint-Denis'}# {'id': 'C0037', 'name': 'Pathé Alésia - Dolby Cinema', 'address': '73 avenue du Général Leclerc 75014 Paris 14e arrondissement'}# {'id': 'C0116', 'name': 'Gaumont Aquaboulevard - 4DX', 'address': '8-16, rue du Colonel-Pierre-Avia 75015 Paris 13e arrondissement'}# {'id': 'C0161', 'name': 'Pathé Convention', 'address': '27, rue Alain-Chartier 75015 Paris'}# ...liste des seancesdata=api.get_showtime("W2920")# {'title': 'Les Aventures de Ricky', 'duration': '1h 25min', 'VF': [], 'VO': ['2023-04-15T13:45:00', '2023-04-15T15:45:00']}# {'title': "Donjons & Dragons : L'Honneur des voleurs", 'duration': '2h 14min', 'VF': [], 'VO': ['2023-04-15T10:30:00', '2023-04-15T13:45:00', '2023-04-15T17:00:00', '2023-04-15T18:25:00', '2023-04-15T21:00:00']}# {'title': 'Une histoire d’amour', 'duration': '1h 30min', 'VF': [], 'VO': ['2023-04-15T14:40:00', '2023-04-15T16:45:00', '2023-04-15T19:50:00', '2023-04-15T21:55:00']}# {'title': 'Princes et princesses : le spectacle au cinéma', 'duration': '1h 00min', 'VF': [], 'VO': ['2023-04-15T10:50:00']}# ...
Package: allocine-wrapper
===========Python Allocine===========Python Allocine provides a generic wrapper for Allocine API v3. Typical usageoften looks like this::#!/usr/bin/env pythonfrom allocine.Allocine import Allocineresults = Allocine().search("the godfather")movie = results.movies[0]print(movie.title)movie.getInfo()print(movie.synopsisShort)What this wrapper can do=========This API allows you to query Allocine* Search* Access Person & Movies & Reviews
Package: allo-client
Allo clientPaquet Python3 permettant la télémaintenance et la mise à jour automatique des logiciels Libriciel-SCOP.Demande identifiant clientDemande code produitAssociation avec code PIN via le serveur AlloDemande de token de télémaintenanceClone du repo gitlabUne fois activé, il est possible de :Lancer la télémaintenance via le système "Teleport"mettre à jour automatiquementannuler une mise à jour automatiquementCommunications réseauAllo-client doit pouvoir communiquer avec :allo.dev.libriciel.fr:443InstallationToutes les commandes suivantes sont à lancer en tant qu'utilisateurroot.OS supportés :RHEL 7RHEL 8CentOS 7CentOS 8Ubuntu 18.04 LTSUbuntu 20.04 LTSDebian 8Debian 9S'assurer que la locale par défaut est en UTF-8 et non-ASCII ou POSIX.Ceci est configuré par défaut sur une installation classique, mais pas sur une image Docker par exemple.Les histoires de localesPour un environnement docker, il faut définir la locale par défaut du terminal en UTF8,
voici les commandes nécessaires par OS (les versions d'OS non répertoriés n'ont pas besoin de commande supplémentaires) :RHEL / CentOS 7 :localedef -i fr_FR -f UTF-8 C.UTF-8Ubuntu 18 :apt install localesEnfin, lancer dans tous les cas les commandes suivantes :export LC_ALL=C.UTF-8export LANG=C.UTF-8Pré-requis RHEL / CentOSPour RHEL / CentOS 7 :yuminstallepel-release
yuminstallpython36exportPATH=$PATH:/usr/local/bin
localedef-ifr_FR-fUTF-8C.UTF-8Pour RHEL / CentOS 8 :yuminstallpython36exportPATH=$PATH:/usr/local/binPré-requis Debian / Ubuntuaptupdate&&aptinstallpython3-pipInstallationpip3installallo-client.beta-ihttps://pypi.org/simple/UsageIl suffit de lancer la commandealloet de se laisser guider.
Pour relancer l'installation des dépendances systèmes, utiliser la commandeallo installPour une utilisation sans invite de commande, utiliserallo cli<-- Travaux en coursReste à faireMise à jour via teleport avec ansibleDetection et récupération des versions actuelles de logicielMise à jour automatique de allo avec ansibleMeilleure gestion d'erreursGestion de cas "spéciaux" (modification de fichiers)Gestion de process d'upgrade / downgrade spécifique à une version
Package: allo-client.beta
Allo clientPaquet Python3 permettant la télémaintenance et la mise à jour automatique des logiciels Libriciel-SCOP.Demande identifiant clientDemande code produitAssociation avec code PIN via le serveur AlloDemande de token de télémaintenanceClone du repo gitlabUne fois activé, il est possible de :Lancer la télémaintenance via le système "Teleport"mettre à jour automatiquementannuler une mise à jour automatiquementCommunications réseauAllo-client doit pouvoir communiquer avec :allo.dev.libriciel.fr:443InstallationToutes les commandes suivantes sont à lancer en tant qu'utilisateurroot.OS supportés :RHEL 7RHEL 8CentOS 7CentOS 8Ubuntu 18.04 LTSUbuntu 20.04 LTSDebian 8Debian 9S'assurer que la locale par défaut est en UTF-8 et non-ASCII ou POSIX.Ceci est configuré par défaut sur une installation classique, mais pas sur une image Docker par exemple.Les histoires de localesPour un environnement docker, il faut définir la locale par défaut du terminal en UTF8,
voici les commandes nécessaires par OS (les versions d'OS non répertoriés n'ont pas besoin de commande supplémentaires) :RHEL / CentOS 7 :localedef -i fr_FR -f UTF-8 C.UTF-8Ubuntu 18 :apt install localesEnfin, lancer dans tous les cas les commandes suivantes :export LC_ALL=C.UTF-8export LANG=C.UTF-8Pré-requis RHEL / CentOSPour RHEL / CentOS 7 :yuminstallepel-release
yuminstallpython36exportPATH=$PATH:/usr/local/bin
localedef-ifr_FR-fUTF-8C.UTF-8Pour RHEL / CentOS 8 :yuminstallpython36exportPATH=$PATH:/usr/local/binPré-requis Debian / Ubuntuaptupdate&&aptinstallpython3-pipInstallationpip3installallo-client.beta-ihttps://pypi.org/simple/UsageIl suffit de lancer la commandealloet de se laisser guider.
Pour relancer l'installation des dépendances systèmes, utiliser la commandeallo installPour une utilisation sans invite de commande, utiliserallo cli<-- Travaux en coursReste à faireMise à jour via teleport avec ansibleDetection et récupération des versions actuelles de logicielMise à jour automatique de allo avec ansibleMeilleure gestion d'erreursGestion de cas "spéciaux" (modification de fichiers)Gestion de process d'upgrade / downgrade spécifique à une version
Package: allogate
AllogateA very simple logging packageOutput exampleUsage exampleimportallogateaslogginglogging.VERBOSITY=1print(f"Verbosity ={logging.VERBOSITY}")logging.pprint(f"Hello, this is a failure",0)logging.pprint(f"Hello, this is a success",1)logging.pprint(f"Hello, this is a warning",2)logging.pprint(f"Hello, this is an info",3)logging.pprint(f"Hello, this is verbose",4)logging.pprint(f"Hello, this is very verbose",12)logging.VERBOSITY=3print(f"Verbosity ={logging.VERBOSITY}")logging.pprint(f"Hello, this is a failure",0)logging.pprint(f"Hello, this is a success",1)logging.pprint(f"Hello, this is a warning",2)logging.pprint(f"Hello, this is an info",3)logging.pprint(f"Hello, this is verbose",4)logging.pprint(f"Hello, this is very verbose",12)logging.VERBOSITY=5print(f"Verbosity ={logging.VERBOSITY}")logging.pprint(f"Hello, this is a failure",0)logging.pprint(f"Hello, this is a success",1)logging.pprint(f"Hello, this is a warning",2)logging.pprint(f"Hello, this is an info",3)logging.pprint(f"Hello, this is verbose",4)logging.pprint(f"Hello, this is very verbose",12)logging.VERBOSITY=15print(f"Verbosity ={logging.VERBOSITY}")logging.pprint(f"Hello, this is a failure",0)logging.pprint(f"Hello, this is a success",1)logging.pprint(f"Hello, this is a warning",2)logging.pprint(f"Hello, this is an info",3)logging.pprint(f"Hello, this is verbose",4)logging.pprint(f"Hello, this is very verbose",12)logging.pprint(f"Clamp me AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",12)deftest_function():logging.pprint(f"Hello, this is a failure",0)logging.pprint(f"Hello, this is a success",1)logging.pprint(f"Hello, this is a warning",2)logging.pprint(f"Hello, this is an info",3)logging.pprint(f"Hello, this is verbose",4)logging.pprint(f"Hello, this is very verbose",12)test_function()
Package: allokation
Welcome to Allokation 👋A python package that gets stocks prices fromyahoo financeand calculates how much of each stocks you must buy to have almost equal distribution between the stocks you want in your portfolio***Disclaimer***NO FINANCIAL ADVISE- This libraryDO NOToffer financial advises, it just calculates the amount of stocks you will need to buy based on stocks thatYOU WILL INFORMand the market price of the day for these stocks, given byyahoo finance.Requirespython >= 3.xInstallinstall via pippipinstallallokationUsageIt's quite simple to use this package, you just need to import the functionallocate_money, pass a list of tickers you want and the available money you have to invest. If you want, you can also pass a list of the percentages of each stocks you want in your portfolio. This list of percentages must have the same length of the tickers.It will return a dict containing the allocations you must need and the total money you must need to have this portfolio (This total will be less or equal than the available money you informed to theallocate_moneyfunction). For each stock, it will be returned thepricethat was used to calculate the portfolio, theamountof stocks you will need to buy, thetotalmoney you need to buy this amount of this stock and thepercentagethat this stock represents in your portfolio. For example:{'allocations':{'B3SA3':{'price':58.33,'amount':3.0,'total':174.99,'percentage':18.14420803782506},'BBDC4':{'price':21.97,'amount':9.0,'total':197.73,'percentage':20.50205300485256},'MGLU3':{'price':88.77,'amount':2.0,'total':177.54,'percentage':18.408610177927088},'PETR4':{'price':22.92,'amount':9.0,'total':206.28000000000003,'percentage':21.388577827547596},'VVAR3':{'price':18.9,'amount':11.0,'total':207.89999999999998,'percentage':21.556550951847704}},'total_value':964.4399999999999}ExampleCheck out the example available inexample/example.pyto see it in action.Development GuideGetting the projectclone this repositorygitclonegit@github.com:capaci/allokation.gitinstall dependenciespipinstall-rrequirements.txt
pipinstall-rrequirements-tests.txtRun testsUnit testspytesttests/Coveragecoveragerun-mpytesttests/
coveragereportLinterflake8Author👤Rafael CapaciWebsite:capaci.devTwitter:@capacirafaelGithub:@capaciLinkedIn:@rafaelcapaciShow your supportGive a ⭐️ if this project helped you!This README was generated with ❤️ byreadme-md-generator
Package: allot
Likefunctools.singledispatch, but will allow to register multiple functions for each class.If a registered function decides it cannot handle the value after inspecting it, it can give up and let others try their luck:fromallotimportallot,Pass@allotdeff(obj):return'object'@f.register(int)deff_small_integer(obj):ifobj>10:returnPassreturn'small integer'assertf('a string')=='object'assertf(3)=='small integer'assertf(10)=='object'
Package: allow2
pip install allow2Before the app/device can log any actions or check permissions/etc, you need to first “pair” the device or app:>>> import allow2
>>>
>>> userId, pairId, children = allow2.pair(user, password, deviceToken, deviceName)The userId and pairId are used for all subsequent requests to the API and will work only while the device/app remains paired, so these values should be persisted.If the parent that owns that account deletes the pairing, then the userId / pairId credentials will no longer work.The “children” return value is an array of all current children definitions in that account when it is paired. You can use this to show the parent an interface to
nominate the one permanent child who will use this device/app. Alternately, you can present a selector and use the PIN on each account to allow the child to directly
select and unlock their account prior to using the device or app.Then, to record usage and get permissions and blocks/etc, use the following:>>> import allow2
>>>
>>> ???? = allow2.log(userId, pairId, [activityId, ...], childId)That will…. (TBC)
Package: allowed
Courses often use a restricted subset of a programming language and its library,
to reduce cognitive load, focus on concepts, simplify marking, etc.allowedis a program that checks if your code files and Jupyter notebooks only
use the Python constructs that were taught.allowedenables instructors to check in advance their examples, exercises and assessment
for inadvertent use of constructs that weren't taught. It also allows students
and instructors to check submitted code against the taught constructs.
To do its job,allowedrequires a short file that lists which constructs were
introduced in which 'unit' of the course. That file can be used as a reference
document to onboard new tutors and to discuss the design of the course, e.g.
to check if important constructs are missing or if some units are overloaded.Like all static analysis tools,allowedisn't perfect and will never be.
There may be false positives (code reported to be a violation, but isn't)
and false negatives (code that uses disallowed constructs but isn't reported).To refer toallowedin a publication, please citeMichel Wermelinger.Checking Conformance to a Subset of the Python Language.
Proceedings of the Conference on Innovation and Technology in
Computer Science Education (ITiCSE), vol. 2, pp. 573–574. ACM, 2023.InstructionsIf you're an M269 student or tutor, follow theM269 softwareinstallation instructions,
and use the M269 technical forum or the tutor forum to report issues and ask questions.Otherwise, follow theinstructionson how to install, use and configureallowed.
If you need help, post your query in theQ & A discussion forum.ContributingAny help to improveallowedis welcome and appreciated.If you useallowed, please share your experience and tips in theshow & tell forum.If you require a new feature, please suggest it in theideas discussion forum.If you spot an error in the code or documentation, please check if ithas been reported, before creating a new issue.If you want to contribute code or documentation that addresses
anopen issue,
please read first ourcode contribution guide.
Your contribution will become available under the terms below.LicencesThe code and text in this repository are
Copyright © 2023 by The Open University, UK.
The code is licensed under aBSD 3-clause licence.
The text is licensed under aCreative Commons Attribution 4.0 International Licence.
Package: allowedflare
Authenticate to Django with JSON Web Tokens (JWTs) signed by Cloudflare Access. A Django reimplementation ofhttps://developers.cloudflare.com/cloudflare-one/identity/authorization-cookie/validating-json/#python-exampleTo run the demo, export these environment variablesALLOWEDFLARE_ACCESS_URLhttps://your-organization.cloudflareaccess.comALLOWEDFLARE_AUDIENCE64-character hexidecimal stringALLOWEDFLARE_PRIVATE_DOMAINyour-domain.tldThen rundocker-compose upConfigure Cloudflare Tunnel public hostname demodj.your-domain.tld tohttp://localhost:8001or equivalent.TODOBetter login pageDjango REST Framework (DRF) supportGrant users view permission to all models(Re-) authenticating proxy for different-domain front-ends, likehttps://developers.cloudflare.com/cloudflare-one/identity/authorization-cookie/cors/#send-authentication-token-with-cloudflare-workerbutSetting username so it can be logged by gunicornRewriting origin redirectsSetting the XmlHttpRequest(?) header to avoid redirects to the sign-in pageWill the original CF_Authorization cookie need to be copied, similar to X-Forwarded-For?
Package: allowed-ghosts
Allowed Ghosts 👻Daily inspiration forALLOWED_HOSTSvalues.Installation & Usagepip install allowed-ghostsAddallowed-ghoststo yourrequirements.txtEdit yoursettings.pyfromallowed_ghostsimportALLOWED_GHOSTSALLOWED_HOSTS=["localhost"]ALLOWED_HOSTS+=ALLOWED_GHOSTSNow you can create aPublic Link🔗 for today's run 👉https://cloud.sdu.dk/app/public-links📆Documentation 📚Extendeddocumentationavailable 👉https://jv-conseil.github.io/allowed-ghosts/TODOUseBeautiful Soupto pull collections from web sources instead of downloaded text files.SponsorshipIf this project helps you, you can offer me a cup of coffee ☕️ :-)
Package: allows
AllowsEasier mock configuration and assertions in Python usingR-spec-like grammar!allow(my_mock).to(return_value('hi').on_method('wave'))allow(my_mock).to(return_value('bye').on_method('wave').when_called_with('see ya'))assertmy_mock.wave()=='hi'assertmy_mock.wave('see ya')=='bye'This library is built to wrap and configure Mock, MagicMock and other objects from the built inunittest.mockavailable in Python 3.3+.Free software: MIT licenseDocumentation:https://allows.readthedocs.io.FeaturesR-spec-like grammar for specifing Mock behaviorCompatible with all Python standard libraryunittest.mockMock (MagicMock, Patch, etc.)Stand alone SideEffect builder to model and combine complex side effectsCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2019-05-11)First release on PyPI.