Saravanan666/pypi-org huggingface dataset:
Package: getRoutersConfig
What it does ?This return Cisco configuration and information like :Sytem informationsStatic routesInterfacesDHCPACLInformationsbastion_ip and bastion_port are optionalGet system informationsfromgetRoutersConfigimportsetInformationsrouter=setInformations(host_ip:str='',host_port:str='22',host_snmp_community:str='public',user:str='',password:str='',bastion_ip:str='',bastion_port:str='')system_information=router.getSystemInformation()router.disconnect()The Schema is :{"serie":"C800","model":"C891F-K9","version":"15.4(3)M6","hostname":"THE_ROUTER","uptime":{"years":0,"weeks":1,"days":1,"hours":11,"minutes":25},"system_image":"c800-universalk9-mz.SPA.154-3.M6.bin","serial_number":"FCZ1234A5BC"}Get Ipv4 static routesfromgetRoutersConfigimportsetInformationsrouter=setInformations(host_ip:str='',host_port:str='22',host_snmp_community:str='public',user:str='',password:str='',bastion_ip:str='',bastion_port:str='')static_routes=router.getIpv4StaticRoutes()router.disconnect()The Schema is :[{"subnet_address":"1.1.1.1","mask":{"octets":"255.255.255.255","cidr":29},"vrf":"TEST","gateway":"2.2.2.2","metric":250,"tag":408,"permanent":"false","name":"the description","track":20},...]Get interfacesfromgetRoutersConfigimportsetInformationsrouter=setInformations(host_ip:str='',host_port:str='22',host_snmp_community:str='public',user:str='',password:str='',bastion_ip:str='',bastion_port:str='')interfaces=router.getInterfaces()router.disconnect()The Schema is :{"switched":[{"name":"FastEthernet0","switchport_mode":"access","vlan":"1"},...],"routed":[{"name":"FastEthernet4","description":"","ip":"192.168.1.101","mask":{"octets":"255.255.255.0","cidr":24},"vrf":""},...]},Get DHCPfromgetRoutersConfigimportsetInformationsrouter=setInformations(host_ip:str='',host_port:str='22',host_snmp_community:str='public',user:str='',password:str='',bastion_ip:str='',bastion_port:str='')dhcp=router.getDhcp()router.disconnect()The Schema is :[{"name":"DATA","network":{"subnet_address":"10.0.0.0","mask":{"octets":"10.0.0.0","cidr":24}},"default_router":"10.0.0.1","dns_server":["8.8.8.8",...],"option":[{"code":2,"string_type":"ascii","string":"opt2"},...]},...]Get ACLfromgetRoutersConfigimportsetInformationsrouter=setInformations(host_ip:str='',host_port:str='22',host_snmp_community:str='public',user:str='',password:str='',bastion_ip:str='',bastion_port:str='')acl=router.getIpv4Acl()router.disconnect()The Schema is :[{"type":"Extended","name":"acl-premium","rule":[{"sequence_number":10,"pass":"permit","protocol":"udp","source":"any","source_port":"all","destination":"host 192.168.10.3","destination_port":"snmp","macthes":2417837},...]},...]Get full configurationfromgetRoutersConfigimportsetInformationsrouter=setInformations(host_ip:str='',host_port:str='22',host_snmp_community:str='public',user:str='',password:str='',bastion_ip:str='',bastion_port:str='')config=router.getFullConfiguration()router.disconnect()The Schema is :{"system":{},"ipv4StaticRoutes":[],"interfaces":[],"dhcp":[],"acl":[]}
Package: getrpimodel
getrpimodelGet Raspberry Pi model Name(eg: A, B, B+...)installpip install getrpimodelinstallsreturnString: 'Model Name' same string as the 'Model' column value of thefollowing Table, like as "A", "B", "B+", "2 Model B", "3 Model B" and so on.Miner info in parentheses, like (Beta), (ECN0001), or (with BCM2837) are removed; or appear with '--s' option, or 'model_strict()' function.How to useas python program.python -m getrpimodel [--s]as python library.import getrpimodel

