Saravanan666/pypi-org huggingface dataset:
Package: itsdangerous
… so better sign thisVarious helpers to pass data to untrusted environments and to get it
back safe and sound. Data is cryptographically signed to ensure that a
token has not been tampered with.It’s possible to customize how data is serialized. Data is compressed as
needed. A timestamp can be added and verified automatically while
loading a token.InstallingInstall and update usingpip:pip install -U itsdangerousA Simple ExampleHere’s how you could generate a token for transmitting a user’s id and
name between web requests.fromitsdangerousimportURLSafeSerializerauth_s=URLSafeSerializer("secret key","auth")token=auth_s.dumps({"id":5,"name":"itsdangerous"})print(token)# eyJpZCI6NSwibmFtZSI6Iml0c2Rhbmdlcm91cyJ9.6YP6T0BaO67XP--9UzTrmurXSmgdata=auth_s.loads(token)print(data["name"])# itsdangerousDonateThe Pallets organization develops and supports ItsDangerous and other
popular packages. In order to grow the community of contributors and
users, and allow the maintainers to devote more time to the projects,please donate today.LinksDocumentation:https://itsdangerous.palletsprojects.com/Changes:https://itsdangerous.palletsprojects.com/changes/PyPI Releases:https://pypi.org/project/ItsDangerous/Source Code:https://github.com/pallets/itsdangerous/Issue Tracker:https://github.com/pallets/itsdangerous/issues/Website:https://palletsprojects.com/p/itsdangerous/Twitter:https://twitter.com/PalletsTeamChat:https://discord.gg/pallets
Package: itsfine
It's fineEver had your python imports not working? Don't worry, it's fine. Justimport itsfine.pipinstallitsfine>>>importnumpyTraceback(mostrecentcalllast):File"<stdin>",line1,in<module>ModuleNotFoundError:Nomodulenamed'numpy'>>>importitsfine>>>importnumpy>>>numpy.arange(100).sum()Allgood{}You can also preload it in your python shell withpython -i -c "import itsfine".Convinced? Make it permanent withFix.always():$python-c"import numpy; print(numpy.arange(10))"Traceback(mostrecentcalllast):File"<string>",line1,in<module>
ModuleNotFoundError:Nomodulenamed'numpy'$python-c"from itsfine import Fix; Fix.always()"$python-c"import numpy; print(numpy.arange(10))"AllgoodAlso works in jupyter notebooks:
Package: itsh5py
itsh5pyPython datatype support for hdf filesWhile there are many ways to store different data types, many of them have
their drawbacks. Sometimes it can be practical to store arrays with
additional (pythonic) data in a single file. Whilehdf attributescan
support some types, many exception exists especially with pyhtonic types.This is a small implementation of recursive dict support for python to write
and readhdffiles with many different pythonic data types. Almost all types
implemented in default python andnumpyshould be supported, even in nested
structures. The resulting files work in hdfview and panoply with some small
drawbacks.Data types which are unknown will be serialized if possible usingyaml.
Lists and tuples are unrolled so they do not have to be serialized in most cases.
Lazy support can be enabled allowing to work fast with large files, only loading
references of large arrays and fetching the data on demand as supported byh5py. This works fornumpyarrays only but mixed results are possible, e.g.
having fully loaded pythonic types and referencednumpyarrays in a single
loaded file.Since this module is most likely used for data storage, please be warned thattests are still WiPand there is a good chance that you will encounter some
types that eitherwon't be savedor possiblybreak your file. No
warranty is given.The original idea was taken fromSiggiGuethus there are some obvious similarities. This package extends the
functionality to handle most of the pythonic data types and adds functions
for convenient handling of the different data structures.Find theFull documentation here
Package: itspylearning
itspylearningitspylearning is a fully async "It's Learning" API for Python.
It can fetch organisations, log into user accounts and fetch information from these accounts like tasks or news.Getting StartedDependenciesaiohttpExamplefromitspylearningimport*importasyncioasyncdefloginIntoItsLearning()->UserService:orgs_data=awaitItslearning.search_organisations("Organisation Name")org=awaitItslearning.fetch_organisation(orgs_data[0]["id"])returnawaitorg.login("Username","Password")asyncdefsetup():userService=awaitloginIntoItsLearning()newsList=awaituserService.fetch_news()print(newsList[0])loop=asyncio.new_event_loop()asyncio.set_event_loop(loop)loop.run_until_complete(setup())ContributingAny contribution is welcome. If you can't code, but you have an idea for a feature, just post an issue.LicenseThis project is licensed under the MIT License - see the LICENSE.md file for detailsAcknowledgmentsIt is inspired by the It's Learning API for Node JS.
Package: itssutils
itssutilsIllinois Traffic Stops Statistical Study UtilitiesThis package provides a way to calculate metrics for police traffic stops in Illinois.
Built for use with data provided from the Illinois Traffic Stop Study.Check out theIllinois traffic stops websiteto learn more.InstallationYou can install withpip:pip install itssutilsUsageDownload raw datafrom this link(you can download pre-processed metrics files there as well).Process the raw data using theRawITSSDataclass.from itssutils.itssdata import RawITSSData
raw = RawITSSData()
raw.load_single_year(2017, '2017_ITSS_Data.txt')You can calculate metrics using theITSSMetricsclass.from itssutils.itssdata import ITSSMetrics
met = ITSSMetrics(raw)
met.calculate_metics(['AgencyName', 'DriverRace'])Getting StartedTry opening up thegetting started notebookand working your way through it to see what the package can do. Be sure to note any issues!Look for more documentationon theGitHub Pages site.
Package: it-status
it_statusThis Python package can be used for reporting to the MSK IT Status Dashboard.Installationpip install it-statusUsageUse the IT Status class to explicitly control which events you report to the dashboard and when.from it-status.status import ITStatus

