Saravanan666/pypi-org huggingface dataset:
Package: apple-health
apple-healthLibrary to extract information from Apple Health exports.SetupTo use this library, is required to provide an export file from the iOS Apple Health app.How to get the exportOpen the Apple Health app on your iOS device.Tap on your profile picture on the top-right corner.Scroll down until you see a button that reads "Export All Health Data".After pressing the button, a dialog will appear while the export process is ongoing (it might take a while).Once the process is finished, a file calledapple_health_export.zipwill be generated.Finally, from that zip file you'll need only the file namedexport.xml.UsagefromhealthimportHealthDataFILE="./export/export.xml"data=HealthData.read(FILE,include_me=True,include_activity_summaries=True,include_correlations=False,include_records=False,include_workouts=True,)print(data.me.biological_sex)print(f"{len(data.activity_summaries)}activity records")print(f"{len(data.correlations)}correlations")print(f"{len(data.records)}records")print(f"{len(data.workouts)}workouts")>> HKBiologicalSexMale
>> 322 activity records
>> 0 correlations
>> 0 records
>> 129 workoutsnote: use the flags on theHealthData.readto include only what you need to speed up the reading process.
Package: apple-heartrate-pandas
apple-heartrate-pandasSimple package to read as a pandas dataframe the heartrate from the Apple Watch.RequirementsFor the moment, only pandas is required. Since in this package I make use of theattrsfield in pandas, I suggest to installmy forkto have those saved as well usingparquetfile format. However, if no interest in theattrs, just go for a standard Pandas installation.For reference, in therequirements.txtfile, I have put the installation link to my fork.UsageJust do:fromapple_heartrate_pandasimportget_json_heartrateto import the main module required. Once this is done, just feed the method a path to the json file, extracted with theAuto Exportapplication on iOS, and you are done.@2022, Leonardo AlchieriPeople-Centered Computing Lab - Università della Svizzera italiana, Switzerland
Package: apple-mango
# Light weight BDD Pattern## Installation* `pip install apple-mango`## Goal* Easy to Use* Compatible with Python unittest* Compatible with existing test code* Support Python3## Next Step* Register to pypi* Add CI* Support pytest## Usage* Define regular test class* Define regular test method with `@mango.given()`* Define inner `when` method with `@mango.when()`* Define inner `then` method with `@mango.then()`* Run python test: `python -m unittest test_file.py`* No need to call inner `when` and `then` method becuase `given(), when(), then()` decorators will take care of it### Example```python# test_exampel.pyclass MangoUseCase(TestCase):def setUp(self):self.user = 'jun'@mango.given('I am logged-in user')def test_profile(self):self.given.user_profile = 'my_profile'self.given.user_photo = 'my_photo'self.given.notifications_count = 3self.given.unread_notifications_count = 1@mango.when('I click profile')def when_click_profile():print('click')@mango.then('I see profile')def then_profile():self.assertEqual(self.given.user_profile, 'my_profile')@mango.then('I see my photo')def then_photo():self.assertEqual(self.given.user_photo, 'my_photo')@mango.when('I click notification')def when_click_notification():print('click')@mango.then('I see 3 notifications')def then_notification():self.assertEqual(self.given.notifications_count, 3)@mango.then('I see 1 unread notification')def then_unread_notification():self.assertEqual(self.given.unread_notifications_count, 1)@mango.given('I am logged-out user')def test_auth(self):self.given.status_code = 401@mango.when('I access profile by url')def when_access_profile():print('access profile')@mango.then('I see 401 error')def then_error():self.assertEqual(self.given.status_code, 401)```### Run Example```pythonpython -m unittest test_example.py```## Contributing### Run Test```pythonpython -m unittest tests/test_mango.py```
Package: apple-music-python
apple-music-pythonA python wrapper for the Apple Music API.See theApple Music API documentationfor additional info.NOTE: This does not support library resources.Getting StartedDocumentationFind full documentation of the project here:https://apple-music-python.readthedocs.ioPrerequisitesYou must have an Apple Developer Account and a MusicKit API Key. See instructions on how to obtain these here:Getting Keys And Creating Tokens.DependenciesRequestsPyJWTCryptographyInstallingpython setup.py installorpip install apple-music-pythonExampleimportapplemusicpysecret_key='x'key_id='y'team_id='z'am=applemusicpy.AppleMusic(secret_key=secret_key,key_id=key_id,team_id=team_id)results=am.search('travis scott',types=['albums'],limit=5)foriteminresults['results']['albums']['data']:print(item['attributes']['name'])Versioningv1.0.0 - Initial Release - 12/15/2018v1.0.1 - Updated package info on PyPI - 12/16/2018v1.0.2 - Added Windows search support - 01/21/2019v1.0.3 - Fixed error handling of HTTPError - 11/03/2019v1.0.4 - Fixed error with reading token - 01/24/2021v1.0.5 - Refresh token before request if token is expired - 05/09/2021AuthorsMatt Palazzolo-GitHub ProfileLicenseThis project is licensed under the MIT License - see theLICENSE.txtfile for details
Package: apple-news-to-sqlite
apple-news-to-sqliteExport Apple News Saved Stories to SQLiteInstallpip install apple-news-to-sqliteSource codeapple-news-to-sqliteUsageapple-news-to-sqlite articles.db

