Saravanan666/pypi-org huggingface dataset:
Package: mac-screensaver
Installation$[sudo]pipinstallmac-screensaver$[sudo]npmi-gmac-screensaverExamples$screensaverstart
$screensaverpid1488$screensaverstop$screensavername
iLifeSlideshows
$screensavernames
Random
Flurry
Arabesque
WordoftheDay
iTunesArtwork
ComputerName
Shell
FloatingMessage
iLifeSlideshowswait while screensaver is active$screensaverstart
$screensaverwaitreadme42.com
Package: mac-speech-cache
Installation$[sudo]pipinstallmac-speech-cache$[sudo]npmi-gmac-speech-cacheHow it works~/Library/Caches/speech-cache/<hash>.aiffExamples# say "$@"$afplay"$(speech-cache"$@")"make cache for multiple files and voices:$find.-name"*.txt"|xargs-I{}speech-cache-f{}-vMilena
$find.-name"*.txt"|xargs-I{}speech-cache-f{}-vYurireadme42.com
Package: mac-speech-commands
Installation$[sudo]pipinstallmac-speech-commandsExamplesrussian minutes plural:importmac_speech_commandsimportplural_rudefru_minutes(value):return"%s%s"%(value.replace("1","одну"),plural_ru.ru(int(value),['минуту','минуты','минут']))text="... длится [[ru:minutes 10]]"functions={"ru:minutes":ru_minutes}mac_speech_commands.replace(text,functions)readme42.com
Package: macspoof
MacSpoofMacSpoof: A simple tool to spoof MAC ADDRESS on a Linux PC .Supported Commands:-To view Helpmacspoof -hTo view current status of MacSpoof.macspoof --statusTo turn ON MAC ADDRESS SPOOFING on Wifi and Ethernet Interfaces.macspoof --onTo Disable Proctection.macspoof --offNOTE: Don't use this program in high risky situations or for any sensitive purpose. DEVELOPER NOT RESPONSIBLE FOR ANY DAMAGES ARISING FROM USE OF THIS SOFTWARE.Quick InstallationTo Install fromPyPI:Run the following commands in Linux terminal / Windows powershell / command prompt to install:-pip install macspoofThen to get started , simply type :-macspoofContribute to macspoofFeel free to open issues if something breaks or for feature request.
Package: mac-tag
Installation$[sudo]pipinstallmac-tagRequirements$brewinstalltagExamples>>>mac_tag.update(["Red","Blue"],["path1","path2"])>>>mac_tag.add(["Green"],["path1","path2"])>>>mac_tag.get(["path1"]){'path1':['Blue','Red','Green']}>>>mac_tag.remove(["Red"],["path1","path2"])>>>mac_tag.remove(["*"],["path1","path2"])Linksgithub.com/jdberry/tagreadme42.com
Package: mac-tag-sync
Installation$[sudo]pipinstallmac-tag-sync$[sudo]npmi-gmac-tag-syncRequirements$brewinstalltagExamples$find~/git-typed-mindepth1-maxdepth1|xargstag-sync"repo"$find~/git-typed-name"*.py"-mindepth1-maxdepth1|xargstag-sync"py"Linksgithub.com/jdberry/tagreadme42.com
Package: mactemperatures
Mac TemperaturesThis is a simple program to obtain readings from thermal sensors on M1 Macs. I adapted the Objective-Ccodewritten by fermion-star as a C program and wrote Python bindings to make the code more flexible and easier to use.InstallpipinstallmactemperaturesUsage>>>frommactemperaturesimportget_thermal_readings>>>get_thermal_readings()
Package: mac-terminal-interpreter
Installation$[sudo]pipinstallmac-terminal-interpreter$[sudo]npmi-gmac-terminal-interpreterHow it worksscript.ext#!/usr/bin/env terminal...stdout, stderr logs:~/Library/Logs/<slug>/<date>/out.log
~/Library/Logs/<slug>/<date>/err.logConfig~/.bashrc:exportMAC_TERMINAL_CLOSE=0# doesn't close (default)exportMAC_TERMINAL_CLOSE=1# close if the shell exited cleanlyexportMAC_TERMINAL_CLOSE=2# close alwaysTerminal error sound:$defaultswrite.GlobalPreferencescom.apple.sound.beep.sound/System/Library/Sounds/Basso.aiffreadme42.com
Package: mac-to-ip
MAC to IPFind ip addresses with known MAC addressesFree software: MIT licenseDocumentation:https://mac-to-ip.readthedocs.io.Dependencies$sudoapt-getinstallnet-tools$sudoapt-getinstallnmapUsage examplefrommac_to_ipimportmac_to_ipdevice_macs={"camera1":"00:A0:C9:14:C8:27","camera2":"00:A0:C9:14:C8:28","camera3":"00:A0:C9:14:C8:29"}print(mac_to_ip(device_macs))CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2021-02-17)First release on PyPI.
Package: mactop
mactopMactop is a tool like htop, but you can decide the data you want and decide the
layout. It is more like a Grafana for your macbook, but in terminal.It looks like this:InstallationpipinstallmactopUsagesudo mactopIt requiressudobecausepowermetricsrequiressudo, you can runmactopwithoutsudobut some metrics will be missing.For M1 Macbook users, please run:sudo mactop -t m1.xmlWhat is-there? It's for "theme"! And you can have your own theme!Design Your Own MactopWe use HTML + CSS style to setup the layout.You can useidorclassto select the element, like this:<Mactop><layout><Horizontalid="row-1"><SensorsPanel></SensorsPanel></Horizontal></layout><style>#row-1{color:red;}</style></Mactop>Save your content to a file, for example,my-theme.xml, then runmactopwithmactop -t my-theme.xml.Components do not support inline-css, but you can set attributes on components.Common attributes that every components support:id;classorclasses, separated by space;refresh_interval: set this will overwrite command line arguments--refresh-intervalfor that component.For component's supported attributes and component's name, please refer tomactop/panels/__init__.pyand check the source code. Please bare with me, it
is messy for now, I am working on documentations. If you have any questions,
feel free to open an issue.For examples of layouts, you can refermactop/themes/directory.If you made some beautiful layout, please send it to me! By open a PR or issue,
I can merge it into this repo, thanks.DebugMactop comes with verbose log support.-vmeans enableinfolog, and morevmeans more logs, max-vvv.mactop-vvv-lmactop.logThen you can open another terminaltail -f mactop.logto see the logs.Mactop usepowermetricsto get metrics from your mactop,powermetricsis
different on different Macbooks. If you met some issue, better submit apowermetricssample in the issue, thanks.Use this command (add--debug), Mactop will write json formatted powermetrics
file on your current$(PWD)/debug_json. (If you decide to paste it, only one
sample (one file) is enough).$mactop-vvv-lmactop.log--debug
$lsdebug_json
mactop_debug_20231206_16:34:28.jsonmactop_debug_20231206_16:41:55.jsonmactop_debug_20231206_16:46:21.json
mactop_debug_20231206_16:34:29.jsonmactop_debug_20231206_16:44:46.jsonDevelopmentThis project usepoetryto manage dependencies.Clone this project and make sure you have poetry.pipinstallpoetry
gitclonegit@github.com:laixintao/mactop.gitThen install dependencies:poetryinstallYou can then make changes, and test withpoetry run mactop.
Package: macuitest
MacUITestA simple framework that helps to create functional and UI tests against almost any macOS application.Created to help testers to automate their routine tasks with ease and help me with structuring my experience;I'll be glad to receive suggestions on evolution of the project!TipsAllow Accessibility access in a Security&Privacy pane of System Preferences;You might be asked to allow various access rights anyway, those are new macOS restrictions you cannot easily avoid from Python, just allow them;When calling ObjC mouse wrapper a Python Launcher will show up in Dock. To avoid this behavior, you need to addLSUIElement-string "1"to a Python.app property list. Mine was located easily by runningbrew --prefix python3. It'll be under Frameworks -> Python.framework -> Resources;Get UI Browser app, it helps to locate AppleScript locators of the elements on your screen, very helpful;Table of ContentsInstallationFeaturesExamplesInstallationInstall a modern Python version (at least 3.6):brew install python3If OCR capabilities required, install Tesseract:brew install tesseractUpdate pip's setup tools:pip3 install --upgrade pip setuptools wheelInstall the package:pip3 install macuitestand you should be ready to goFeaturesMany of useful operations on macOS are introduced in amacuitest.lib.operating_systempackage. Amacosmodule inside the package will allow you to manipulate files, processes, change some system settings, etc.;Anapplicationmodule insidemacuitest.lib.appsmay describe almost any GUI macOS app. Creating an instance of which will allow you to perform launch/quit operations, read some of its attributes, have basic control over its main window, etc.;applescript_wrappermodule undermacuitest.lib.applescript_liballows to run some AppleScript commands;And last but not least, you can describe most if not every element of an application usingapplescript_element,native_elementandui_elementmodules insidemacuitest.lib.elements. They allow working with AppleScript, PyObjC translated (Native) and UI (built on screenshots) elements retrospectively.Examplesfrom macuitest.lib.apps.application import Application
from macuitest.lib.elements.applescript_element import ASElement

