Saravanan666/pypi-org huggingface dataset:
Package: gettup
GettUp======GettUp is a simple command line utility which lets you share and upload files to the [ge.tt](http://ge.tt) sharing service quickly and easily.## InstallationGettUp is distributed as a python package. Do the following to install```sudo pip install gettupORsudo easy_install gettupOR# download source and cd to itsudo python setup.py install```## Usage1. Make an account on [Ge.tt](http://ge.tt)2. Obtain an api key by [creating an app](http://ge.tt/developers/create).3. Run the application. The app will ask for your credentials the first the app is run.```$ gett file1.txtPlease enter your Ge.tt email: example@example.comPlease enter your Ge.tt password: verysecurepasswordPlease enter your API KEY: supersecretapikeyValidating credentials ...Credentials verified ...Constructing a new share ...Uploading file: README.mdSetting up a file name ...Uploading the file...Upload successful. Here's your url: http://ge.tt/6zkcEkB1/v/0----------------------------------------```## Examples`gett` displays a helpful help text when run with the `-h` flag.```$ gettusage: gett.py [-h] [-s share_id] [-t share_title] [-i share_id][-d share_id [share_id ...]] [-l] [-r file_url [file_url ...]][-q][files [files ...]]Upload files to ge.tt via the command line```Command Examples -```$ gett                            # show help$ gett file1 file2 file3          # upload files (in same share)$ gett *.py                       # linux globs (upload)$ gett *.py -s sharename          # upload file in the specific share$ gett *.py -s sharename -t title # gives the title to the new share$ gett --list                     # show list of shares$ gett -d share1 share2 share3    # deletes the shares$ gett -r url1 url2 url 3         # deletes the file url$ gett -q {etc}                   # quiet mode$ gett -i sharename               # get share info```To upload a file, use the -u flag. By default, `gett` will create a new share for uploading the file. Use the -s flag, alongwith a sharename to upload to an existing share```$ gett something.txtConstructing a new share ...Setting up a file name ...Uploading the file...Upload successful. Here's your url: http://ge.tt/1NcgabB1/v/0----------------------------------------$ gett something.txt -s 5d1ctaB1Setting up a file name ...Uploading the file...Upload successful. Here's your url: http://ge.tt/5d1ctaB1/v/1```To delete a share use the -d flag. To get more info about a share, use the -s flag accompanied by a sharename.```$ gett -d 1NcgabB1Destroying share ...1NcgabB1 share has been destroyed$ gett -r http://ge.tt/6zkcEkB1/v/0Deleting file ...File has been successfully destroyed```## UpgradeTo upgrade GettUp run the following command```sudo pip install -U gettup```## ThanksThanks to [gett-cli](https://bitbucket.org/mickael9/gett-cli) for inspiration, which is, at present, for Python 3 only.## LicenseGettup is released under the MIT license.
Package: get-twitter-shortened-url
get-twitter-shortened-url (t_co)t_cois…Get shortened link fromTwitter URL Shortener(t.co)Available on package & CLIInstall$pipinstallget-twitter-shortened-urlUsagefrom CLI$ t_co -h
usage: t_co [-h] [-k key path] [--CK consumer key] [--CS consumer key secret]
            [--AT accress token] [--AS access token secret] [-V]
            url [url ...]

Shortened link from Twitter URL Shortener(t.co)

positional arguments:
  url                   Urls you want to shorten.

optional arguments:
  -h, --help            show this help message and exit
  -k key path, --key_path key path
                        Key file path (default: ~/.twitter.key)
  --CK consumer key     Twitter consumer key.
  --CS consumer key secret
                        Twitter consumer key secret.
  --AT accress token    Twitter access token.
  --AS access token secret
                        Twitter access token secret.
  -V, --version         show program's version number and exit$cat~/.twitter.keyCONSUMER_KEY=xxxxxxxxxxxxxxxxxxxCONSUMER_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxACCESS_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxACCESS_TOKEN_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

$t_cohttps://google.co.jp'https://www.youtube.com/watch?v=-8OqFcLyA8o'https://google.co.jp=>https://t.co/cpMOvCJCDU
https://www.youtube.com/watch?v=-8OqFcLyA8o=>https://t.co/pTZgns1Fas

$t_co突うずるっ.com
突うずるっ.com=>https://t.co/5Z1CN94Hrbfrom packageimportt_coCK,CS,AT,AS='...','...','...','...'t=t_co.Converter(CK,CS,AT,AS)t.shorten(['https://google.co.jp'])# => [{ 'url':          'https://t.co/cpMOvCJCDU',#       'expanded_url': 'https://google.co.jp/',#       'display_url':  'google.co.jp',#       'original_url': 'https://google.co.jp' }]t.shorten(['https://google.co.jp','https://www.youtube.com/watch?v=-8OqFcLyA8o'])# => [{ 'url':          'https://t.co/cpMOvCJCDU',#       'expanded_url': 'https://google.co.jp/',#       'display_url':  'google.co.jp',#       'original_url': 'https://google.co.jp' },#     { 'url':          'https://t.co/pTZgns1Fas',#       'expanded_url': 'https://www.youtube.com/watch?v=-8OqFcLyA8o',#       'display_url':  'youtube.com/watch?v=-8OqFc…',#       'original_url': 'https://www.youtube.com/watch?v=-8OqFcLyA8o' }]TIPSset keys with dotfile for safefromos.pathimportexpanduser,joinimportosfromdotenvimportload_dotenvload_dotenv(join(expanduser("~"),'.twitter.key'))CK,CS,AT,AS=[os.environ.get(_)for_in('CONSUMER_KEY','CONSUMER_SECRET','ACCESS_TOKEN','ACCESS_TOKEN_SECRET')]or, set keys on Terminal$exportCONSUMER_KEY=xxxxxxxxxxxxxxxxxxx
$exportCONSUMER_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
$exportACCESS_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
$exportACCESS_TOKEN_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxDevelopmentlocal test$act-Pubuntu-latest=nektos/act-environments-ubuntu:18.04--secret-file~/.twitter.keyLISENCEMITAuthoreggplants (haruna)
Package: get-ua
get_uaOverviewget_uais a Python library for generating random user agents. It provides a simple interface to retrieve user agents based on different criteria such as browser, operating system, and device.InstallationYou can install the library using pip:pipinstallget-uaUsageimportget_ua# Create an instance of the user agent generatorua=get_ua.ua()# Generate a random user agentrandom_ua=ua.random()print("Random User Agent:",random_ua)# Get a random user agent for a specific browser, OS, and device typerandom_agent=ua.random(browser='Chrome',os='Windows',device='desktop')print("Random User Agent (filtered):",random_agent)# Generate a random user agent based on browserchrome_ua=ua.by_browser('Chrome')print("Chrome User Agent:",chrome_ua)# Generate a random user agent based on operating systemwindows_ua=ua.by_os('Windows')print("Windows User Agent:",windows_ua)# Generate a random user agent based on deviceiphone_ua=ua.by_device('iPhone')print("iPhone User Agent:",iphone_ua)# Get a list of user agents for a specific browserfirefox_agents=ua.list_by_browser('Firefox')print("Firefox User Agents:",firefox_agents)# Get a list of user agents for a specific operating systemlinux_agents=ua.list_by_os('Linux')print("Linux User Agents:",linux_agents)# Get a list of user agents for a specific devicetablet_agents=ua.list_by_device('Tablet')print("Tablet User Agents:",tablet_agents)# Get a list of all available user agentsall_agents=ua.list_all()print("All User Agents:",all_agents).random() Possible Filters:Browsers:"Chrome""Edge""Firefox""Internet Explorer""Safari"Device Types:"desktop""mobile"Operating Systems:"Android""iOS""macOS""Windows"
Package: getup
GetupProjectless Django setup tool. Getup combines functionality of manage.py and wsgi module. It allows one Django app to be used as a service.See Gitlab repository for app examples.Getup config commandRungetup/up.pyor add as package to virtual env. It will work everywhere there's a Django app with configuration instantiation.All settings can be set by configuration object or using environment variables or both. Configuration object is a Pydantic schema along with extension schemas. Seegetup/conf.pyfor complete set or accompanying example apps. This schema corresponds to usual Django settings.
Package: geturl
## geturl  - provide path. get url.
### A CLI tool to get a public link for any fileUses [filepicker.io](https://www.filepicker.io) to store the files. It’s a cool uploading tool that I’ve been using on my website and this is a hack on top of it.#### Use CasesYou need a quick way to send a file to someone. Instead of attaching it to an email or starting up your FTP server, use this to get a public URL.Another tool in your arsenal ofscp, yousendit, and flash drives for quickly exchanging files.#### UsageYou provide a path, it returns a URLgeturl path/to/fileIt also tries to usepbcopyon a mac,xselorxclipon Linux to put the url into your clipboard.<img src=”https://raw.github.com/uams/geturl/master/static/example.png”>#### Installationsudo curlhttps://raw.github.com/uams/geturl/master/geturl-o /usr/local/bin/geturl;
sudo chmod +x /usr/local/bin/geturlEnable Clipboard Access (Only necessary on Linux)sudo apt-get install xclip<img src=”https://raw.github.com/uams/geturl/master/static/install.png”>#### NotesIt uses Filepicker.io as a storage backend. (They have a 5000 file free limit so it shouldn’t be a problem)
Package: get-user-agent-pls
Get User Agent PlsThis Python package allows you to fetch the current user-agent strings for popular browsers. It uses web scraping to fetch the user-agent strings from the website useragentstring.com.How it worksThe package contains two main scripts:get_user_agent_pls_scraper.py: This script scrapes the user-agent strings for various browsers from useragentstring.com and saves them in a JSON file (user-agents.json). The browsers it fetches the user-agent strings for are Edge, Chrome, Firefox, Safari, and GoogleBot.get_user_agent_pls.py: This script fetches a user-agent string. If theUSER_AGENT_API_KEYenvironment variable is not set, it uses the locally saveduser-agents.jsonfile. If the file doesn't exist, it callsget_user_agent_pls_scraper.pyto fetch and save the latest user agents. If theUSER_AGENT_API_KEYenvironment variable is set, it uses the API to fetch the user-agent string.How to useInstall the package usingpip install get_user_agent_pls.Import thefetch_user_agentfunction from theget_user_agent_plsmodule.Call the function with the browser and operating system as arguments. The available options for the browser are "Edge", "Chrome", "Firefox", "Safari", and "GoogleBot". The operating system argument is currently not used. For example,fetch_user_agent("chrome", "windows").Example returned values:For Chrome: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.3"For Firefox: "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"For Safari: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Safari/605.1.15"For Edge: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.3 Edg/89.0.774.50"For GoogleBot: "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"DependenciesThe package requires the following Python libraries:requestsbeautifulsoup4These can be installed usingpip install -r requirements.txt.LicenseThis package is licensed under the MIT License. See theLICENSEfile for more details.Running the testsTo run the tests, navigate to the root directory of the project and run the following command:maketestThis will discover and run all the test cases in thetest_user_agent.pyfile. The unit tests create auser-agents.jsonfile if it does not exist before the tests run. If the file did not exist before the tests, it is removed after the tests complete.Here is an example of successful unit tests:$maketestpython-munittestdiscover
..
----------------------------------------------------------------------
Ran2testsin0.001s

OK
Package: get-useragents
GET-USERAGENTSThis library is used to make it easier for developers or users to get random user agentsInstallationYou can install get-useragents by running the following command:pip install get-useragentsOr you can download direct fromGithuband install it manually.Upgrade packagesYou can upgrade get-useragents by running the following command:pip install get-useragents --upgradeUsagefromget_useragentsimportuseragents# to see available devices, check: https://github.com/g4rzk/get_useragents#list-deviceua=useragents.Get_UA(device="chrome")# to get all user agents according to the limitall_ua=ua.GetUserAgents()# to get a random user agent from limitrandom_ua=ua.RandomUserAgents()print(random_ua)List DeviceList DeviceTotal User AgentApple500Chrome500Desktop500Facebook500iOS500iPhone500Linux500MiUi500Mozilla500Opera500Samsung500Xiaomi500Yandex500Mac OS500FunctionGet 100+ user agent from existing devicesGet a random user agent from all existing devicesList All Directory.get_useragents
├── AUTHORS
├── LICENSE
├── README.md
├── cache
│   └── dump
│       └── get_useragents.json
├── example
│   └── testing
│       └── ua.py
├── get_useragents
│   ├── data
│   │   └── get_useragents.json
│   ├── settings.py
│   └── useragents.py
├── setup.cfg
├── setup.py
└── ua.pyThis tree is to make it easier for you to see the files in all directories.Change LogVersion 1.6 and 1.7 2022/11/29 18:22Fix ErrorDone Test All FunctionBETAVersion 1.1 to 1.5 2022/11/28 22:01:49Fast Get User AgentsAdd New List DeviceSimple MethodNo Need Installed ModuleBETAVersion 0.8New list device user agentFixed Bug and Re-UploadVersion 0.7Using cloudscraperRe-uploadVersion 0.6Fix Index ErrorRe-uploadStatsLicenseThe MIT License (MIT). Please seeLicense Filefor more information.AuthorsYou can visitauthors page
Package: get-vat-eu
A utility that is able to get and parse EU EC VATs.DescriptionThis library parsers the elements returned by the VIES SOAP API of the
European Commission. The trader address field usually contains all the needed
information and needs to be separated into various elements such as the city,
postal code, address and house number, etc… This is what this library does.Documentationhttps://citycommerce.github.io/get-vat-euAPI examplesget-vat-eu has apublic API. This means for example that you can you easily get
all trader information like this:>> import get_vat_eu
>> print(get_vat_eu.pipeline('01561700293', 'IT'))
{'name': 'CITYCOMMERCE SRL', 'address': 'Viale Porta Adige 45', 'city': 'Rovigo', 'province': 'RO', 'post_code': '45100', 'vat_number': '01561700293', 'country_code': 'IT'}LicenseCopyright (c) 2019 CityCommerce srlPermission 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-version
Automatically use the latest “vX.X.X” Git tag as version in your Python package.It also supports getting the version from Python source distributions (sdist) or,
once your package is installed, viaimportlib.metadata.usageAdd the following intoyourpackage.py(or__init__.py):fromget_versionimportget_version__version__=get_version(__file__)delget_versioncontributingUseblack .to ensure proper code style. In order to not forget you can usepre-commitinstall.
Package: getversions
Get the versions of a package available in the repository via pip, and the installed
version for the current interpreter.You could usegetversionsin a deploy shell script to deploy the installed
version of a package if it is not already available in the repository.version=$(pygetversions-iemypkg)\&&echodeployingmypkg${version}\||echomypkg${version}alreadyinrepo,notdeployingInstallationpipinstallgetversionsUsageThere are a few ways to invoke themainfunction from the command line. You
can use the console script installed with the package, run the package with Python,
or run the main module with Python. In each case, pass arguments on the command line.Print Available and Installed VersionsUse the console script:pygetversionspackage_nameRun the package:python-mgetversionspackage_nameRun the main module:python-mgetversions.mainpackage_nameFor instance,pygetversionsblackwould produce output similar to*22.10.022.8.022.6.022.3.022.1.0whereblack 22.10.0is installed for the current Python interpreter.Print The Installed VersionPass the-ior--installed-onlyoption to only print the installed version
for the current interpreter.pygetversions-iblackwould produce output similar to22.10.0whereblack 22.10.0is installed for the current Python interpreter.Check Installed Version Available in RepositoryPass the-eor--exists-in-repooption to produce an exit code of 0 if the
installed version is not available in the repository, in which case you might want
to upload the installed version to the repository.pygetversions-eblackwould produce output similar to*22.10.022.8.022.6.022.3.022.1.0and an exit code of 1 ifblack 22.10.0is installed and available in the
repository.pygetversions-egetversionsmay produce output similar to0.0.20.0.1+0.0.3and an exit code of 0 ifgetversions 0.0.3is installed, but not available in
the repository.You could print just the installed version:pygetversions-iegetversionswhich would produce output similar to0.0.3and an exit code of 0 ifgetversions 0.0.3is installed, but not available in
the repository.
Package: get-video-len
Gets the duration, frame rate and total frames from a video file$pipinstallget-video-lenfrompprintimportpprintfromget_video_lenimportget_video_len_and_framesvideoinfos=get_video_len_and_frames(videofile=r"F:\convertedvideossocialnet\newvidxx2.mp4")pprint(videoinfos){'duration':139.83983983983984,'file_path':'F:\\convertedvideossocialnet\\newvidxx2.mp4','frame_rate':29.97,'total_frames':4191.0}
Package: get-video-length
get_video_lengthget_video_length gets the length of a videoFree software: MIT licenseDocumentation:https://get-video-length.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2022-09-30)First release on PyPI.
Package: get-video-properties
python-get-video-propertiesGet video propertiesInstallationpipinstall-Uget-video-propertiesUsagefromvideopropsimportget_video_propertiesprops=get_video_properties('movie.mp4')print(f'''Codec:{props['codec_name']}Resolution:{props['width']}×{props['height']}Aspect ratio:{props['display_aspect_ratio']}Frame rate:{props['avg_frame_rate']}''')Sample outputCodec: h264
Resolution: 1920×1080
Aspect ratio: 16:9
Frame rate: 25/1Usage (audio)fromvideopropsimportget_audio_propertiesprops=get_audio_properties('movie.mp4')print(f'''Codec:{props['codec_name']}Channels:{props['channels']}Sample rate:{props['sample_rate']}''')Sample outputCodec: opus
Channels: 2
Sample rate: 48000Command-line usagevideopropsmovie.mp4
audiopropsmovie.mp4
Package: getwallpapers
getwallpaper-dlLets you download wallpaper collection fromhttp://getwallpapers.com/⚙️ InstallationYou can install it fromPyPI💻 How to UseYou can run it as a module in a command line asgetwallpapersfollowed by anwallpaper collection url. It will generate a folder in the particular location that you are running from and downloads all the collection wallpapers into it.$ python getwallpapers <wallpaper-url>📑 Release History0.1.1First version - save all the wallpaper in a folder🚧🚀 ContributingFeel free to contribute with anything.⚖️ LicenseCopyright (c) 2020 Shikrishna Joisa.Distributed under the MIT license.SeeLICENSEfor more information.
Package: get-wayback-machine
get-wayback-machineFetch a URL via the latest Wayback Machine Snapshot.Why?Occasionally, you have a given URL that it is not online anymore. You may still access it's content via the Internet Archive'sWayback Machine.Installpipinstallget_wayback_machineUsageimportget_wayback_machineresponse=get_wayback_machine.get('https://en.wikipedia.org')ifresponse:print(response.status_code)The response is eitherNone(for fails) or aRequestsresponse. This module usesget-retriesinternally to fetch the data.Relatedhttps://github.com/hartator/wayback-machine-downloaderhttps://github.com/sangaline/wayback-machine-scraperhttps://github.com/jsvine/waybackpackLicenseMIT.
Package: getwebtitle
This is a function to get a website title.usage:Python3.5.2(v3.5.2:4def2a2901a5,Jun252016,22:18:55)[MSCv.190064bit(AMD64)]onwin32Type"help","copyright","credits"or"license"formoreinformation.>>>importgetwebtitle>>>getwebtitle.get_title('https://www.baidu.com')'百度一下，你就知道'>>>getwebtitle.get_title('https://www.weibo.com')'Sina Visitor System'>>>getwebtitle.get_title('https://news.sina.com.cn/')'新闻中心首页_新浪网'>>>
Package: getyourcf
getCFA simple exercise to retrieve the Italian Fiscal Code in python3.InstallationExecute the following (possibly in a virtual environment):gitclonegit@github.com:andreasala98/getYourCF.gitcdgetYourCF
sudopip3install-e.UsageCommand Line Usage:getcfand then follow instructionsInput file usage:getcf-i<path_to_file>The program automatically recongnizes a json from other file formats. Example input files can be foundhereandhereDocumentationNot ready yet, even though the docs website is up and runningContributePlease raise issues or contact me or Matteo for any major bugWork in progress... sometimes...
Package: getzeit
getzeit – Download DIE ZEIT newspaper in various formatsInstallThe minimal installation is done bypipinstallgetzeitwhich does not include bash/zsh tab completion. For the full installation, dopipinstallgetzeit[full]which additionally installs theargcompletepackage.Usage as standalone programSimply rungetzeitto download the current issue of DIE ZEIT.At the first call it will open a browser with a temporary profile to get the
session cookies from the login. You need to login with your credentials. The next
step of accepting the advertisement and tracking is not necessary. After closing
the browser the program will continue with the download of the specified issues.
At subsequent calls the stored cookies will be used. If needed the cookies can be
recreated with--recreate-cookie-jarat any time.Access the help of the program withgetzeit-hto obtain information about the optional arguments and the issue selection
procedure.Usage as python moduleimportgetzeitwithgetzeit.ZeitSession()assession:current_issue=session.get_issues()[0]session.download_issue(current_issue)Dependenciespython>=3.8withrequests,browser_cookie3and optionallyargcompletefor bash/zsh tab completion.CopyrightCopyright 2021, 2023 mahlzahnmahlzahn@posteo.deThis program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program. If not, seehttps://www.gnu.org/licenses/.