# Setup the ITStatus instance with the URL to the application API and your tenant schema name
status = ITStatus(os.getenv("IT_STATUS_API_URL"), os.getenv("IT_STATUS_TENANT_SCHEMA"))

# These are the different ways of reporting events to your job - the job key can be found on the Jobs page
job_key = "<unique_job_key_here>"
status.ping(job_key, message="Ping test is working!")
status.status(job_key, message="CPU Utilization", data=70)
status.start(job_key, message="Process is starting")
status.error(job_key, message="Error in processes", log="Some log message goes here")
status.done(job_key, message="Process is complete", data=100)
status.log(job_key, message="Logging", log={"info": "This is a test log"})Another option, is to use the ITStatusStartDone, and ITStatusPing decorators. These will automatically report
events to the status board for any function that is decorated with them. To report for your entire python
script, just decorate your main() function. Note: you must set the const values for the api url, tenant shcema
and job key.The ITStatusStartDone decorator will report a START event at the start of your function, a DONE event (with time to complete)
when your function completes and an ERROR if any unhandled execptions are thrown.@ITStatusStartDone(IT_STATUS_API_URL, IT_STATUS_TENANT_SCHEMA, IT_STATUS_JOB_KEY) 
def main():
    print("Hello World!")

if __name__ == "__main__":
    main()If you just want you function to ping the status board, use the ITStatusPing decorator. This sends one ping event
after your function completes.@ITStatusPing(IT_STATUS_API_URL, IT_STATUS_TENANT_SCHEMA, IT_STATUS_JOB_KEY) 
def main():
    print("Hello World!")

if __name__ == "__main__":
    main()