print (getrpimodel.model())
print (getrpimodel.model_strict())C++ version.C++ version is also availabel ashere.history2018.09.19_version_0.1.13  add "Zero W", "3 Model B+"2018.11.19_version_0.1.15  add "3 Model A+"2020.05.01_version_0.1.16  mergepr1for adding model 4B byshingon, thank you!2020.05.01_version_0.1.16  add "Compute Module 3+"2020.05.01_version_0.1.16  add missing b+ of rev "900032"2020.09.05_version_0.1.17  fixissue#2. Thanksgoszpeti!2020.09.08_version_0.1.19  mergeissue#3. ThanksFabian Affolter!2021.03.25_version_0.1.20  add rev 1.4 PCB's of RPi42022.02.16_version_0.1.21  mergeissue#4. ThanksSimonLamy!2023.02.14_version_0.1.22  mergeissue#5. ThanksSergei Guselnikov!2023.02.14_version_0.1.23  add rev 1.5 PCB's of RPi4
Package: getscatterplots
This library is used to plot scatterlots for all columns at a time.
we have to give two parameters which are our “dataframe” and column name of output variable i.e our target
for example,
your csv file name is “train.csv” ||
then your code will be ||
from getscatterplots import scatterplots ||
data=pd.read_csv(“train.csv”) ||
your output variable column name is “SalePrice”||
scatterplots(data,’SalePrice’) ||
we will get all scatterplots.||
I am goint to publish article about this library.check it on “medium link=https://medium.com/@akashsathe79”Change Log0.0.1 (25/08/2020)First Release
Package: getschema
💥 New: jsonpath support for the record_level parameter in getschema.infer_schema function.getschemaGet jsonschema from sample recordsCommand line usage:usage: getschema [-h] [--indent INDENT] [--type TYPE] [--skip SKIP] [--lower]
                 [--replace_special REPLACE_SPECIAL] [--snakecase]
                 data

positional arguments:
  data                  json record file

optional arguments:
  -h, --help            show this help message and exit
  --indent INDENT, -i INDENT
                        Number of spaces for indentation
  --type TYPE, -t TYPE  Record format (json, yaml, csv)
  --skip SKIP, -s SKIP  Skip first n records. Don't skip the header row.
  --lower, -l           Convert the keys to lower case'
  --replace_special REPLACE_SPECIAL, -r REPLACE_SPECIAL
                        Replace special characters in the keys with the
                        specified string
  --snakecase, -n       Convert the keys to 'snake_case'
getschema file.jsonModule functions:
(See impl.py)infer_schemainfer_from_json_fileinfer_from_yaml_fileinfer_from_csv_filefix_typeExample projects using getschema:https://github.com/anelendata/tap-rest-apihttps://github.com/anelendata/tap-bigqueryOriginal repositoryhttps://github.com/anelendata/getschemaAbout this projectThis project is developed by
ANELEN and friends. Please check out the ANELEN'sopen innovation philosophy and other projectsCopyright © 2020~ Anelen Co., LLC
Package: getsecret
getsecretReads credentials from a file.getsecret.yamlInstallpipinstallgetsecretUsingCreate a file.getsecret.yaml. It should be in YAML format. An example follows:username:foobarpassword:supersecretNow you can access those variables in your code as follows:fromgetsecretimportgetsecretusername=getsecret('username')password=getsecet('password')Now the values of username and password are the ones specified in.getsecret.yaml(foobar and supersecret, respectively).The file.getsecret.yamlcan be located in the working directory (./.getsecret.yaml), or at the user's home directory (~/.getsecret.yaml)If you pass an additional parameter, it will be used as the default if the key is not found in.getsecret.yaml. For example, the following will look for theusernamekey in.getsecret.yaml, and will default torootif it is not found:fromgetsecretimportgetsecretusername=getsecret('username','root')AuthorGeza KovacsLicenseMITRelatedgetsecret npm packagefor javascript on browser/nodejs
Package: get-secret-or-env-var
# get_secret_or_env_var[![CircleCI](https://img.shields.io/circleci/build/gh/greenape/get_secret_or_env_var.svg?logo=CircleCI&style=flat-square)](https://circleci.com/gh/greenape/get_secret_or_env_var) [![codecov](https://img.shields.io/codecov/c/github/greenape/get_secret_or_env_var.svg?logo=Codecov&style=flat-square)](https://codecov.io/gh/greenape/get_secret_or_env_var)  [![License: MIT](https://img.shields.io/github/license/greenape/get_secret_or_env_var.svg?style=flat-square)](https://opensource.org/licenses/MIT) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg?style=flat-square)](https://github.com/python/black)A docker-secrets aware wrapper for Python’s os.getenv and os.environ.Supplies:getenvgetenvbenvironenvironbWhich behave exactly like their stdlib equivalents, but will look for a file in/run/secretsand return the contents in preference to any environment variables.Setting values onenvironorenvironbwill set the values in theiros.equivalent.
Package: getsecure
# getsecureUtility for securing expiring links#Usage##Add to nginx vhost secure location section like this```location /secret_page.html {secure_link $arg_md5,$arg_expires;secure_link_md5 "$secure_link_expires$uri <put here secret string>";if ($secure_link = "") {return 403;}if ($secure_link = "0") {return 410;}}```##Get secure link```-> python secure.py http://example.com/secret_page.html <put here secret string> --period=30http://example.com/secret_page.html?md5=IQ6H6OQYGeUnlLEDgHfYNw&expires=1488221041```or```-> python secure.py /secret_page.html <put here secret string> --period=30/secret_page.html?md5=IQ6H6OQYGeUnlLEDgHfYNw&expires=1488221041```
Package: getsentinel
getsentinelA download, process, and masking pipeline for ESA Sentinel-X data.Author: G. WorrallRequirements:Python 3.6
              requests
              clint
              pyshp
              geojson
              shapely
              osgeo
              numpy
              rasterioExample Usage:from getsentinel import gs_downloader, gs_stacker
