Saravanan666/pypi-org huggingface dataset:
Package: masterpass
MasterGenerates deterministic passwordsThis is inspired byspectre.appbut simpler.
This uses a sha256 hashed combination ofusername + password + serviceto generate the same password, thus eliminating the need to store,
maintain and back up other generated passwords.jpedro.github.io/masterhas the
browser experience.The used service name list is kept under the file~/.config/master/list.txt(or whateverMASTER_LISTpoints to)purely for autocompletion, which will be added later.Eventually, the idea is to create a simple browser extension that uses
the URL domain name as the service.Installpip install masterpassYes, yes. The package is calledmasterpassbut the binary is calledmaster. To be fixed after#2582is resolved.Usage$ master --help

NAME
    master -- Generates deterministic passwords for services

USAGE
    master NAME                 Gets the password for service NAME
    master -l, --list           Lists all stored services
    master -r, --remove NAME    Removes service NAME from the stored list
    master -v, --version        Shows the version
    master -h, --help           Shows this helpEnvironment variablesNameDefaultMASTER_LIST~/.config/master/list.txtMASTER_USERNAME(None) [1]MASTER_PASSWORD(None) [1]MASTER_SEPARATOR-MASTER_LENGTH6MASTER_CHUNKS6Using these default settings, it will generate a password that's 41
characters long. 6 chunks of 6 character long with 5 separators in
between.Note[1] If you don't set theMASTER_USERNAMEor theMASTER_PASSWORDyou
will be prompted for them.
Package: masterprograming
Master Programing is a PIP Package that enables people that arenâ€™t well to Build Software By Coding. Masterprograming.com provides all the Build Software for ABSOLUTELY FREE OF COST.It is a Package Created For Educational Purpose,MPHindi - For Learning PythonMPSimpleGui - Tkinter Calculator AppMPPnr - PNR Checker AppMPKeyboard - Onscreen Keyboard AppMPCal - Calculator To Add NumbersMPQuiz - Quiz AppMPSciCal - Scientific Calculator AppMPApp - Tkinter Login And Signup With DatabaseMPTodoApp - Todo list AppMPNotePad - NotePad AppMPBanking - Banking Softwarefrom masterprograming import *obj = Master()obj.MPSciCal()
Package: masterqa
MasterQAMasterQA combines SeleniumBase automation with manual verification to greatly improve the productivity and sanity of QA teams.(NOTE:MasterQA is now part of SeleniumBase!)Run the example test:pipinstallmasterqa

gitclonehttps://github.com/masterqa/MasterQA.gitcdMasterQA/examples