test_app = 'Calculator'
calculator = Application(test_app)

button_one = ASElement('button "1" of group 2 of window 1', process=test_app)
button_zero = ASElement('button "0" of group 2 of window 1', process=test_app)
input_field = ASElement('static text 1 of group 1 of window 1', process=test_app)

calculator.launch()
button_one.click_mouse()
button_zero.click_mouse()
button_one.click_mouse()
assert input_field.text == '101'  # Hopefully you get 101 there :)
Package: macumba
# macumbaPython bindings for Juju 1.x and 2.x# Usage## macumba-shellRunningmacumba-shellwill allow you to work with the api directly.To get help with the library run` >>> help(j) `To deploy a charm` >>>j.deploy('mysql','mysql') `# AuthorsAdam Stokes <adam.stokes@ubuntu.com>Mike McCracken <mike.mccracken@canonical.com># Copyright2014-2016 Canonical, Ltd.# LicenseThis program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
Package: macusers
macusersGet details on macOS user accounts.>>>importmacusers# get the logged in user details.>>>user=macusers.primary()# get the logged in user's username.>>>user.username'bryanheinz'# get logged in user's home folder as a `pathlib` object.>>>user.homePosixPath('/Users/bryanh')# get a list of non-system user accounts.>>>foruserinmacusers.users(False):print(user.username)bryanheinzmorrismoss# get a list of admin accounts.>>>foradmininmacusers.admins(False):print(admin.username)bryanheinz# check if the user has FileVault access. NOTE: requires admin.>>>macusers.primary().fv_access()True# check if the user is an APFS volume owner.>>>macusers.primary().apfs_owner()True# check if the user has a secure token.>>>macusers.primary().secure_token_status()TrueThis module is used to get the current or last (if the system currently doesn't have any logged in users) logged in console user on macOS instead of the user running the script/program.This module now contains the following User properties:username        : The user's usernamereal_name       : Full nameuid             : The user's IDgid             : Primary group IDguid            : Generated user ID - used by APFShome            : Home foldershell           : Default shelladmin           : If the user is an adminssh_access      : If the user has SSH accessvolume_owner    : If the user is an APFS volume ownersecure_token    : If the user has a secure tokencreated         : Epoch time when the user was createdpassword_updated: Epoch time when the user's password was last changedThese properties can be accessed viaUser.PROPERTYe.g.macusers.primary().admin.InstallingYou can install macusers using pip. macusers has been tested with Python 3.7 and 3.9.python3 -m pip install macusers
Package: macutil
macutilMAC Address brute forcing tool, used to bypass MAC based filteringNetwork Access Control solutions are a simple idea, 802.1X cert based
authentication, great! works like a charm. However, businesses are complex
beasts and not all systems on that network support 802.1X and/or cert based
authenticaiton.In this situation most look to simple MAC authentication to handle the
exceptions.So if lets say your IP phones are on the same network, if we can find the
correct MAC address we can essential spoof that address and access the network.This utility was designed for exactly this, MAC address manipulation and brute
forcing.
Package: macvendor
FeaturesValidate MAC Address / OUI (patterns are bellow)Get the manufacture of af a single or multiple MAC address/OUIImport it in your script/program or use it as CLI programpython-macvendorInstallationpip install macvendorBasic UsageAs CLI program$ macvendor.py 30:8d:99:15:c8:9A  00:01:42MacVendor30:8d:99:15:c8:9AHewlett Packard00-01-52-55-33-34Chromatek Inc.00:01:42Cisco Systems, IncAs libraryfrommacvendorimportgetVendorprint(getVendor("30:8d:99:15:c8:9A"))['30:8d:99:15:c8:9A', 'Hewlett Packard']frommacvendorimportgetVendorListprint(getVendorList(["30:8d:99:15:c8:9A","00:01:42","00-01-52-55-33-34"])){'30:8d:99:15:c8:9A': 'Hewlett Packard', '00:01:42': 'Cisco Systems, Inc', '00-01-52-55-33-34': 'Chromatek Inc.'}3d party DependenciesUsage as libraryNo DependenciesUsage in command lineTabulate 0.8.6MAC / OUI accepted formatsnote: all patternes are case insensetiveXX:XX:XX:XX:XX:XXXX-XX-XX-XX-XX-XXXX.XX.XX.XX.XX.XXXXXXXXXXXXXXXX:XX:XX:FF:FE:XX:XX:XXXX-XX-XX-FF-FE-XX-XX-XXXX.XX.XX.FF.FE.XX.XX.XXXXX:XXX:XXX:XXXXXX-XXX-XXX-XXXXXX.XXX.XXX.XXXXXXX:XXFF:FEXX:XXXXXXXX-XXFF-FEXX-XXXXXXXX.XXFF.FEXX.XXXXXXXXXXFFFEXXXXXXXXX:XXX:XXX:XXXXXX-XXX-XXX-XXXXXX.XXX.XXX.XXXXXXX:XXFF:FEXX:XXXXXXXX-XXFF-FEXX-XXXXXXXX.XXFF.FEXX.XXXXVersion History1.0.12  : Refactoring command line arguments and options.1.0.11 : Initial PyPI release.
Package: mac-vendor-lookup
Mac Vendor LookupThis library provides an easy way to get vendor information from a MAC address. It contains a local copy of the IEEE's
OUI prefix list. It has an asynchronous interface using Python 3's asyncio as well as a regular synchronous interface
for old-school usage.Installationpip install mac-vendor-lookupBasic Usagefrommac_vendor_lookupimportMacLookupprint(MacLookup().lookup("00:80:41:12:FE"))Output:VEB KOMBINAT ROBOTRONUpdate the vendor listThe library contains a list of MAC prefixes obtained at build-time. If you need up-to-date information, you can
download a fresh copy of the list directly from IEEE withMacLookup.update_vendorsorAsyncMacLookup.update_vendors:frommac_vendor_lookupimportMacLookupmac=MacLookup()mac.update_vendors()# <- This can take a few seconds for the downloaddeffind_mac(mac_address):print(mac.lookup(mac_address))Vendor list custom location or pathThe library stores and looks for the list of MAC prefixes in a group predefined defaults paths. If a custom
directory is required, then override the class variablecache_pathofclass BaseMacLookup(...)from it default
location of:os.path.expanduser('~/.cache/mac-vendors.txt')to your prefered location.frommac_vendor_lookupimportMacLookup,BaseMacLookupBaseMacLookup.cache_path="/relative/or/absolute/path/to/the/prefered/storage/location"mac=MacLookup()mac.update_vendors()# <- This can take a few seconds for the download and it will be stored in the new pathdeffind_mac(mac_address):print(mac.lookup(mac_address))Async InterfaceThere is also an asynchronous interface available:frommac_vendor_lookupimportAsyncMacLookupasyncdefmain():mac=AsyncMacLookup()print(awaitmac.lookup("98:ED:5C:FF:EE:01"))Output:Tesla Motors, IncCommand line interfaceThis library provides a rudimentary command line interface:$mac_vendor_lookup50-D3-7F-00-01-00
YuFlyMiklyWayScienceandTechnologyCo.,Ltd.
$python3-mmac_vendor_lookup00:26:12:12:FE
SpaceExplorationTechnologies
Package: mac-vendors
mac_vendorsLibrary created in order to facilitate the obtaining of manufacturers through MAC ADDRESS.Description.The package mac_vendors is used to:Vendor:get_by_singleget_by_tupleget_by_fileApi_vendors:get_infoInstallationUse the package managerpipto install package_namepipinstallmac-vendorsUsageGet information from a single macfrommac.vendorimportVendorsexample=Vendors()example.get_by_single('78:30:3b')print(example.response)Get the information through a fileThe file must have one mac per linefrommac.vendorimportVendorsexample=Vendors()example.get_by_file('DIR/FILE')print(example.response)Get the information through a tuplefrommac.vendorimportVendorsmacs=('78:30:3b','00:19:46')example=Vendors()example.get_by_tuple(*macs)print(example.response)ExportTo excelfrommac.vendorimportVendorsexample=Vendors()example.get_by_single('78:30:3b')example.to_excel(path='DIR',file_name='sheet_name')To CSVfrommac.vendorimportVendorsexample=Vendors()example.get_by_single('78:30:3b')example.to_csv(path='DIR',file_name='sheet_name')To txtfrommac.vendorimportVendorsexample=Vendors()example.get_by_single('78:30:3b')example.to_txt(path='DIR',file_name='sheet_name')AuthorEdgar ReisLicenseMIT
Package: mac-vlc
Installation$[sudo]pipinstallmac-vlc$[sudo]npmi-gmac-vlcExamples$vlcopen"path/to/pron.avi"$vlcpause
$vlcplay
$vlcplaying1volume$vlcvolume42$vlcvolume42fullscreen$vlcfullscreen-enter
$vlcfullscreen-detect1$vlcfullscreen-exitfrontmost (1or0)$vlcfrontmost0VLC.appprocess$vlcpid5726$vlckillreadme42.com
Package: mac-voice-assistant
Mac Voice AssistantThis is a prototype software package which performs IO operations in the Host app via voice commandsDependenciesRun the following commands in your project terminal in the same order before installing Mac Voice Assistant1. BrewRun this if you do not have brew installed already$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"2. Command Line Developer Tools - XCode (Mac Users)Please ensure Xcode packages are up-to-date. Try running$ sudo xcodebuild -license$ xcodebuild -runFirstLaunch3. Portaudio$ brew install portaudio4. PyAudio$ pip3 install pyaudioIf Pyaudio could not be installed with the default pip install command, try the below code:$ pip install --global-option='build_ext' --global-option='-I/usr/local/include' --global-option='-L/usr/local/lib' pyaudioRefer tothis linkif you're still having trouble installing PyAudio5.FinallyMac Voice Assistant$ pip install mac_voice_assistantDebug:If you run into SSL certification error, search forCertificates.commandin spotlight and open the file.
It should install the necessary certificatesIf voice is crackling or robotic, it is because the default voice might not be available on your local machine.
Follow the steps in the below link to add voices to your Mac, or change to one you have on your system already.
Later Update self.default_voice with the desired voice.idhttps://support.apple.com/en-gb/guide/mac-help/mchlp2290/mac#:~:text=Add%20a%20new%20voice,may%20need%20to%20scroll%20down.)There are a few known issues with NSSS.py and pysstx3.py on macOS Ventura.
Until we receive an update with those fixes, below is a temporary workaround for the errors in init stage.In pyttsx3/drivers/nsss.py:def _toVoice(self, attr) method:
    Replace:
         return Voice(attr['VoiceIdentifier'], attr['VoiceName'],
            [lang], attr['VoiceGender'],
            attr['VoiceAge'])
    With:
        return Voice(attr.get('VoiceIdentifier'), attr.get('VoiceName'),
            [attr.get('VoiceLocaleIdentifier', attr.get('VoiceLanguage'))], attr.get('VoiceGender'),
            attr.get('VoiceAge'))class NSSpeechDriver(NSObject):
    Replace:
        self = super(NSSpeechDriver, self).init()
    With:
        self = objc.super(NSSpeechDriver, self).init()If the downloader script is broken. As a temporal workaround can manually download the punkt tokenizer from here and
