Saravanan666/pypi-org huggingface dataset:
Package: getalbum
Get album track list from SpotifyUsageusage: getalbum [-h] [--artist ARTIST] [--spotify-id SPOTIFY_ID]
                [--spotify-secret SPOTIFY_SECRET]
                album

positional arguments:
  album                 Specify album name

optional arguments:
  -h, --help            show this help message and exit
  --artist ARTIST       Specify artist name
  --spotify-id SPOTIFY_ID
                        Spotify application client ID
  --spotify-secret SPOTIFY_SECRET
                        Spotify application client secretInstallationViapip:pip3 install getalbumAlternatively:Clone the repository,cd getalbumRunpython3 setup.py installorpip3 install-e
Package: get-all-files
READ METhis is a very simple package which is basically a wrapper around glob; it simply gets all the files with extension matching a list of extensions in a given
directory. I found that I was including functionality like this in so many other projects I might as well just make
it a package. Plus I wanted to play with poetry.installpipinstallget_all_filesExamplesget all jpg files in home directoryfromget_all_filesimportget_all_filesfrompathlibimportPathhome_dir=Path('~').expanduser()jpg_files=get_all_files(home_dir,'jpg')get all jpg AND png files in home directoryfromget_all_filesimportget_all_filesfrompathlibimportPathhome_dir=Path('~').expanduser()jpg_files=get_all_files(home_dir,['jpg','png'])get all jpg files starting with 'a' in home directoryfromget_all_filesimportget_all_filesfrompathlibimportPathhome_dir=Path('~').expanduser()jpg_files=get_all_files(home_dir,'jpg',file_name='a*')get absolute file paths instead of file namesfromget_all_filesimportget_all_filesfrompathlibimportPathhome_dir=Path('~').expanduser()jpg_files=get_all_files(home_dir,['jpg','png'],return_absolute_filepath=True)Loop over multiple directoriesThis package is not recursive - if you want to process multiple directories you have to do it yourself:fromget_all_filesimportget_all_filesfrompathlibimportPathimportoshome_dir=Path('~').expanduser()subfolders=[f.pathforfinos.scandir(home_dir)iff.is_dir()]extension='txt'# why notall_files=[]forfolderinsubfolders:files=get_all_files(folder,extension,return_absolute_filepath=True)all_files.extend(files)
Package: getallhistograms
This library is used to plot histograms for all columns at a time.
we just have to give one parameter which is our “dataframe”
for example,
your csv file name is “train.csv” ||
then your code will be ||
from getallhistograms import histograms ||
data=pd.read_csv(“train.csv”) ||
histograms(data) ||
we will get all histogramsChange Log0.0.2 (21/08/2020)First Release
Package: getaltbranches
getaltbranchesA lightweight library for getting branches from public REST APIhttps://rdb.altlinux.org/api/DescriptionThis library allows to get information to a console about binary branches (sisyphus, p10, p9) using the method/export/branch_binary_packages/{branch}.Getting StartedDependenciesThe utility runs under all OS including Linux.InstallingInstall this module with pip:pip install getaltbranchesExecuting programAfter installing, you have several features:get_branches_packages(first branch, second branch, architecture[optional])Get lists of binary packages of 2 branches or lists with a specific architecture.first_branch_unique_packages(first branch, second branch, architecture[optional])Makes a comparison of the received package lists (with specific architecture or not) and outputs JSON, which will display all packages that are in the 1st branch but not in the 2nd.second_branch_unique_packages(first branch, second branch, architecture[optional])Makes a comparison of the received package lists (with specific architecture or not) and outputs JSON, which will display all packages that are in the 2nd branch but not in the 1st.unique_version_release(first branch, second branch, architecture[optional])Makes a comparison of the received package lists (with specific architecture or not) and outputs JSON, which will display all packages whose "version-release" is more in the 1st than in the 2nd.LicenseThis project is licensed under the MIT License - see the LICENSE file for detailsAcknowledgmentsbasealt
Package: getanime
Project TitleThis project is for Japanese Anime lovers to easily download Animes without interuption e.g adsInstallationClone my project from the repogitclonehttps://github.com/devoply-dev/cmdanimecdcmdanimeDriver Installationopen cmd in Administrator mode and copy and paste the following:@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe"-NoProfile-InputFormatNone-ExecutionPolicyBypass-Command"[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))"&&SET"PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"For WindowsPowerShell Installation, open WindowsPowerShell in Administrator mode and paste the following:Set-ExecutionPolicyBypass-ScopeProcess-Force;[System.Net.ServicePointManager]::SecurityProtocol=[System.Net.ServicePointManager]::SecurityProtocol-bor3072;iex((New-ObjectSystem.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))Then you can use these commands to install the drivers:chocoinstallchromedriverAppendixHow to use the scriptjust follow the promptsmake sure to enter correct info on any promptread thru the information printed out after any promptAuthors@haxsysMIT LicenseCopyright (c) 2022 Elenasulu ArinzePermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Package: get-annotations
get-annotationsA backport of Python 3.10'sinspect.get_annotations()function.Installpip3 install -U get-annotationsUsagefromget_annotationsimportget_annotationsdeffoo(x:int)->str:...print(get_annotations(foo))# {'x': <class 'int'>, 'return': <class 'str'>}If your module usesfrom __future__ import annotations, you'll want to seteval_str=True, otherwiseget_annotationswill return strings:from__future__importannotationsimporttypingastdefbar(x:t.List[MyObject]):...classMyObject:passprint(get_annotations(bar))# {'x': 't.List[MyObject]'}print(get_annotations(bar,eval_str=True))# {'x': typing.List[__main__.MyObject]}Note that it doesnotwork with old-style forward ref annotations, such ast.List["MyObject"]:>>>fromtypingimportList>>>deffoo(a:int)->List["MyObject"]:......>>>classMyObject:......>>>print(get_annotations(foo,eval_str=True))# Note that 'MyObject' is returned as a string!{'a':<class'int'>, 'return': typing.List[ForwardRef('MyObject')]}>>>>>>print(get_annotations(foo,eval_str=False))# Identical{'a':<class'int'>, 'return': typing.List[ForwardRef('MyObject')]}If youreallydon't want to usefrom __future__ import annotationsfor some reason, you can surround an entire type annotation in quotes to forward ref it:>>>deffoo(a:int)->"List[MyObject]":......>>>print(get_annotations(foo,eval_str=True))# This works now{'a':<class'int'>, 'return': typing.List[__main__.MyObject]}>>>>>>print(get_annotations(foo,eval_str=False))# For comparison{'a':<class'int'>, 'return': 'List[MyObject]'}LicenseMITContactA library byShawn Presser. If you found it useful, please considerjoining my patreon!My Twitter DMs are always open; you shouldsend me one! It's the best way to reach me, and I'm always happy to hear from you.Twitter:@theshawwnPatreon:https://www.patreon.com/shawwnHN:sillysaurusxWebsite:shawwn.com
Package: getapt
getaptSee craigslist apartmentsInstallpip install getaptHow to use! show_apts -husage: show_apts [-h] region n