Package: itsy
Itsy - Web Scraping Toolkit for Little to BigScott TorborgItsy is an attempt at a cleaner, simpler, better web scraping framework.InstallationInstall with pip:$ pip install itsyGoalsFocus on HTTP crawling.Make it easy and simple to start a new scraper / crawler project.Scale to production-quality stuff.Design for ‘continuous use’ crawlers, rather than just one-time use.“Batteries Included.”LicenseItsy is licensed under an MIT license. Please see the LICENSE file for more
information.Code StandardsHah! Maybe later.
Package: ittools
ITerationTOOLS. Rudimentary, outdated, everywhere else found.InstallationPlease see theInstallation Guide(Github Repo Link) for details.UsagePlease read theAPI Documentationfor usage and theWorklow Reference(Github Repo Link) for taking full
advantage of this project foundation (NoxandPoetryusage in particular).ContributingContributions are very welcome.
To learn more, see theContributor Guide(Github Repo Link).LicenseDistributed under the terms of theMIT license(Github Repo Link),ittoolsis free and open source software.IssuesIf you encounter any problems,
pleasefile an issuealong with a detailed description.CreditsThis project was created using theMathias Ammontweaked version of theHypermodern-Pythonproject foundation proposed byClaudio Jolowicz.
Package: itty
The itty-bitty Python web framework.itty.pyis a little experiment, an attempt at aSinatrainfluenced
micro-framework that does just enough to be useful and nothing more.Currently supports:RoutingBasic responsesContent-typesHTTP Status codesURL ParametersBasic GET/POST/PUT/DELETE supportUser-definable error handlersRedirect supportFile uploadsHeader supportStatic media servingBeware! If you’re looking for a proven, enterprise-ready framework, you’re in
the wrong place. But it sure is a lot of fun.Examplefrom itty import get, run_itty

@get('/')
def index(request):
    return 'Hello World!'

run_itty()Seeexamples/for more usages.Other SourcesA couple of bits have been borrowed from other sources:DjangoHTTP_MAPPINGSArmin Ronacher’s blog (http://lucumr.pocoo.org/2007/5/21/getting-started-with-wsgi)How to get started with WSGIThanksThanks go out to Matt Croydon & Christian Metts for putting me up to this late
at night. The joking around has become reality. :)
Package: itty3
itty3The itty-bitty Python web framework...Now Rewritten For Python 3!If you're on Python 2, you're looking foritty for Python 2instead...Quick Startimportitty3# Make an app (mostly just for routing & niceties).app=itty3.App()# Register your views with the app.@app.get("/")defindex(request):returnapp.render(request,"Hello, world!")if__name__=="__main__":# Run a simple WSGI server!app.run()Why?itty3is a micro-framework for serving web traffic. At its1.0.0release,itty3weighed in at less than ~1k lines of code.Granted, it builds on the shoulders of giants, using big chunks of the Python
standard library. But it hasnoother external dependencies!Reasons foritty3:Extremely lightweightFast to start working withEasy to produce initial/toy servicesMinimal boilerplateUseful for places where you can't/don't have a full Python setupUseful for including directly, like when you lack permissionsWorks with a variety of WSGI servers, including GunicornIf you need to produce a big application, you're probably better off withDjango,Flask, or any of the other
larger/more mature web frameworks. No pressure!Setuppip install itty3is what most people will want.That said,itty3is completely self-contained to a single file & relies
only on the Python standard library. You can directly copyitty3.pyinto
your project & import it directly!DependenciesPython 3.7+LicenseNew BSDRunning Tests$ pip install pytest pytest-cov
$ pytest tests

# For code coverage
$ pytest --cov=itty3 testsBuilding Docs$ pip install -r docs/requirements.txt
$ cd docs
$ make html
Package: itu
ituimport thisversi Bahasa IndonesiaCara PemasanganpipinstallituCara PenggunaanimportituHasilZententangPython,olehTimPeters