from datetime import date

# download Sentinel-2 products for a region of interest.
start_date = date(2018, 5, 6)
end_date = date(2018, 5, 8)
ROI = '/path/to/roi.geojson'

query = gs_downloader.Query('S2', start_date, end_date, ROI)
query.product_details('BEST', cloudcoverlimit=50) 

# submit a query to the ESA database
hub = gs_downloader.CopernicusHubConnection()
total, products = hub.submit_query(query)
# download all the returned products
hub.download_products(products)

# process all the downloaded products
processed = gs_processor.batch_process(products)

# extract the data into a stack
stacker = gs_stacker.Stacker(products,
                             ROI,
                             start_date,
                             end_date)

# set the bands to extract from the S2 products
stacker.set_bands(s2_band_list=['TCI'], s2_resolution = 10)
# check the Sentinel weather masks for ROI coverage
stacker.check_weather(cloud=20, snow=20)

data = stacker.generate_stacks()
Package: getserv
getservThis tool is used to retrieve stable servers from various services.UsageThe package is uploaded topypi.org. In order to install the package you should use pip:pip install getservpython >= 3.6 is requiredBasic usageBasically the driver is responsible for delivering the ips to the main program. The main program will just scan all the ips received from the driver and checks whether a service on a given port is available:getserv[...args]{driver_name}[...args]Changing the port to scanThe default port is22. You may change it with the--test-port(-p) option.Listing all IPsThe default beheavior is to only return one address. You can list all available server IPs by adding the--list-all(-a) option.The DigitalOcean driverThe digitalocean driver is used to filter droplets by multiple tags. Since thedoctlcan only filter by single tags, the driver will fallback to the REST API. It'll get information for the requested droplets and filters by the given tags. In order to get a running droplet from your droplet stack you execute this:getservdigitaloceantag1,tag2To authenticate yourself you can use either a cli argument or a environemt variable:getservdigitalocean\--digitalocean-access-tokenXXXXXXXXXXX\tag1,tag2Or to use the environment varible:exportDIGITALOCEAN_ACCESS_TOKEN=XXXXXXXX
getservdigitaloceantag1,tag2If everything is configured properly you should receive a single IP based on the availability of your dropletsLicenseSee theLICENSEfile for license rights and limitations (MIT).
Package: get-set-nested-dict
get_set_nested_dictGet or Set a nested value of nested dict by pathdef get_set_nested_dict(nested_dict, path, **kwargs):
"""
Get or Set a nested value of nested dict by path
:param nested_dict: nested dict object
    {
      "club": [
        {
          "manager": {
            "last_name": "Lionel",
            "first_name": "Messi"
          }
        }
      ]
    }
:param path: path to access the nested dict value
    "club[0].manager.first_name"
:param kwargs: {setter_value: value}
    setter_value='Pulga'
:return: <modified_nested_dict>, getter_value
    ({'club': [{'manager': {'last_name': 'Pulga', 'first_name': 'Messi'}}]}, 'Lionel')
"""#####Installation:https://pypi.org/project/get_set_nested_dict/pip install get_set_nested_dict#####Usage:nested_dict = {
  "key": [
    {
      "sub_key": {
        "sub_sub_key_1": "Value_1",
        "sub_sub_key_2": "Value_2"
      }
    }
  ]
}before:sub_sub_value_1 = nested_dict['key'][0]['sub_key']['sub_sub_key_1']after:from get_set_nested_dict import get_set_nested_dict
nested_dict, sub_sub_value_1 = get_set_nested_dict(nested_dict, "key[0].sub_key.sub_sub_key_1")#####Example:nested_dict = {
  "club": [
    {
      "manager": {
        "last_name": "Lionel",
        "first_name": "Messi"
      }
    }
  ]
}before:manager_last_name = nested_dict['club'][0]['manager']['last_name']
nested_dict['club'][0]['manager']['last_name'] = 'Pulga'after:from get_set_nested_dict import get_set_nested_dict
path = "club[0].manager.last_name"
nested_dict, manager_last_name = get_set_nested_dict(nested_dict, path, setter_value='Pulga')