then place the unzipped folder in the corresponding location.
The default folders for each OS are:Windows:C:\nltk_data\tokenizersOSX:/usr/local/share/nltk_data/tokenizersUnix:/usr/share/nltk_data/tokenizers
Package: macwifi
macwifiMacwifi is a Python module that helps you to manage the WiFi on macOS.Installationpip install macwifiExampleConnect to a WiFi network:importmacwifimacwifi.connect("MyWiFi","password")Done!UsageList all available WiFi networks.list()Get the information about the connected WiFi.get_wifi_info()Get the SSID of the connected WiFi.get_ssid()Get the signal strength of the connected WiFi.get_rssi()Connect to a WiFi network.connect(ssid, password)Turn on the WiFi.turn_on()Turn off the WiFi.turn_off()
Package: macwinnie-pyhelpers
Python HelpersThis repository is a pyhton module to ease daily coding.VersioningTheSemantic versioningis used for this package.buildconfig.jsonThis JSON file holds the last built version of the Python package. If the minor version number is changed, the patch version has to be set to-1manually, so the next build by GitHub workflow will result in patch versionx.y.0.DocumentationThedocumentation of this projectis published as GitHub page.LicenseThis project is published unterAGPL-3.0-or-laterlicense.ContributingPlease readCONTRIBUTING.mdfor details on our code of conduct, and the process for submitting pull requests to us.
Package: mac-youtube
Installation$[sudo]pipinstallmac-youtubeFeaturesplay(),pause(),playing(),urls()works only in MacOSGoogle Chrome.appExamples>>>importmac_youtube>>>mac_youtube.urls()['https://www.youtube.com/watch?v=cvaIgq5j2Q8','https://www.youtube.com/watch?v=YrhYhI3L32c']>>>mac_youtube.play()>>>mac_youtube.playing()['https://www.youtube.com/watch?v=cvaIgq5j2Q8']>>>mac_youtube.pause()info>>>info=mac_youtube.info("cvaIgq5j2Q8")>>>"%s.%s"%(info["title"],info["ext"])'Nightcore - Angel With A Shotgun.webm'readme42.com
Package: mad8-pandas
mad8-pandasloading mad8 output with pandasimport pand8
df = pand8.read("TWISS_CL_T20.txt") # For example
# pandas stuff 😇