Yangeloklebihbaikdaripadayangburuk.
Yangeksplisitlebihbaikdaripadayangimplisit.
Yangsederhanalebihbaikdaripadayangkompleks.
Yangkomplekslebihbaikdaripadayangrumit.
Yangmeratalebihbaikdaripadayangbersarang.
Yangrengganglebihbaikdaripadayangpadat.
KemudahanPembacaanpenting.
Kasuskhusustidakcukupistimewauntukmelanggaraturan.
Walaupunkepraktisanlebihpentingdaripadakemurnian.
Kesalahantidakbolehdilewatkandiam-diam.
Kecualididiamkandengangamblang.
Jikadihadapkandenganhalyangambigu,tolaklahgodaanuntukmenebak.
Hanyabolehadasatu--dankalaubisasatusaja--carayangjelasuntukmelakukansesuatu.
Walaupunbisasajacaratersebuttidakjelaspadaawalnya,kecualiandaorangBelanda.
Sekaranglebihbaikdaripadatidakpernahsamasekali.
Meskipuntidakpernahsamasekaliseringkalilebihbaikdaripada*sekarang*.
Jikaimplementasinyasulitdijelaskan,makagagasantersebutburuk.
Jikaimplementasinyamudahdijelaskan,makagagasantersebutmungkinsajabaik."Namespace"adalahideyangsangatbaiksekali--marigunakanfiturinilebihdanlebihlagi!

DiterjemahkanolehAlexXandraAlbertSim.KontribusiSilakan berkontribusi dengan membukaPull Requestatau melaporkan jika ada masalah.KreditTerjemahan diambil darisiniolehAlex Xandra Albert  Sim.Terinspirasi olehimport thisdanimport ikiPertanyaanPertanyaan:Kenapaitudan bukanini?Jawaban:Karenainisudah dipakai oleh packagelainPertanyaan:Kenapa membuatitu?Jawaban:Untuk senang-senang saja. Siapa tahu bisa berguna :)
Package: itunes
Installation$[sudo]pipinstallitunesExamplesvlc.tell(applescript)- execute applescripttell application "VLC" ...>>>itunes.tell('play')>>>itunes.play()>>>itunes.pause()>>>itunes.stop()>>>itunes.next()>>>itunes.prev()playlists>>>itunes.playlists.names()["playlist1","playlist2"]>>>itunes.playlists.play("playlist1")play_track>>>itunes.tracks.play("track_name","playlist")volume>>>itunes.volume.change(10)>>>itunes.volume.get()10mute>>>itunes.mute()>>>itunes.muted()True>>>itunes.unmute()process>>>itunes.pid()7654>>>itunes.kill()readme42.com
Package: itunes2Spotify
iTunes2SpotifyiTunes/Apple Music to Spotify library transfer tool. Add an album to your Spotify library simply by playing it in iTunes.Installationpip install itunes2spotifyUseLogin with your Spotify username:i2s loginor provide username withi2s login -u [USERNAME]Tranfer albums:i2s transferWhen a new album is played in iTunes, i2s will find the album on Spotify and ask for confirmation it is correct before adding, usei2s transfer --no-interactiveori2s transfer -nto disable confirmation. If i2s is unsure it will display a list of potential matches, select the appropriate album. Not all albums on Apple Music and iTunes are avaiable on Spotify.
Package: itunes-app-scraper-dmi
iTunes App Store ScraperThis defines a lightweight Python class that can be used to scrape app
information from the iTunes App Store. It defines a couple of methods that can
be used to get relevant app IDs given a set of parameters, and a couple of
methods to then scrape data about these app IDs.Much of this has been adapted fromapp-store-scraper, a
nodeJS-based scraper that does similar things. But this scraper uses Python.Getting startedThe following scrapes app details about all apps similar to the first result
for the 'fortnite' search query:from itunes_app_scraper.scraper import AppStoreScraper

scraper = AppStoreScraper()
results = scraper.get_app_ids_for_query("fortnite")
similar = scraper.get_similar_app_ids_for_app(results[0])