Show links to apartments on craigslist

positional arguments:
  region      craiglist region like `portland`
  n           show n listings

optional arguments:
  -h, --help  show this help message and exitExample! show_apts portland 10Showing 10 apartments in portland
==================================================
https://portland.craigslist.org/mlt/apa/d/gresham-spacious-bedroom-unit-in-gresham/7489169916.html
https://portland.craigslist.org/mlt/apa/d/gresham-spacious-bedroom-unit-in-gresham/7489169138.html
https://portland.craigslist.org/wsc/apa/d/portland-call-for-future-availability/7489168564.html
https://portland.craigslist.org/mlt/apa/d/portland-get-your-dream-apartment-come/7489168443.html
https://portland.craigslist.org/clk/apa/d/vancouver-looking-for-an-apartment-this/7489168297.html
https://portland.craigslist.org/clc/apa/d/clackamas-want-to-wake-up-to-nature/7489168192.html
https://portland.craigslist.org/mlt/apa/d/portland-pet-friendly-apartments-in/7489167947.html
https://portland.craigslist.org/clc/apa/d/west-linn-fitness-center-swimming-pool/7488321368.html
https://portland.craigslist.org/mlt/apa/d/portland-pet-friendly-one-bedroom-in/7489163662.html
https://portland.craigslist.org/mlt/apa/d/portland-oversized-closets-elevator/7489167324.html
Package: getargs
getargs is a Python module that implements a command line parser that Python
scripts can use to parse their command line arguments in sys.argv. It is
designed as a considerably more powerful and flexible alternative to the
standard getopt module. While supporting all features provided by getopt, it
also allows a command line option to take an arbitrary number of arguments and
have defaults, permits switches (options without arguments) and options with
arguments to be interleaved on the command line, allows the developer to specify
the maximum and minimum number of arguments an option can take and allows the
user to specify his oft-used options and arguments in a file.
Package: get-args
get_argsget args from command line, environment and configuration file.https://packaging.python.org/tutorials/packaging-projects/args definition:example.yamla public_ip_api:
    action: store
    nargs: +
    const:
    default:
    - http://www.myipaddress.com/
    - https://www.ipip.net/
    - http://20019.ip138.com/
    type: !!python/name:builtins.list
    choices:
    required:
    help: public http[s] api to get public ip
    metavar: API
    dest:

options:
    prog: ''
    usage: '%(prog)s [options]'
    description: 'ddns_client'
    epilog: 'generated by get_args.'
    add_help: ''
    allow_abbrev: true
Package: getargv
This module uses libgetargv to obtain binary string representations of the arguments of other processes on macOS.MotivationOn macOS you must use the KERN_PROCARGS2 sysctl to obtain other proc's args, however the returned representation is badly documented and a naive approach doesn't deal with leading empty args. libgetargv parses the results of the sysctl correctly, and this module provides Python bindings to libgetargv.InstallationInstall the module with pip by executing:$ pip install getargvUsageimportosimportgetargvgetargv.as_bytes(os.getpid())#=> b'arg0\x00arg1\x00'getargv.as_list(os.getpid())#=> [b'arg0',b'arg1']DevelopmentAfter checking out the repo, runpython setup.py build. Then runpython setup.py install. Then, runpython test.pyto run the tests. You can also runpython -i load.pyfor an interactive prompt that will allow you to experiment. Python code goes in the filesrc/getargv/__init__.py, C code goes in the filesrc/getargv/getargvmodule.c.To install this module onto your local machine, runpython setup.py build && python setup.py install. To release a new version, update the version number inpyproject.toml, and then runmake upload-production, which will create a git tag for the version, push git commits and the created tag, and push the.whlfile topypi.org.ContributingBug reports and pull requests are welcome on GitHub athttps://github.com/getargv/getargv.py.LicenseThe module is available as open source under the terms of theBSD 3-clause License.
Package: getarticle
getarticleDescriptiongetarticleis a package based on SciHub and Google Scholar that can download articles given DOI, website address or keywords.InstallUsingpipto install:# for latest version (developer)
pip install git+https://github.com/HTian1997/getarticle.git

# for last release (stable)
pip install getarticleFeatures & Usagegetarticlecan be imported in Python or used as command line.To use in command line:usage: getarticle [-h] [-i INPUT] [-o OUTPUT] [-sd SETDOWNLOAD]

getarticle CLI

optional arguments:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
                        article DOI or website
  -s SEARCH [SEARCH ...], --search SEARCH [SEARCH ...]
                        search keywords
  -o OUTPUT, --output OUTPUT
                        download direction
  -sd SETDIRECTION, --setdirection SETDIRECTION
                        set default download directionExample:getarticle -i 10.1126/science.abc7424 -o /Users/haotian/DesktopPlease change the download direction to your own. The download direction is the current direction in terminal by default. To change the default download direction, use-sdoption.Tip: If the DOI contains parentheses, add "" around the DOI.Example:getarticle -sd /Users/haotian/Downloads

# will download to /Users/haotian/Downloads folder
getarticle -i 10.1126/science.abc7424getarticlecan also download article of the current webpage (only supported for MacOS Safari).Example:# current Safari webpage: 
# https://www.nature.com/articles/s41467-020-16670-2