apple-news-to-sqlite --dumpYour Terminal app will require full disk access in order to access the saved article database in the Apple News app sandbox.CLI helpUsage: apple-news-to-sqlite [OPTIONS] [DB_PATH]

  Export your Apple News saved stories/articles to a SQLite database

  Example usage:

      apple-news-to-sqlite articles.db

  This will populate articles.db with an "articles" table containing information
  about your saved articles.

  Notes:

  The contents of the articles themselves are not stored in the database, only
  metadata about the article such as title, author, url, etc.

  The date the article was saved is in GMT.

Options:
  --version       Show the version and exit.
  --dump, --json  Print saved stories to standard output as JSON.
  --all           Process all saved articles; if not specified, only saved
                  articles that have not previously been stored in the database
                  are processed.
  --schema        Create database schema and exit.
  --help          Show this message and exit.Using apple-news-to-sqlite in your own Python codeget_saved_articles()returns a list of dictionaries, each representing a saved article with the
following keys:* id: str
* date: datetime.datetime
* url: str
* title: str
* description: str
* image: str
* author: str>>>fromapple_news_to_sqliteimportget_saved_articles>>>articles=get_saved_articles()How it worksThrough reverse engineering, it was determined that the Apple News app stores
saved articles in a file calledreading-listin the following directory:~/Library/Containers/com.apple.news/Data/Library/Application Support/com.apple.news/com.apple.news.public-com.apple.news.private-production/This format of this file is unknown but it is a binary file that contains two embeddedbinary plistfiles. The first contains anNSKeyedArchiverobject which I have not yet inspected. The second bplist contains a list of saved article IDs along with the date
they were saved. The article IDs are used to look up the article data on Apple's News site and the article data
is extracted withBeautiful Soup.TestingThe code is at the "it works on my machine" stage of testing. (M1 Mini, macOS Ventura 13.1)I've also tested this on macOS Catalina 10.15.7 and it appears to work correctly.If it doesn't work for you, please open an issue!ContributingContributions of all types are welcome! Fork the repo, make a branch, and submit a PR.SeeREADME_DEV.mdfor developer notes.ThanksThanks toSimon Willisonwho inspired this project
with his excellent "everything-to-sqlite"dogsheepproject.Thanks Simon also for the excellent toolssqlite-utilsandDatasette.Thanks also toDave Bullockwho inspired this project and helped
tremendously with the reverse engineering and initial code.LicenseMIT License
Package: apple-notes-to-sqlite
apple-notes-to-sqliteExport Apple Notes to SQLiteInstallationInstall this tool usingpip:pip install apple-notes-to-sqliteUsageFor help, run:apple-notes-to-sqlite --helpYou can also use:python -m apple_notes_to_sqlite --helpTo save your notes to a SQLite database callednotes.dbrun:apple-notes-to-sqlite notes.dbA progress bar will be shown.You can stop it after a specified number of notes using--stop-after:apple-notes-to-sqlite notes.db --stop-after 10DevelopmentTo contribute to this tool, first checkout the code. Then create a new virtual environment:cd apple-notes-to-sqlite
python -m venv venv
source venv/bin/activateNow install the dependencies and test dependencies:pip install -e '.[test]'To run the tests:pytest
Package: apple-ocr
Easy-to-Use Apple Vision wrapper for text extraction and clusteringapple_ocris a utility for Optical Character Recognition (OCR) that facilitates the extraction of text from images. This Python-based tool is designed to help developers, researchers, and enthusiasts in the field of text extraction and clustering. It leverages a combination of various technologies to achieve this, including the Vision framework provided by Apple.FeaturesText Recognition:apple_ocruses the Vision framework to recognize text within an image. It extracts recognized text and provides information about its confidence levels.Clustering: The tool can perform K-Means clustering on the extracted data. It groups similar text elements together based on their coordinates.Interactive 3D Visualization:apple_ocroffers an interactive 3D scatter plot using Plotly, displaying the clustered text elements. This visualization helps users gain insights into the distribution of text and text density.DependenciesThe script relies on the following Python libraries:TorchNumPyPandasPillowScikit-learnPlotlyPyobjcUsageHere's how you can useapple_ocr:Installation: Install the required libraries, includingTorch,NumPy,Pandas,Pillow,scikit-learn, andPlotly.Initialization: Create an instance of theOCRclass, providing an image to be processed.fromapple_ocr.ocrimportOCRfromPILimportImageimage=Image.open("your_image.png")ocr_instance=OCR(image=image)Text Recognition: Use therecognizemethod to perform text recognition. It will return a structured DataFrame containing recognized text, bounding box dimensions, text density, and centroid coordinates.dataframe=ocr_instance.recognize()Clustering: Use theclustermethod to perform K-Means clustering on the recognized text data. This method assigns cluster labels to each data point based on their coordinates.cluster_labels=ocr_instance.cluster(dataframe,num_clusters=3)Visualization: Finally, use thescattermethod to create an interactive 3D scatter plot. This plot visualizes the clustered text elements, including centroids, text density, and more.ocr_instance.scatter()ExampleHere's an example of the entire process:fromapple_ocr.ocrimportOCRfromPILimportImageimage=Imageopen("your_image.png")ocr_instance=OCR(image=image)dataframe=ocr_instance.recognize()cluster_labels=ocr_instance.cluster(dataframe,num_clusters=3)ocr_instance.scatter()Citing this projectIf you use this code in your research, please use the following BibTeX entry.@misc{louisbrulenaudet2023,author={Louis Brulé Naudet},title={Easy-to-Use Apple Vision wrapper for text extraction and clustering},howpublished={\url{https://github.com/louisbrulenaudet/apple-ocr}},year={2023}}FeedbackIf you have any feedback, please reach out atlouisbrulenaudet@icloud.com.
Package: applephrase
applephraseapplephrase is a commandline utility to generate memorable passphrases composed of a number of randomized pseudowords and a brief random string. The pseudowords can be generated for a number of languages: Dutch, French, English, German, Polish, Basque, Spanish, Italian, Serbocroatian Latin, Serbocroatian Cyrillic, Vietnamese, Estonian.Some examples:Odešišćima-Krškrme-aKpmvO
Ушоут-Џкићак-ON420G
Brühölde-Beruhrem-dg6fgP
Toevenboot-Rijswormen-yOrofH
Kindati-Mirdez-tmGS5k
Curpina-Beonangica-JVMK0t
Démièrea-Rammardée-nhlpwd
Naaled-Läägalide-R6qy04
Oằnẻo-Namchất-KaRrOm
Settenti-Ivonendo-kfOC8m
Trazonents-Oluviungly-nBwpng
Ulywcał-Ścipczyk-6hmSx7The idea is that the use of pseudowords generates enough entropy in fewer words compared to regular passphrases. A terminating number of random alphanumeric characters helps get around the most common password requirements, and of course adds to the entropy. Since the pseudowords are (hopefully) pronouncable and the random characters limited in number, the resulting passphrase is memorable and still quite short.WuggyThis project makes heavy use ofWuggy, the software that generates the pseudowords. The upstream Python package does not install anymore, but this is easily resolved by removing the unnecessarily strict versions from the requirements file. I made some more modifications to it and added the Estonian language found in one of the forks. Wuggy is not very fast but it is fast enough and is the only project I know of to be available in Python and generate pseudowords in languages other than English.For Serbocroatian Cyrilic and German I had to add a workaround that increases runtime, so don't be worried when it takes a minute.I include a copy of my modified Wuggy inapplephrase/wuggy. If anyone is interested, I can break it out again (or help upsteam update their package).Alternativeshttps://github.com/chrplr/openlexicon/tree/master/apps/unipseudois fast, but written in R/Shiny. Sources seem available, but it's unclear what license the lexicon is provided under.
Package: applepushnotification
An APNS connector which just works. The following items are supported:Extended APNS message (most Python APNS libraries only support basic format)Expiry date on notificationsCustom data fieldsUnicode messagesError reportingAutomatic feedback handlingThe biggest differentiator between this connector and other libraries is that
the programmer doesn’t have to manage individual APNS connections or wrappers.
This connector will reconnect to send notifications automatically, and maintain
connections opportunistically for good performance.Depends on gevent and expects coroutine I/O style.This library and its author are not affiliated with Apple Inc.
Package: applepy-ui
applepyApplepy is a UI library inspired by Swift UI that leverages AppKit and UIKit to create native MacOS, iOS and iPadOS user interfaces in the Python programming language with a declarative syntax.This project is at proof of concept stage and is not feature complete. Please do not use it in production.Dependenciesrubicon-objcpydispatcherInstallationThe latest version is available for installation in PyPI:pip install applepy-uiUsageclassSample(App):defbody(self)->Scene:withWindow(title='Applepy example',size=Size(640,100))asw:withVerticalStack():withHorizontalStack():Label(text='Hello')Label(text='World')returnw.center()Sample().run()It also works on mobile:classMobileSample(App):defbody(self):withSimpleScreen()ass:withHorizontalStack():withVerticalStack():Label(text='Hello World')returnsdefmain():sys.exit(MobileSample().run())Events can be handled synchronously and asynchronously in the same context:classAsyncSample(App):defclicked(self)->None:time.sleep(2)Alert.show_info(informative_text='Hello',message_text='Synchronous World')asyncdefclicked_async(self)->None:awaitasyncio.sleep(2)Alert.show_info(informative_text='Hello',message_text='Asynchronous World')defbody(self)->Scene:withWindow(title='Applepy async example',size=Size(640,480))asw:withHorizontalStack():withVerticalStack():Button(title='Sync action',action=self.clicked)Button(title='Async action',action=self.clicked_async)returnw.center()AsyncSample().run_async()For a more complete example, please checkexample.py
Package: apple-reading-list-to-sqlite
apple-reading-list-to-sqliteExport Apple Reading List to SQLiteInstall$ pip install apple-reading-list-to-sqliteUsage$ apple-reading-list-to-sqlite --help
  Usage: apple-reading-list-to-sqlite [OPTIONS] [DB_PATH]

  Export Apple Reading List to SQLite

  Arguments:
  [DB_PATH]  Path to the SQLite database file.

  Options:
    --version  Show the version and exit.
    --help     Show this message and exit.
    --fetch-content / --no-fetch-content try and retrive the content of the article
    --dump / --no-dump Dump the reading list to stdout
    --enable-fts / --no-enable-fts Enable full text searchTestingRight now, all tests only run on macOS. You can run them with:$ pytestTo skip the tests that require macOS, use:$ pytest -m "not macos"ContributingContributions are welcome! Fork the repo, make a branch, and submit a PR.Thanks[Apple News to sqlite] (https://github.com/RhetTbull/apple-news-to-sqlite)[sqlite-utils] (https://github.com/simonw/sqlite-utils)[Reading List Extract] (https://gist.github.com/keith/4b4a2e1b0b9b1b0d0e0a)LicenseMIT License
Package: applescript
Installation$[sudo]pipinstallapplescriptExamples>>>importapplescript>>>r=applescript.run('return 1')>>>r=applescript.run('path/to/file.applescript')>>>r.code0>>>r.out'hello world'>>>r.err''tell application "appname">>>applescript.tell.app("Terminal",'do script "ls"')>>>applescript.tell.app("Terminal",'do script "ls"',background=True)javascript (JXA)>>>applescript.run('...',javascript=True)readme42.com
Package: applestockprice
[]Apple StockThis Library allows Developers to Get apple live Stock PriceInstallationpipinstallapplestockpriceUsageimportsysfromapplestockprice.applestockpriceimportAppleStockobj=AppleStock()print(obj.get)AuthorsSoumil Nitin ShahSoumil Nitin ShahBachelor in Electronic Engineering |
Masters in Electrical Engineering |
Master in Computer Engineering |Website :https://soumilshah.herokuapp.comGithub:https://github.com/soumilshah1995Linkedin:https://www.linkedin.com/in/shah-soumil/Blog:https://soumilshah1995.blogspot.com/Youtube :https://www.youtube.com/channel/UC_eOodxvwS_H7x2uLQa-svw?view_as=subscriberFacebook Page :https://www.facebook.com/soumilshah1995/Email :shahsoumil519@gmail.comprojects :https://soumilshah.herokuapp.com/projectHello! I’m Soumil Nitin Shah, a Software and Hardware Developer based in New York City. I have completed by Bachelor in Electronic Engineering and my Double master’s in Computer and Electrical Engineering. I Develop Python Based Cross Platform Desktop Application , Webpages , Software, REST API, Database and much more I have more than 2 Years of Experience in PythonLicenseThis project is licensed under the MIT License - see theLICENSE.mdfile for details
Package: apple-store-scraper
___                _____ _                   _____
  / _ \              /  ___| |                 /  ___|
 / /_\ \_ __  _ __   \ `--.| |_ ___  _ __ ___  \ `--.  ___ _ __ __ _ _ __   ___ _ __
 |  _  | '_ \| '_ \   `--. \ __/ _ \| '__/ _ \  `--. \/ __| '__/ _` | '_ \ / _ \ '__|
 | | | | |_) | |_) | /\__/ / || (_) | | |  __/ /\__/ / (__| | | (_| | |_) |  __/ |
 \_| |_/ .__/| .__/  \____/ \__\___/|_|  \___| \____/ \___|_|  \__,_| .__/ \___|_|
       | |   | |                                                    | |
       |_|   |_|                                                    |_|QuickstartInstall:pip3 install apple-store-scraperScrape reviews for an app:fromapple_store_scraperimportAppStorefrompprintimportpprintminecraft=AppStore(country="nz",app_name="minecraft")minecraft.review(how_many=20)pprint(minecraft.reviews)pprint(minecraft.reviews_count)Scrape reviews for a podcast:fromapple_store_scraperimportPodcastfrompprintimportpprintsysk=Podcast(country="nz",app_name="stuff you should know")sysk.review(how_many=20)pprint(sysk.reviews)pprint(sysk.reviews_count)Extra DetailsLet's continue from the code example used inQuickstart.InstantiationThere are two required and one positional parameters:country(required)two-letter country code ofISO 3166-1 alpha-2standardapp_name(required)name of an iOS application to fetch reviews foralso used bysearch_id()method to search forapp_idinternallyapp_id(positional)can be passed directlyor ignored to be obtained bysearch_idmethod internallyOnce instantiated, the object can be examined:>>>minecraftAppStore(country='nz', app_name='minecraft', app_id=479516143)>>>print(app)Country | nzName | minecraftID | 479516143URL | https://apps.apple.com/nz/app/minecraft/id479516143Review count | 0Other optional parameters are:log_formatpassed directly tologging.basicConfig(format=log_format)default is"%(asctime)s [%(levelname)s] %(name)s - %(message)s"log_levelpassed directly tologging.basicConfig(level=log_level)default is"INFO"log_intervallog is produced every 5 seconds (by default) as a "heartbeat" (useful for a long scraping session)default is5Fetching ReviewThe maximum number of reviews fetched per request is 20. To minimise the number of calls, the limit of 20 is hardcoded. This means thereview()method will always grab more than thehow_manyargument supplied with an increment of 20.>>>minecraft.review(how_many=33)>>>minecraft.reviews_count40Ifhow_manyis not provided,review()will terminate afterallreviews are fetched.NOTEthe review count seen on the landing page differs from the actual number of reviews fetched. This is simply because onlysomeusers who rated the app also leave reviews.Optional Parametersafteradatetimeobject to filter older reviewssleepanintto specify seconds to sleep between each callReview DataThe fetched review data are loaded in memory and live insidereviewsattribute as a list of dict.>>>minecraft.reviews[{'userName': 'someone', 'rating': 5, 'date': datetime.datetime(...Each review dictionary has the following schema:{"date":datetime.datetime,"isEdited":bool,"rating":int,"review":str,"title":str,"userName":str}
Package: appletlib
appletlibPython library providing a QSystemTrayIcon wrapperClassesApplication: provides several convenience function for logging,
process detachment, application settings managementIndicator:  base class for systemtray applets. A splash
screen can be added as Indicator.splash.SystemTrayIcon: triggers regular updates every interval ms. Update
by using SystemTrayIcon.setIcon( icon) and calling update().Splash: semi-transparent splash screen that is shown on all virtual desktops.RequirementsPython 3PyQt 6
Package: appletrun
APPLETRUNAppletRun runs applet code from given java file in a new window👉 Installationpip install appletrunif not working trypython -m pip install appletrunorpython3 -m pip install appletrun👉 Usageappletrun nameOfFile.java👉 IssuesIf you found any bugs or issue post herehttps://github.com/Royal-lobster/appletrun-python/issues