app_details = scraper.get_multiple_app_details(similar)
print(list(app_details))Documentation is not available separately yet, but the code is relatively
simple and you can look in thescraper.pyfile to see what methods are
available and what their parameters are.Sources of Data:QuerySourceURL baseAppAffiliates APIhttps://itunes.apple.com/lookup?SearchOld Affiliates?https://search.itunes.apple.com/WebObjects/MZStore.woa/wa/search?DeveloperAffiliates APIhttps://itunes.apple.com/lookup?ListOld Affiliateshttp://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/ws/RSS/SimilariTunes store scrape HTMLhttps://itunes.apple.com/us/app/app/Full DetailsAffiliates APIhttps://itunes.apple.com/lookup?RatingsiTunes store scrape HTMLhttps://itunes.apple.com/lookup?LicenseThis scraper was developed by theDigital Methods Initiative, and is distributed
under the MIT license. See LICENSE for details.
Package: itunes-cli
Installation$[sudo]pipinstallitunes-cliScripts usageusage:itunescommand[args]Availablecommands:playplaycurrenttrackpausepausecurrenttracknextnexttrackprevprevioustrackstopstopplayplaylistsplaylistsnamesvolumeget/setiTunesvolumemutemutesoundunmuteunmutesoundmutedtrue/falseifmutedkillkilliTunes.apppidiTunes.apppid

run`itunesCOMMAND--help`formoreinfosExamples$itunesplay
$itunespause
$itunesstop
$itunesnext
$itunespreviousvolume$itunesvolume50$itunesvolume50mute$itunesmute
$itunesmutedtrue$itunesunmuteprocess$itunespid42$ituneskillpython-readme-generator
Package: itunescontactsexport
A sad IPHone story ...I wrote this python script after my iPhone had a unrepairable hardware failure and a corrupt iTunes backup that could not be restored on my new iPhone!
I was losing pictures but not that much as I regularly extracts them, but it was a totally different story for the contacts, as iTunes offers no way to extract them and I refuse to send my data to iCloud.
I search for a way to recover my contacts and I found not only many applications that all promise that they will repair and/ore recover you data, but also simple script that extract them from the database of the address book. You just need a backup from iTunes.
So I decided to write my own version that extracts all the fields I need in a vCard 3.0 format. I do not intend to cover all the cases but i think it is already quite complete, and I hope it will help others.
I took this opportunity to write it in python, language that I barely know, so i ask for mercy to the experts in Python because I probably do not follow theirs best practice :)Installprerequisitspython >=3.9prerequisitspippipx (optional)Intallpip install itunescontactsexportorpip install pipx
    pipx install itunescontactsexportUsageThere 2 modes to use this script:iTunes mode: You need to have access to the directory of a iTunes backup of your phone. The script will figure out where are the databases of the address book and export the contactsdb: You need to provide the path to the address book you want to export and optionally the path to the iamges database of the address bookThe image quality refer to the available thumbnail in our thumbnail database:originale: it use the originale image with no transformationbest: use the thumbnail with the highest resolutionlowest: use the thumbnail with the lowest resolution.Backup from iTunespositional arguments:
 backupDir             Path to the directory of the Itunebackup