# download article of current webpage to default direction
getarticleTo use in Python:InitializationfromgetarticleimportGetArticlega=GetArticle()Download a single article given DOI or website address.ga.input_article("10.1126/science.abc7424")ga.download()Notes:Once downloaded, all stored articles will be cleared;Fordownloadfunction,directionargument is the current direction by default;Downloaded article is named as either "article title.pdf" if successfull or "year-month-day-hour-minute-second.pdf".Download multiple articles.ga.input_article("https://www.nature.com/articles/s41594-020-0468-7#article-info")ga.input_article("10.1038/s41893-020-0581-y")ga.download()Notes:Repeatedly usingarticlefunction can save multiple articles.getarticlewill not save & download duplicate articles;Download related articles given keywords. Keywords can be article names, research fields or author names.ga.search("Deep Dive into Machine Learning Models for Protein Engineering")ga.search("SARS, Computation",num_of_page=2)ga.search("Roberta Croce")ga.download()Notes:num_of_pageis the number of page in Google Scholar, 1 by default.Show currently stored articles / delete article by index.ga.cur_articles()ga.remove_article()LicenseMIT
Package: getarticle-dev
getarticleDescriptiongetarticleis a package based on SciHub and Google Scholar that can download articles given DOI, website address or keywords.InstallUsingpipto install:# for latest version (recommended)
pip install git+https://github.com/HTian1997/getarticle.git

# for last release
pip install getarticleFeatures & Usagegetarticlecan be imported in Python or used as command line.To use in command line:usage: getarticle [-h] [-i INPUT] [-o OUTPUT] [-sd SETDOWNLOAD]

getarticle CLI

optional arguments:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
                        article DOI or website
  -o OUTPUT, --output OUTPUT
                        download direction
  -sd SETDOWNLOAD, --setdownload SETDOWNLOAD
                        set default download directionExample:getarticle -i 10.1126/science.abc7424 -o /Users/haotian/DesktopThe download direction is the current direction in terminal by default. To change the default download direction, use-sdoption.Example:getarticle -sd /Users/haotian/Downloads

# will download to /Users/haotian/Downloads folder
getarticle -i 10.1126/science.abc7424getarticlecan also download article of the current webpage (only supported for MacOS Safari).Example:# current Safari webpage: 
# https://www.nature.com/articles/s41467-020-16670-2