# Other bits...
# Fixing strangeness:
assert df.iloc[0].E == 0.0 # Wrong and annoying.
df = pand8.fix_initial_row_energy(df)
assert df.iloc[0].E != 0. # No longer wrong or annoying.


# Adding a few extra useful columns
import matplotlib.pyplot as plt
df = pand8.append_beam_size_columns(df, emitnx=1.4e-6, emitny=1.4e-6, espread_norm=1e-4)

df = pand8.append_twiss_gamma(df)

df.plot("SUML", "SIGMAX")
df.plot("SUML", "GAMX")

plt.show()
Package: madaf
A superfast key-value database in development. It works like a dictionary, except everything gets stored to disk and the database size can vastly exceed system memory. You can think of madaf as a faster and more efficent shelve package.frommadafimportMadafdb=Madaf("/tmp/mydb")db["some_key"]="some_value"db["blah_blah"]={"hello":"world","foo":True}print(db["some_key"])print(db["blah_blah"])
Package: madai
madaiCompute difference between two corpus by using chi2.
Implementation is based onMeasures for Corpus Similarity and Homogeneity.I am not fully sure if this implementation is perfectly follow this paper.
Feel free to make issues to point out some problems if you find.Installationpip install madaiUsagemadai implements two ways of computing similarity between two corpus, chi2 and spearman.
Use spearman when two corpus are different in size.Two target corpus need to be text files, each line containing one document/sentence.madai chi2 /path/to/corpus/a /path/to/corpus/b

# or

madai spearman /path/to/corpus/a /path/to/corpus/bTo view parameters, run,madai --help
Package: madan
madanMadan is an end-to-end open source platform for math,machine learning,Computer Vision, and Natural Language Processing. It has a comprehensive, flexible ecosystem of tools, libraries, and community resources that lets researchers push the state-of-the-art in AI and developers easily build and deploy AI-powered applications.Table of content1.Math2.Machine learning3.Computer Vision5.Natural Language ProcessingInstallTo install the current release$pipinstallmadanTo update madan to the latest version, add --upgrade flag to the above commands.