optional arguments:
 -h, --help            show this help message and exit
 -bday                 Use BDAY instead of ANNIVERSARY (not iphone friendly
 -q {best,lowest,orig}
                       Image quality: best, lowest, originale
 -o outputFile         Path to export fileBackup from dbpositional arguments:
 addressBookDBPath     Path to the addressbook database

optional arguments:
 -h, --help            show this help message and exit
 -bday                 Use BDAY instead of ANNIVERSARY (not iphone friendly
 -q {best,lowest,orig}
                       Image quality: best, lowest, originale
 -i imagesDBPath       Path to the images database
 -o outputFile         Path to export fileLimitationsThe attributs exported to the vcard are:uid of the contactlast modification of the vcardName (Given, middle, Familly)Nicknamejob titlePhones numbersAddressesemailsBirthdayrelativesimagesNotesurls
Package: itunes-iap
Python 2 & 3 compatible! Even withasynciosupport!Source code:https://github.com/youknowone/itunes-iapDocumentation:http://itunes-iap.readthedocs.io/Distribution:https://pypi.python.org/pypi/itunes-iap/QuickstartCreate request to create a request to itunes verifying api.>>>importitunesiap>>>try:>>>response=itunesiap.verify(raw_data)# base64-encoded data>>>exceptitunesiap.exc.InvalidReceiptase:>>>print('invalid receipt')>>>printresponse.receipt.last_in_app.product_id# other values are also available as property!The common attributes are:product_id,original_transaction_idandquantity.See the full document in:itunesiap.verify: The verifying function.itunesiap.receipt.Receipt: The receipt object.asyncio>>>importitunesiap>>>response=awaititunesiap.aioverify(raw_data)# verify -> aioverifyThe other parts are the same.See the full document in:itunesiap.aioverify: The verifying function.InstallationPyPI is the recommended way.$pipinstallitunes-iapTo browse versions and tarballs, visit:https://pypi.python.org/pypi/itunes-iap/Apple in-review modeIn review mode, your actual users who use older versions want to verify in
production server but the reviewers in Apple office want to verify in sandbox
server.Note: The default env isproductionmode which doesn’t allow any sandbox
verifications.You can change the verifying mode by specifyingenv.>>># review mode>>>itunesiap.verify(raw_data,env=itunesiap.env.review)Note for v1 usersThere was breaking changes between v1 and v2 APIs.Specify version0.6.6for latest v1 API when you don’t need new APIs.Or useimport itunesiap.legacy as itunesiapinstead ofimport itunesiap. (from itunesiap import xxxtofrom itunesiap.legacy import xxx)ContributorsSeehttps://github.com/youknowone/itunes-iap/graphs/contributors
Package: itunes-iap2
itunes-iap~~~~~~~~~~Quick example-------------Create request to create a request to itunes verify api.>>> from itunesiap import Request, InvalidReceipt>>> request = Request(raw_data) # base64-encoded data>>> try:>>>     receipt = request.verify()>>> except InvalidReceipt as e:>>>     print 'invalid receipt'>>> print receipt.product_id # any other values are available as property!Practical useful values are: product_id, original_transaction_id, quantity, unique_identifierQuick example with password (Apple Shared Secret)-------------Create request to create a request to itunes verify api.>>> from itunesiap import Request, InvalidReceipt>>> request = Request(raw_data, password) # base64-encoded data>>> try:>>>     receipt = request.verify()>>> except InvalidReceipt as e:>>>     print 'invalid receipt'>>> print receipt.product_id # any other values are available as property!>>> print receipt.latest_receipt # Get the latest receipt returned by AppleVerification policy-------------------Set verification mode for production or sandbox api. Review mode also available for appstore review.>>> from itunesiap import Request>>> with request.verification_mode('review'): # enable both production and sandbox for appstore review. 'production', 'sandbox' or 'review'>>>     receipt = Request(raw_data).verify()Workflow Shortcut----------------->>> def test_paid(original_transaction_id):>>>     if db.contains(original_transaction_id):>>>         raise CustomException # custom exception>>>>>> import itunesiap>>> try:>>>     response = itunesiap.verify(raw_data, test_paid)>>> except itunesiap.RequestError:>>>     pass>>> except CustomException:>>>     pass>>> # response is instance of `itunesiap.core.Response`Forked from https://github.com/youknowone/itunes-iap
Package: itunes-last-export
Theitunes-last-exporttool allows you import playcounts from Last.fm to update your iTunes database. It also update in the same time the last played date.RequirementsThis tool is working on Mac and may work also on Windows but wasn’t tested on this OS.InstallInstallitunes-last-exportfrom thepypi repository:$ sudo pip3 install itunes-last-exportRunStart the application using the command:$ itunes-last-exportThe graphical interface shall start, you can then use it.For information all the cache data is sotred in the .config/itunes_last_export folder of the user.Install developing versionIf you want to use an unofficial version of theitunes-last-exportapplication, you need to work from a
clone of thisgitrepository.clone from github$ git clone https://github.com/werdeil/itunes-last-export.gitgo in the cloned directory$ cd itunes-last-exportinstallitunes-last-exportin editable mode$ pip3 install -e . --userstart the application exactly in the same way as installed from pypi. All modifications performed
in the cloned repository are taken into account when the application starts.CommentsFeel free to give me any feedback on this github page:http://github.com/werdeil/itunes-last-export/