pytestmasterqa_test.py# (Default browser: Chrome)Follow theexampleto write your own tests:fromseleniumbaseimportMasterQAclassMasterQATests(MasterQA):deftest_xkcd(self):self.open("https://xkcd.com/1512/")foriinrange(4):self.click('a[rel="next"]')foriinrange(3):self.click('a[rel="prev"]')self.verify()self.open("https://xkcd.com/1520/")foriinrange(2):self.click('a[rel="next"]')self.verify("Can you find the moon?")self.click('a[rel="next"]')self.verify("Do the drones look safe?")self.open("https://seleniumbase.io/devices/")self.type("input#urlInput","seleniumbase.io/error_page\n")self.verify("Do you see Octocat in a Jedi knight robe?")self.open("https://xkcd.com/213/")foriinrange(5):self.click('a[rel="prev"]')self.verify("Does the page say 'Abnormal Expressions'?")You'll notice that tests are written based onSeleniumBase, with the key difference of using a different import:from masterqa import MasterQArather thanfrom seleniumbase import BaseCase. Now the test class will importMasterQAinstead ofBaseCase.To add a manual verification step, useself.verify()in the code after each part of the script that needs manual verification. If you want to include a custom question, add text inside that call (in quotes). Example:self.verify()self.verify("Can you find the moon?")MasterQA is powered bySeleniumBase, the most advanced open-source automation platform on thePlanet.
Package: master-sake
Sake is a way to easily design, share, build, and visualize workflowswith intricate interdependencies. Sake is self-documenting because the
instructions for building a project also serve as the documentation of
the project’s workflow. The first time it’s run, sake will build all
of the components of a project in an order that automatically satisfies
all dependencies. For all subsequent runs, sake will only rebuild the
parts of the project that depend on changed files. This cuts down on
unnecessary re-building and lets the user concentrate on their work
rather than memorizing the order in which commands have to be run.For more information and documentation, check out this project’s
website:http://tonyfischetti.github.io/sake/
Package: mastersign-datascience
High level helpers for data science in Python with Pandas.Installationpip install mastersign-datascienceorpython ./setup.py installPlotting on Cartographic MapsYou can use the library without further manual steps;
but if you want to use plotting functions which draw on a cartographic maps,
likescatter_map(), you must installBasemapyourself.
PyPI does not host a version ofBasemapwhich can easily be used as a dependency.
ThereforeBasemapis not listed as a dependency in this library.On Windows, you may install the Wheel
fromhttps://www.lfd.uci.edu/~gohlke/pythonlibs/#basemap.
Download the e.g.basemapâ€‘1.2.0â€‘cp36â€‘cp36mâ€‘win_amd64.whland then install it
withpip:pip install .\basemapâ€‘1.2.0â€‘cp36â€‘cp36mâ€‘win_amd64.whlOn Linux you may installBasemapwith your distributions package manager.
E.g. on Ubuntu you can useapt:sudo apt install python3-mpltoolkits.basemapDocumentationhttps://mastersign.github.io/mastersign-datascienceDemonstrationTake a look at the Jupyter Notebooksdemo-*.ipynbfor demonstration.
Package: master-slave
Python Henallux Project 2019Usage informations about master.py and slave.py classesClass MasterUsage:frommaster-slaveimportMastermaster=Master(address="",port=50000)# address = address to listen to (empty mean listenning on all addresses)# port = listening portmaster.start()Class SlaveUsage:frommaster-slaveimportSlaveslave=Slave(address="192.168.0.10",port=50000)# address = address of master# port = listening port of masterslave.start()
Package: master-ssh
IntroductionIt's a little tool that allows you to connect to multiple SSH tunnels at the same time and broadcast commands instantly.Installationpip install master-sshOr clone from Github:git clone https://github.com/JaanPorkon/master-ssh.git
cd master-ssh
python setup.py installUsageTo run the program you can feed credentials to it from URL or from a file. Source of the web page and file must be in CSV format:hostname,127.0.0.1,username,password
hostname2,127.0.0.2,username,passwordGetting credentials:master-ssh --cred-file /path/to/credentials.txtormaster-ssh --cred-url https://mydomain.tld/credentialsor if you wish to connect to specific servers:master-ssh --cred-url https://mydomain.tld/credentials --servers hostname,hostname2,...Connecting to servers:To send command to 1 server only use the following command pattern:#[hostname] [command]Examples:To see all available internal commands write:master-ssh$ #helpor just:master-ssh$ #If you wish to send your command to only 1 specific server, use the following command:master-ssh$ #hostname uname -aIf you wish to send commands to more than 1 specific server just separate them with commas like this:master-ssh$ #hostname,hostname2 uname -aIf you want to ignore specific servers from your server list, use the following command:master-ssh$ #ignore:hostname,hostname2 uname -aIf you wish to close the program, simply write exit:master-ssh$ exit
Package: mastertables
# Mastertables[![Website](https://img.shields.io/website-up-down-green-red/http/shields.io.svg?label=website&style=for-the-badge)](https://mastertables.athento.com)[![PyPI](https://img.shields.io/pypi/v/mastertables.svg?style=for-the-badge)](https://pypi.org/project/mastertables)[![PyPI - Status](https://img.shields.io/pypi/status/mastertables.svg?style=for-the-badge)](https://pypi.org/project/mastertables)[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/mastertables.svg?style=for-the-badge)](https://pypi.org/project/mastertables)A Python package to interact with [Mastertables](https://mastertables.athento.com).This package provides a very simple way of getting data from your mastertables through the public *Rest API*.## Installation### Install from PyPI (recommended)Just run the command below from the CLI:```shellpip install mastertables```To add the package to your local `requirements.txt` run:```shellpip freeze > requirements.txt```### Install from repoYou can install Mastertables from the Github repo:```shellpip install git+https://github.com/athento/mastertables```### Install from sourceAlternatively, you can even install it from the sources:```shellgit clone https://github.com/athento/mastertablescd mastertablespip install .```## Updating### Update from PyPI```shellpip install mastertables --upgrade```### Update from repo```shellpip install git+https://github.com/athento/mastertables --upgrade```### Update from source```shellcd /path/to/mastertables/repogit pullpip install . --upgrade```## API reference```python# modulefrom mastertables import mastertables# mastertables client instantiation# usage:#   mastertables.MasterTablesClient("<team_api_key>")mt = mastertables.MasterTablesClient("OAIV9839AF893H923ONWAN3IGNAWNAUNEGIU")# get vocabulary# usage:#   mastertables.MasterTablesClient.get_vocabulary("<vocabulary_uuid>" [, category="<category>"])# output:#   {u'foo': u'bar', u'asdf': u'qwer'}print(mt.get_vocabulary("1234abcd-12ab-34cd-56ef-12345678abcd"))# get vocabulary reverse (value:key, instead of key:value)# usage:#   mastertables.MasterTablesClient.get_vocabulary_reverse("<vocabulary_uuid>" [, category="<category>"])# output:#   {u'bar': u'foo', u'qwer': u'asdf'}print(mt.get_vocabulary_reverse("1234abcd-12ab-34cd-56ef-12345678abcd"))# get vocabulary values# usage:#   mastertables.MasterTablesClient.get_values("<vocabulary_uuid>")# output:#   [u'foo', u'asdf']print(mt.get_values("1234abcd-12ab-34cd-56ef-12345678abcd"))# get vocabulary entity value# usage:#   mastertables.MasterTablesClient.get_value("<vocabulary_uuid>", "<entity_key>" [, index=<index>])# output:#   u'bar'print(mt.get_value("1234abcd-12ab-34cd-56ef-12345678abcd", "foo", 0))```## Packaging and distributing[Click on this link](https://github.com/athento/mastertables/blob/master/PACKAGING.md) to read the manual on how to package and upload mastertables to PyPI.
Package: mastf-libscout
LibScoutWarning: This repository aims to provide an implementation of LibScout for Python3. For information about the original repository, visitreddr/LibScout.This is a work in progressSetup for Python CLIfromLibScout.cli.entry_pointsimportrun_from_comand_linerun_from_comand_line()Installation via PIP$pipinstallmastf-libscoutAn extensive description can be taken from the parent repositoryreddr/LibScout.# Download librariespycli.py-vvrobot-Rscripts/my-lib-repo./scripts/library-specs/google-libraries.json# Profile one librarypycli.py-vvvprofile-aandroid.jar-x./scripts/my-lib-repo/.../library.xml\--j2d-path./scripts/dex-tools/d2j_invoke.bat\./scripts/my-lib-repo/.../file.aar# Identify librariespycli.py-vvvmatch-aandroid.jar-pprofiles/Android/path/to/file.apkNote: Python generated library profiles contain.pylibv3and java generated profiles.libv3in their file names.!! They are not compatible to each other !!ExamplesManually profile a library: (minimum required actions)fromLibScout.pkgimportget_framework_ptfromLibScout.profile.cachesimportPickleCachefromLibScout.core.profilerimportLibProfiler# 1. Get framework package tree (from android.jar - we only need the# stubbed JAR file)tree=get_framework_pt("path/to/android.jar")cache=PickleCache(),# used to serialize the profile afterwards# 2. Create profiler instanceprofiler=LibProfiler(cache=cache,framework_pt=tree,jar2dex_path="/path/to/d2j_invoke.[bat|sh]",cleanup=True)# 3. profile libraryprofile=profile.extract_fingerprints("/path/to/library.xml","/path/to/file.[jar|aar|dex]")# 4. save profilecache.save_profile(profile,"/path/to/destination.pylibv3")Manually identify libraries:fromLibScout.pkgimportget_framework_ptfromLibScout.profile.cachesimportPickleCache,LazyPickleCachefromLibScout.core.matcherimportLibMatcher# 1. <Same as abve> Get framework package treetree=get_framework_pt("path/to/android.jar")# If you have way too much profiles, it is recommended# to use a LazyPickleCache() as it only stores the file# paths and imports the profiles if necessary.cache=PickleCache()orLazyPickleCache()# 2. Load compiled profilesforfile_pathin["paths to your profiles"]:cache.import_profile(file_path)# 3. Create matcher instancematcher=LibMatcher(cache=cache,fwpt=tree)# 4. Run LibMatcherstats=matcher.identify_libs("/path/to/file.apk")# 5. Inspect resultsstats.package_only_matches# dict[str, str]: only package names have matchedstats.matches# list[LibProfileMatch]: list of full/partially matched libsManually download SDK filesfromLibScout.core.robotimportLibRobot# 1. Create robot instancerobot=LibRobot(local_repo="/path/to/lib_repository/",skip_dev=True)# 2. Download all available versionsforfile_pathin["paths to JSON library specs"]:robot.run(file_path)Scientific PublicationsFor technical details and large-scale evaluation results, please refer to our publications:Reliable Third-Party Library Detection in Android and its Security Applications(CCS'16)Keep me Updated: An Empirical Study of Third-Party Library Updatability on Android(CCS'17)If you use LibScout in a scientific publication, we would appreciate citations using these Bibtex entries:[bib-ccs16][bib-ccs17]
Package: mastodonamnesia
!!! MastodonAmnesia has been renamed toFedinesiawhich is available on PyPI.org !!!!!! MastodonAmnesia no longer receives fixes or new features !!!Please update to FedinesiaUse the links below for information and to update:https://pypi.org/project/fedinesia/https://codeberg.org/MarvinsMastodonTools/fedinesia
Package: mastodon-autoreject
autorejecta tool to automatically reject follow requests for mastodon accountscriteria:account agewhether a bio has been setwhether an account is a botno profile picture setmin/max followers countmin/max follow countmin/max post countimportant to note: this tool will neveraccepta follow request. only reject based on these criteria.current working levelyou can define criteria and reject via the APIinstallingpython3 -m pip install mastodon-autorejecthere's the pypi pagedefining criteriawhen providing criteria to the functions that accept it, you provide a dict with the criteria to reject on.If you don't want to reject based on a certain criteria, simply exclude it from the dict.keyvalue typedescriptionmin_followsintegerreject accounts who have fewer than this number of followsmin_followersintegerreject accounts who have fewer than this number of followersmax_followsintegerreject accounts who have more than this number of followsmax_followersintegerreject accounts who have more than this number of followershas_biobooleanif True, reject accounts if they do not have a bio defined. If False, reject accounts thatdohave a bio defined.has_avatarbooleanif True, reject accounts if they have a default avatar. If False, reject accounts that have a custom avatar set.min_postsintegerreject accounts with fewer than this number of statuses/posts/toots/whatevermax_postsintegerreject accounts with more than this number of statuses/posts/toots/whatevermin_agedatetime.timedeltareject accounts that are younger than the given timedelta durationno_botsbooleanif True, rejects accounts if they have thebotflag set. If False, reject accounts that are not bots.here's an examplecriteria={"min_follows":10,"min_followers":10,"max_follows":100,"max_followers":100,"has_bio":True,"has_avatar":True,"min_posts":10,"max_posts":100,"min_age":timedelta(days=7),"no_bots":True}# masto is a logged in instance of Mastodon.py, see here: https://mastodonpy.readthedocs.io/en/stable/#module-mastodonmasto=...autoreject.reject_follows(masto,criteria)# will return a list of accounts that were rejected along with the reasons why
Package: mastodon-fetcher-haystack
🎾 MastodonFetcher Node for HaystackThis custom component for Haystack is designed to fetch the latest posts from a given Mastodon username and return the contents as a list of Haystack Documents.
This way, it can be used as a replacement for a retriever node in a pipeline.InstllationFor Haystack 2.0-Beta onwards:pipinstallmastodon-fetcher-haystackFor Haystack 1.xpipinstallmastodon-fetcher-haystack==0.0.1Usage in Haystack 2.0-Beta onwardsThe node expects a full Mastodon username as theusernameinput. E.g. 'tuana@sigmoid.social'.You can set the number of posts you want to retrieve by setting thelast_k_postsparameter while initializing the MastodonFetcher, or in therunmethod. This can be a maximum of 40.frommastodon_fetcher_haystack.mastodon_fetcherimportMastodonFetchermastodon_fetcher=MastodonFetcher()mastodon_fetcher.run(username="tuana@sigmoid.social")In a pipelinefromhaystackimportPipelinefrommastodon_fetcher_haystack.mastodon_fetcherimportMastodonFetcherfromhaystack.components.generatorsimportOpenAIGeneratorfromhaystack.components.buildersimportPromptBuilderprompt_builder=PromptBuilder(template='YOUR_PROMPT_TEMPLATE')llm=OpenAIGenerator(api_key'YOUR_OPENAI_API_KEY')pipe=Pipeline()pipe.add_component("fetcher",mastodon_fetcher)pipe.add_component("prompt_builder",prompt_builder)pipe.add_component("llm",llm)pipe.connect("fetcher.documents","prompt_builder.documents")pipe.connect("prompt_builder.prompt","llm.prompt")pipe.run(data={"fetcher":{"username":"tuana@sigmoid.social"}})Usage in Haystack 1.xThe node expects a full Mastodon username as thequeryinput. E.g. 'tuana@sigmoid.social'.You can set the number of posts you want to retrieve by setting thelast_k_postsparameter while initializing the MastodonFetcher, or in therunmethod. This can be a maximum of 40.frommastodon_fetcher_haystack.mastodon_fetcherimportMastodonFetchermastodon_fetcher=MastodonFetcher()mastodon_fetcher.run(query="tuana@sigmoid.social")In a pipelinefromhaystackimportPipelinefrommastodon_fetcher_haystack.mastodon_fetcherimportMastodonFetchermastodon_fetcher=MastodonFetcher(last_k_posts=15)prompt_node=PromptNode(default_prompt_template="YOUR_PROMPT_TEMPLATE",model_name_or_path="text-davinci-003",api_key="YOUR_API_KEY")pipeline=Pipeline()pipeline.add_node(component=mastodon_fetcher,name="MastodonFetcher",inputs=["Query"])pipeline.add_nide(component=prompt_node,name="PromptNode",inputs=["MastodonFetcher"])pipeline.run(query="tuana@sigmoid.social")
Package: mastodon-social-graph
mastodon-social-graphMastodon social graph with an SQL backend, in-memory cache, and built-in, on-demand web scraper.InstallationYou can install the library and all its dependencies usingpip install mastodon-social-graph.Getting started1) Register your application to get an access tokenLog in to the Mastodon instance you would like the graph to work with and register a new application in the Preferences / Development menu.Alternatively, you can useMastodon.pyto create an application. You can starthere.2) Create a Mastodon (Mastodon.py) instanceYou can create aMastodoninstance like this:frommastodonimportMastodonmastodon_app=Mastodon(access_token="<your-application's-acces-token>",api_base_url="<mastodon-server-url>",# E.g. https://mastodon.socialratelimit_method="wait",# Wait when you hit the rate limit.)For other options, seeMastodon.py'sdocumentation.3) Create the graphIf you already havemastodon_app-- created in the previous step -- in scope, you can create the graph like this:frommastodon_social_graphimportMastodonSocialGraphgraph=MastodonSocialGraph(mastodon_app)4) Load a node and its neighborsOnce you have thegraph, you can load the first node from Mastodon like this:account_name:str="mastodon"mastodon_account_node=graph.get_node_for_account_name(account_name)ifmastodon_account_nodeisNone:raiseValueError("Node not found.")# This call fetches neighbor nodes in the background if they are not stored already locally.# If the neighbors of the node are already in the database, no request will be sent to Mastodon.neighbors=mastodon_account_node.neighborsfornodeinneighbors:# `node.external_id` is the account handle, `node.name` is the Mastodon database ID (for technical reasons).print(f"{node.external_id}({node.name})")For configuration, utilities, and details, please see the code.NoticeUse this library and the fetched data responsibly.The Mastodon API is rate limited and paged. Certain methods (e.g. follower loading) of the graph -- and its build-in web scraper -- can result in a large number of requests towards the Mastodon instance. These methods can be quite slow, because by design the web scraper makes only 1 request at a time and it doesn't try to work around the imposed rate limit.DependenciesThe library is built ongraphscraperandMastodon.py, and under the hoodgraphscraperworks with an SQL (by default SQLite) database.DevelopmentUseblackfor code formatting andmypyfor static code analysis.ContributingContributions are welcome, but keep in mind this is a hobby project intended for light Mastodon social network analysis and discovery.License - MITThe library is open-sourced under the conditions of the MITlicense.
Package: mastodon-to-sqlite
mastodon-to-sqliteSave data from Mastodon to a SQLite database.Installfoo@bar:~$pipinstallmastodon-to-sqliteAuthenticationFirst you will need to create an application on your Mastodon server. You
can find that on your Mastodon serer.foo@bar:~$mastodon-to-sqliteauthMastodon domain: mastodon.socialCreate a new application here: https://mastodon.social/settings/applications/newThen navigate to newly created application and paste in the following:Your access token: xxxThis will write anauth.jsonfile to your current directory containing your
access token and Mastodon domain. Use-a other-file.jsonto save those
credentials to a different location.That-aoption is supported by all other commands.You can verify your authentication by runningmastodon-to-sqlite verify-auth.Retrieving Mastodon followersThefollowerscommand will retrieve all the details about your Mastodon
followers.foo@bar:~$mastodon-to-sqlitefollowersmastodon.dbRetrieving Mastodon followingsThefollowingscommand will retrieve all the details about your Mastodon
followings.foo@bar:~$mastodon-to-sqlitefollowingsmastodon.dbRetrieving Mastodon statusesThestatusescommand will retrieve all the details about your Mastodon
statuses.foo@bar:~$mastodon-to-sqlitestatusesmastodon.dbRetrieving Mastodon bookmarksThebookmarkscommand will retrieve all the details about your Mastodon
bookmarks.foo@bar:~$mastodon-to-sqlitebookmarksmastodon.dbRetrieving Mastodon favouritesThefavouritescommand will retrieve all the details about your Mastodon
favourites.foo@bar:~$mastodon-to-sqlitefavouritesmastodon.db
Package: mastojeppetto
mastojeppettoMastodon (and pleroma) python3 emoji downloaderBadgesinstallationfrom src:gitclonehttps://github.com/autoscatto/mastojeppettocdmastojeppetto
pythonsetup.pyinstallfrom pip:pip3installmastojeppettousagemastojeppetto [-h] [-p PATH] [-c CONCURRENCY] [--endpoint ENDPOINT]
              [-t] [-d] [-v] url

positional arguments:
  url                   Mastodon (or Pleroma) base url

optional arguments:
  -h, --help            show this help message and exit
  -p PATH, --path PATH  download destination [default: /tmp/${domainname}]
  -c CONCURRENCY, --concurrency CONCURRENCY
                        how many parallel download processes will start
                        [default: 4]
  --endpoint ENDPOINT   custom api emoji endpoint (usually works without
                        changes) [default: "/api/v1/custom_emojis"]
  -t, --text            generate also custom_emoji.txt [default: True]
  -d, --debug           be verbose [default: False]
  -v, --version         show program's version number and exit