# download article of current webpage to default direction
getarticleTo use in Python:InitializationfromgetarticleimportGetArticlega=GetArticle()Download a single article given DOI or website address.ga.input_article("10.1126/science.abc7424")ga.download()Notes:Once downloaded, all stored articles will be cleared;Fordownloadfunction,directionargument is the current direction by default;Downloaded article is named as either "article title.pdf" if successfull or "year-month-day-hour-minute-second.pdf".Download multiple articles.ga.input_article("https://www.nature.com/articles/s41594-020-0468-7#article-info")ga.input_article("10.1038/s41893-020-0581-y")ga.download()Notes:Repeatedly usingarticlefunction can save multiple articles.getarticlewill not save & download duplicate articles;Download related articles given keywords. Keywords can be article names, research fields or author names. (This feature is under development.)ga.search("Deep Dive into Machine Learning Models for Protein Engineering")ga.search("SARS, Computation",num_of_page=2)ga.search("Roberta Croce")ga.download()Notes:num_of_pageis the corresponding number of page in Google Scholar.num_of_pageis 1 by default.Show currently stored articles / delete article by index.ga.cur_articles()ga.remove_article()LicenseMIT
Package: get-a-shell
Table of ContentsGetAShellRequirementInstallationOptionsUsageExampleIssues managementGetAShellProject URL :https://github.com/EmilienPer/GetAShellGetAShell was created to be used for OSCP certification.
Get a shell code (bind/reverse) into different languagesRequirementGetAShell run on Python 2.7 can't work correctly without the following toolsInstallationsudo pip install get-a-shellOptionsOptionRequire for bindRequire for reverseDescriptiontypeXXThe type of shell (bind or reverse)languageXXThe language of shell--lhostXThe local host ip adress--lportXThe local port--rhostXThe remote host ip adress--rportXThe remote portUsageget_a_shell bind python --rport 10get_a_shell reverse ruby --lhost 10.10.10.10 --lport 20Issues managementFor contributions or suggestions, pleaseopen an Issueand clearly explain, using an example or a use case if appropriate.
Package: get-aws-secret
Get AWS SecretSimplify retrieval of secrets from AWS SecretsManager. Optionally auto-memoize secrets in environment variables to improve performance and reduce costs.We built this library inHacktto support local development of internal projects andpublic apps in our catalog. Learn more about other open-source libraries onlib.hackt.app.Runtime supportThis is the Python runtime library, compatible with Python3.6+. Currently there isn't support for other runtimes. A Javascript/nodejs version is planned, but unscheduled.Installation and UsageInstall with pip:pip install get-aws-secretfromget_aws_secretimportget_secretsecret_val=get_secret('MY_SECRET_DATA')Theget_secretmethod also accepts a secret ARN:secret_val=get_secret('arn:aws:secretsmanager:us-east-1:123456789012:secret:MY_SECRET_DATA')Auto-load JSON stringsSecrets with JSON-like strings can be automatically loaded by settingload_jsonargument toTrue. The default behavior isFalse(i.e. always returns a string, without attempting to load any JSON).fromget_aws_secretimportget_secret# MY_SECRET_JSON_DATA = '{"data": "foobar"}' (str)secret_val=get_secret('MY_SECRET_JSON_DATA',load_json=True)# Returns a dict, instead of str: {'data': 'foobar'}Ifload_json=Trueand the secret value isn't a JSON-compatible string, it returns the string without raising exceptions:fromget_aws_secretimportget_secret# MY_SECRET_PLAIN_DATA = 'just plain text' (str)secret_val=get_secret('MY_SECRET_PLAIN_DATA',load_json=True)# Returns a string: 'just plain text'MemoizationThe library can automatically set the secret as environment variable and retrieve from there in subsequent requests.fromget_aws_secretimportget_secretsecret_val=get_secret('MY_SECRET_DATA',memoize=True)In the first run, settingmemoize=Trueis equivalent to runningos.environ['MY_SECRET_DATA'] = secret_valafter retrieving the secret.In subsequent calls withmemoize=True, the function will findMY_SECRET_DATAinos.environand retrieve it locally . In other words, it won't hit the AWS endpoints (saves a few milliseconds and cents).It's possible to set the behavior ofmemoize=True(in fact, any otherget_valueargument) as the default for all requests without explicit argument:fromget_aws_secretimportget_secret_fix_argsget_secret=get_secret_fix_args(memoize=True)secret_val=get_secret('MY_SECRET_DATA')Customboto3.clientOptionally, set a customboto3.clientwith:importboto3fromget_aws_secretimportget_secret_fix_argsclient=boto3.client('secretsmanager',region_name='my-region-1')get_secret=get_secret_fix_args(client=client)secret_val=get_secret('MY_SECRET_DATA')LicenseThis library is licensed underApache 2.0.Contributor guidePlease check out guidelines in therepository wiki.AcknowledgementsPublished & supported byHackt AppLogos provided byClearbit
Package: getbalance
Introductiongetbalance is a Python library that provides a wallet address balance at any day.
It was born from the tedious task of manually adding/subracting values to get the balance of an address at any given day.
All kudos to the Ethereum team of developers for the free APIs.SecurityBy default getbalance does not guard against quadratic blowup or billion laughs xml attacks. To guard against these install defusedxml.DocumentationThe documentation is at:https://krpbtc.cominstallation methodssupported coins/tokenshow to contribute
Package: getbestfontsize
Determines the appropriate font size for given text and constraintspip install getbestfontsizeTested against Windows 10 / Python 3.10 / AnacondaAutomated Font Size Calculation:The module automates the process of determining the appropriate font size for given text and constraints. This saves users from manually testing different font sizes and ensures a faster and more accurate selection.Flexibility with Constraints:Users can specify maximum width and height constraints for the text, allowing them to control how the text fits within the given space.Optimal Text Rendering:By providing the best-fitted font size, this module helps ensure that text appears legible and visually appealing, no matter the context or screen size.Efficient Caching:The lru_cache decorator helps optimize the loading of fonts by caching previously loaded fonts, reducing the need to reload the same font multiple times during the same execution.Dynamic and Adaptive:The module can adapt to different font files and text content, making it suitable for a wide range of fonts and text strings.HashList# Example usage:fromgetbestfontsizeimportcalculate_text_sizetext="Hello, World!"fs=calculate_text_size(text,font_path=r"C:\Users\hansc\Downloads\CALIBRIB.TTF",max_width=None,max_height=100,startfont=10,)print(fs)