>>> nested_dict
{'club': [{'manager': {'last_name': 'Pulga', 'first_name': 'Messi'}}]}
>>> manager_last_name
'Lionel'
Package: getsetpy
getsetpyPython connector for GetSetDB with official support.Some familiarity with GetSetDB would come a long way in using getsetpy as most of the API calls by thespace.Spaceanddatabase.Databaseinter-actors comes directly from it. To learn GetSetDB, refer toA Tour of GetSetDBInstallation$pipinstallgetsetpyUsagegetsetpy provides an interface to GetSetDB by using inter-actors that provide a similar and easy to use API for sending commands to the Space or a particular Database.Space APITo run Space commands, use thespace.Spaceinter-actor -fromgetsetpy.spaceimportSpacespace=Space()databases=space.ls()# returns list of all databasesspace.new('users')# creates a new databasespace.delete('old_database')# deletes an old databasespace.rename('users','people')# renames 'user' database to 'people'commands=space.commands()# returns a list of commands for "space"Database APITo run commands for a specific Database, use thedatabase.Databaseinter-actor -fromgetsetpy.databaseimportDatabase# connects to the 'users' databaseusers=Database('users')# if it does not exist, it raises a DatabaseNotFound exception# returns a dictionary with all the user keys as values and a redundant number as the keyusers=users.all()# returns an empty dictionary if no pairs are found# but if the users database was populated like this -# manan : yadav# bruce : wayne# martha : stewart# kunal : pahuja# peter : parker# donald : trump# barry : allen# sheldon : cooper# then the dictionary would look like# {1.0: 'manan', 2.0: 'bruce', 3.0: 'martha', 4.0: 'kunal', 5.0: 'peter', 6.0: 'donald', 7.0: 'barry', 8.0: 'sheldon'}# deletes the pair - donald : trump to database 'users'users.delete('donald')# gets the value for key 'barry'users.get('barry')# 'allen'# adds the pair - wonder : woman to database 'users'users.set('wonder','woman')# returns a dictionary containg info about the database 'users'# like its size in bytes and the path to its fileusers.info()# {'size': '136 bytes', 'path': '/tmp/gsdb/users.gsdb'}# returns the number of pairs in the 'users' databaseusers.count()# 8
Package: get-settings
get-settingsget-settings is a python library designed to facilitate the retrieval of configuration variables from asettings.pyfile. It provides a convenient way to load these variables as a Python dictionary. This library is particularly useful in the development of Python libraries, as it can dynamically detect and load configuration file content.InstallationUsageAutomatic configurationManual configurationFile formatContributingLicenseCreditsInstallationpipinstallget-settingsUsagefromget_settingsimportload_settings()settings=load_settings()# settings = {"USER": "foo", "EMAIL": "foo@example.org"}Ensure thatsettings.pyfile exists in the project root and contains the necessary configuration parameters.
├── settings.py
└── foo.pyDon't forget to addget_settingsto your pyproject.toml:dependencies=["get-settings>=0.1.1",]Manual configurationAlso, you can manually provide the file path to the library's configuration function:# Provide the path to the settings.py filesettings_path="/path/to/settings.py"settings=load_settings(settings_path)File formatVaribales accepts from the library# settings.pyUSER="FOO"# YESPORT=8000# YESDEBUG=True# YESORIGINS=["http://localhost",...]# YESFOO={"email":"foo@example.com"}# YESfoo="user"# NO__FOO__="user"# NOthe result ofload_settings()will be the following:{"USER":"FOO","PORT":8000,"DEBUG":True,"ORIGINS":["http://localhost",...],"FOO":{"email":"foo@example.com"},}ContributingWe welcome contributions to this project! If you would like to contribute, please fork this repository and submit a pull request with your changes. Before submitting a pull request, please make sure that your changes are fully tested and that they adhere to our code standards.LicenseThis project is licensed under the MIT License - see the LICENSE file for details.CreditsSome features in this library are partially inspired by thepython-dotenvlibrary
Copyright (c) 2014, Saurabh Kumar, 2013, Ted Tieken, 2013, Jacob Kaplan-MossThank you for using get-settings library!
Package: get-settings-yaml
get-settings-yamlSmall module for finding and parsing settings.yaml file in your project.Setuppython-mpipinstallget-settings-yamlAPIAssuming the project structure:myproject/src/run.pymy_settings.yamlIf you want to loadmy_settings.yamlfromrun.pyscript you should use this code inside:importosfromget_settings_yamlimportparse_settingsCURRENT_WORKING_DIR=os.path.dirname(__file__)SETTINGS_FNAME='my_settings.yaml'SETTINGS=parse_settings(base_path=CURRENT_WORKING_DIR,settings_filename=SETTINGS_FNAME)if__name__=='__main__':# Do something and use parsed settingspassIf you want to check path to the settings file:importosfromget_settings_yamlimportload_pathCURRENT_WORKING_DIR=os.path.dirname(__file__)SETTINGS_FNAME='my_settings.yaml'SETTINGS_PATH=load_path(base_path=CURRENT_WORKING_DIR,settings_filename=SETTINGS_FNAME)if__name__=='__main__':# Do something and load settings laterpass
Package: getsimilar
Get similar imagesThis tool is a wrapper over an API that returns URLs and similarity scores for similar images for a given image.You can find a demo of the toolhere.The description of the API can be foundhere.Installationpipinstall-UgetsimilarGet an API tokenLog in at:https://ternaus.com/loginGo to the account page:https://ternaus.com/accountGenerate new token and save json file with it to~/.ternaus/ternaus.jsonUsageYou pass:Image in the form of thenumpyarray orPILimage.URL to the image:Text query, for example: "Girls in weird hats"Optional parameters:num_similarthat specifies the number of similar images to return. This number is capped at 50. If you would like to
get more similar images per request, please contact us
athttps://www.ternaus.com/#contact. default value is 1.get_labelsthat specifies whether to return labels for the image. default value is None. Right now
onlycoco_yolov7is supported.`From imagefromgetsimilar.getimportfrom_imageurls=from_image(<numpyorPILimage>,num_similar=<thenumberofsimilarimages>)From URLfromgetsimilar.getimportfrom_urlurls=from_url(url,num_similar=<thenumberofsimilarimages>)From textfromgetsimilar.getimportfrom_texturls=from_text(text,num_similar=<thenumberofsimilarimages>)
Package: getsitemap
getsitemap.. image::https://readthedocs.org/projects/getsitemap/badge/?version=latest:target:https://getsitemap.readthedocs.io/en/latest/?badge=latest:alt: Documentation Status.. image::https://badge.fury.io/py/getsitemap.svg:target:https://badge.fury.io/py/getsitemap.. image::https://img.shields.io/pypi/dm/getsitemap:target:https://pypistats.org/packages/getsitemap.. image::https://img.shields.io/pypi/l/getsitemap:target:https://github.com/capjamesg/getsitemap/blob/main/LICENSE.. image::https://img.shields.io/pypi/pyversions/getsitemap:target:https://badge.fury.io/py/getsitemap|getsitemap is a Python library that retrieves all of the URLs that are found in all of the sitemaps on a website.This project may be useful if you are building a search crawler or sitemap URL status code validators.You can read the documentation for this project onRead the Docs <https://getsitemap.readthedocs.io/en/latest/>_.Installation 💻To get started, pip installgetsitemap:::pip install getsitemapQuickstart ⚡get all URLs recursively in all sitemaps.. code-block:: python

   import getsitemap

   urls = getsitemap.get_individual_sitemap("https://jamesg.blog/sitemap.xml")

   print(urls)

get all URLs in a single sitemap.. code-block:: pythonimport getsitemapall_urls = getsitemap.retrieve_sitemap_urls("https://sitemap")print(all_urls)Code QualityThis library usestox,pytest, andflake8to assure code quality.To run code quality checks, run the following command:.. code-block:: bashtoxLicense 👩‍⚖️This project is licensed under anMIT License <LICENSE>_.Contributing 🛠️We would love to have your help in improvinggetsitemap. Have an idea for a new feature or a bug to fix? Leave information in a GitHub Issue to start a discussion!If you haveContributors 💻capjamesg
Package: getsize
getsizeGet and display the size of file and directory with binary prefixesInstall$ pip install getsizeUsage$ getsize [OPTION] [FILE]...Options:
    -h - Show this help
    -v - Show version information
    -b - Bytes
    -k - KiB
    -m - MiB
    -g - GiB
    -t - TiB
    -p - PiB
    -e - EiB
    -z - ZiB
    -y - YiBUse as a moduleIn[1]:importgetsizeIn[2]:gs=getsize.GetSize()In[3]:gs.convSize(4096)Out[3]:(4.0,'KiB')In[4]:gs.convSize(4096,'KiB')Out[4]:(4.0,'KiB')In[5]:gs.getSize(['README.md'])790.000BytesREADME.mdIn[6]:gs.getSize(['README.md'],'KiB')0.771KiBREADME.mdIn[7]:fs=gs.getArgSize('README.md')In[8]:forfile,sizeinfs:...:print(file,size)...:README.md790
Package: getsms
GET SMSpip install getsms
pip install requestsSEND MESSAGEfrom get_sms import Getsms
message = Getsms(login=login, password=password, nickname=nickname)
phone_numbers = ['998998158172', '998995451872']
results = message.send_message(phone_numbers=phone_number, text='Hello World')

if 'error' in results:
    print(results)

for result in results:
    print(result.phone_number)

# RESPONSE FIELDS
phone_number
text
date_received
message_id
request_id
client_ip
user_idCHECK STATUSfrom get_sms import Getsms
message = Getsms(login=login, password=password, nickname=nickname)
request_ids = [1234567, 456789]
results = message.check_status(request_ids)
if 'error' in results:
    print(results)

for result in results:
    print(result.status)

# RESPONSE FIELDS
phone_number
status
text
user_id
date_received
date_sent
date_delivered
message_id
request_id
count_messages
client_ip
description
Package: getsome
getsomeGet something interesting to consume on internet. Just run the commandgetsomeand get an interesting link to browse.--addLINKadd a new link--rmLINKremove an existing linkFree software: MIT licenseFeaturesRSS supportCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2022-01-07)First release on PyPI.0.1.1 (2022-01-17)Updating requirements.0.1.2 (2022-01-17)adding add and remove commands0.1.3 (2022-03-17)adding fetch and sync commands0.1.4 (2022-03-27)remove sync commandadd bulk rss sync commandsadd rss link list command0.1.5 (2022-03-27)fix requirements
Package: get_some_danmaku
Get Some Danmaku!** Install from Pypi#+BEGIN_EXAMPLE
pip3 install get_some_danmaku
#+END_EXAMPLE** Manual Installation#+BEGIN_EXAMPLE
python3 setup.py install
#+END_EXAMPLE** UsageTo use the script:#+BEGIN_EXAMPLE
gsd <番剧名称>
#+END_EXAMPLEThen it will be clear what to do next.This package uses [[https://github.com/m13253/danmaku2ass][danmaku2ass]] as a converter. Thanks!