Saravanan666/pypi-org huggingface dataset:
Package: meraki-api
Meraki API is a wrapper around requests library to interact with the Meraki
Dashboard API. It simplifies interacting with the API by keeping track of the
users token, handling query and body parameters, and has the ability to execute
the request lazily.First, we can bootstrap the module by indicating our API Key.>>> import MerakiAPI
>>> KEY = <Your user Meraki API KEY>
>>> meraki = MerakiAPI(KEY)After this we don’t have to worry again about it. To get the a list
of all the organizations we would call theorganizations().index()function.>>> response = meraki.organizations().index()This will return arequestsresponse object. If we want to get the json data
from the response, we just call.json()over it.>>> json = response.json()If we want to set up the request to call it in the future we can use thelazyfunction before calling onindex.>>> lazy_request = meraki.organizations().lazy().index()This will return aLazyRequestsobject that holds the request action until we
need to run it. It is also useful to check the URL that was created, without
actually generating a request to the API.>>> lazy_request.get_url()
"https://dashboard.meraki.com/api/v0/organizations"When we feel like it we can use thecallfunction inside outLazyRequestsobject to send the request to the Server. This will also return arequestsresponse object.>>> lazy_request.call()All the endpoints specified as of July 1 2017 are defined.
You can see the official documentation at:https://dashboard.meraki.com/api_docscopyright:2017 by Guzmán Monné.license:MIT, see LICENSE for more details.
Package: meraki-dashboard-api
Meraki Dashboard APIAccess  to your Cisco Meraki cloud-managed in a pythonic way.  Also available via PIPPrerequisitesYou need to enable APIs in your Meraki dashboard and obtain an APIKey:InstructionsExamplefrommeraki_dashboard_apiimportDashboardapikey="jkhsfsdhk32424******example*****jlasdfsdfl3245345"dash=Dashboard(apikey)# list all organizationsmyOrgs=dash.organizations.list()print(myOrgs)# list all organization's networksmyNets=dash.organizations.networks(<orgId>)print(myNets)Since the other options available are complex or old school, my need was a more pythonic and object oriented way.The 90% of que API belong to the/networksendpoint and from there appears some groups, in the Meraki documentation these groups are represented as isolated, but  most of them belong to the same parent endpoint.Theoficialimplementation is a simple functional programming (old school) and theguzmonneimplementation is, I think, a really complex approach returning instances inside another instances.Ex:response=meraki.organizations().index()json=response.json()Instead I use some magic methods to instantiate the classes following a strict URL pattern.Ex:client=dash.networks.clients.get(<networkId>,<clientId>)print(client)I use args to build the URL path and kwargs to pass query parameters each endpoint .Ex:dev=dash.networks.devices.loss_and_latency(<networkId>,<serial>,uplink=‘wan1’,ip=‘1.2.3.4’,timespan=7200)print(dev)For POST and PUT methods you can use a kwargs data or update.Ex.payload={'name':'My AP','tags':'recently-added ','lat':37.4180951010362,'lng':-122.098531723022,'address':'some place','notes':'no notes','moveMapMarker':True}dev=dash.networks.devices.update(<networkId>,<serial>,update=payload)print(dev)
Package: merakifirewalledservices
# Get Security Appliance Firewalled Services status from Meraki dashboardThe script collects the status of the Meraki MX firewalled services status from the Meraki Dashboard and prints a report.## Installationpython -m pip install merakifirewalledservices## UsageProvide API Key and Organization ID from CLI:```merakiFirewalledServices --apikey <myApiKey> --orgid <myOrgId>```Or from env vars:```export APIKEY=<myApiKey>export ORGID=<myOrgId>```If OrgId is not provided the script prints the list of accessible organization with the provides API Key.
Package: merakitools
merakitoolsCLI tools for managing Meraki networks based onTyper.merakitools provides CLI based to monitoring and configuration tools available through the Meraki
Dashboard API. It was designed to help with bulk configuration creation and migrations to the Meraki platform.InstallationInstall withpipor your favorite PyPi package mananger.pip install merakitoolsSet enviornment variableMERAKI_DASHBOARD_API_KEYto your Meraki API keyThen try a command.merakitools orgs listExample CommandsList Meraki Networks in an organizationmerakitools networks list <YourOrgName>List Meraki MR devices in a networkmerakitools devices list <YourOrgName> <YourNetworkName> --type MR\Create a static NAT entry on a Meraki MX security appliancemerakitools mx create-staticnat <YourOrgName> <YourNetworkName> --nat <name>!<publicIP>!<privateIP> --port tcp!636!192.0.2.1/32 --port tcp!8080!anyFor more commands check out thecommand documentation.TestingFor a free and easy to use testing enviornment, use the Cisco DevNet SandboxMeraki.Note: The sandbox is read-only, so you will not be able to test commands that write data to the DashboardLicenseCopyright (C) 2021  Billy ZoellersThis 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, seehttp://www.gnu.org/licenses/.
Package: mercadolibre-python
mercadolibre-pythonmercadolibre is an API wrapper for MercadoLibre written in pythonInstallingpip install mercadolibre-pythonUsagefrom mercadolibre.client import Client

client = Client('CLIENT_ID', 'CLIENT_SECRET', site='MCO')Get authorization urlurl = client.authorization_url('REDIRECT_URL')Exchange the code for an access tokentoken = client.exchange_code('REDIRECT_URL', 'CODE')Set the tokenclient.set_token('TOKEN')Refresh the tokennew_token = client.refresh_token()Get account informationresponse = client.me()Get account information for an userresponse = client.get_user('USER_ID')Get user addressresponse = client.get_user_address('USER_ID')Get accepted payment methods for an userresponse = client.get_user_accepted_payment_methods('USER_ID')Get application informationresponse = client.get_application('APPLICATION_ID')Get user brandsresponse = client.get_user_brands('USER_ID')Get project informationresponse = client.get_project('PROJECT_ID')Get sitesresponse = client.get_sites(')Get listing typesresponse = client.get_listing_types('SITE_ID')Get listing exposuresresponse = client.get_listing_exposures('SITE_ID')Get categoriesresponse = client.get_categories('SITE_ID')Get categoryresponse = client.get_category('CATEGORY_ID')Get category attributesresponse = client.get_category_attributes('CATEGORY_ID')Get countriesresponse = client.get_countries()Get countryresponse = client.get_country('COUNTRY_ID')Get stateresponse = client.get_state('STATE_ID')Get cityresponse = client.get_city('CITY_ID')Get currenciesresponse = client.get_currencies()Get currencyresponse = client.get_currency('CURRENCY_ID')List itemitem = {'title': 'Test item - Moto G 4th Gen', 'condition': 'used', 'category_id': 'MCO174749', 'price': 10,
        'currency_id': 'COP',
        'available_quantity': 1, 'buying_mode': 'buy_it_now', 'listing_type_id': 'free', 'warranty': '24 months',
        'video_id': 'zQF96f01duA',
        'pictures': ['https://mxmoto.vteximg.com.br/arquivos/ids/156297-600-600/92849LYESAF5_1_1.png']}

response = client.list_item(**item)RequirementsrequestsTestspython tests/test_client.pyContributingWe are always grateful for any kind of contribution including but not limited to bug reports, code enhancements, bug fixes, and even functionality suggestions.You can report any bug you find or suggest new functionality with a newissue.If you want to add yourself some functionality to the wrapper:Fork it (https://github.com/GearPlug/mercadolibre-python)Create your feature branch (git checkout -b my-new-feature)Commit your changes (git commit -am 'Adds my new feature')Push to the branch (git push origin my-new-feature)Create a new Pull Request
Package: mercadolibre-sdk
Mercado Libre - SDK (unofficial)Configuration for using in  backend servicesInstallngrokfor localhost authorizationcurl-shttps://ngrok-agent.s3.amazonaws.com/ngrok.asc|sudotee/etc/apt/trusted.gpg.d/ngrok.asc>/dev/null&&echo"deb https://ngrok-agent.s3.amazonaws.com buster main"|sudotee/etc/apt/sources.list.d/ngrok.list&&sudoaptupdate&&sudoaptinstallngrokFollow the instructions inngrok pageCreate a free domain inngrok domains pageSet the environment variablesMERCADOLIBRE_CLIENT_ID
MERCADOLIBRE_CLIENT_SECRETMERCADOLIBRE_REDIRECT_URI={thisshouldbeyourngrokdomainurl}If you want to save your tokens in a Redis database setMERCADOLIBRE_REDIS_HOST
MERCADOLIBRE_REDIS_PORTRun in your terminalmercadolibre.authorizeAll envs variables can be defined in a .env file in your root folderConfiguration for using with frontend servicesSet the environment variablesMERCADOLIBRE_CLIENT_ID
MERCADOLIBRE_CLIENT_SECRETMERCADOLIBRE_REDIRECT_URI={yourbackendurlthathandleslogin}All envs variables can be defined in a .env file in your root folderLicenceMIT LicenseCopyright (c) 2023 Mercado RadarPermission 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.Mercado Libre and its trademarks are the property of MercadoLibre, Inc.
Mercado Radar is not affiliated, endorsed, or sponsored by MercadoLibre, Inc.
This client is an independent, unofficial software developed by Mercado Radar.
All copyrights and trademarks mentioned here are the property of their respective owners.
Package: mercadopago
Mercado Pago SDK for PythonThis library provides developers with a simple set of bindings to help you integrate Mercado Pago API to a website and start receiving payments.💡 RequirementsPython 3 or higher.📲 InstallationRunpip3 install mercadopago🌟 Getting StartedFirst time using Mercado Pago? Create yourMercado Pago account.Copy yourAccess Tokenin thecredentials paneland replace the textYOUR_ACCESS_TOKENwith it.Simple usageimportmercadopagosdk=mercadopago.SDK("YOUR_ACCESS_TOKEN")payment_data={"transaction_amount":100,"token":"CARD_TOKEN","description":"Payment description","payment_method_id":'visa',"installments":1,"payer":{"email":'test_user_123456@testuser.com'}}result=sdk.payment().create(payment_data)payment=result["response"]print(payment)Per-request configurationAll methods that make API calls accept an optionalRequestOptionsobject. This can be used to configure some special options of the request, such as changing credentials or custom headers.importmercadopagofrommercadopago.configimportRequestOptionsrequest_options=RequestOptions(access_token='YOUR_ACCESS_TOKEN')# ...result=sdk.payment().create(payment_data,request_options)payment=result["response"]📚 DocumentationVisit our Dev Site for further information regarding:APIsCheckout ProCheckout APIWeb Tokenize CheckoutCheck our official code reference to explore all available functionalities.🤝 ContributingAll contributions are welcome, ranging from people wanting to triage issues, others wanting to write documentation, to people wanting to contribute code.Please read and follow ourcontribution guidelines. Contributions not following this guidelines will be disregarded. The guidelines are in place to make all of our lives easier and make contribution a consistent process for everyone.❤️ SupportIf you require technical support, please contact our support team atdevelopers.mercadopago.com.🏻 LicenseMIT license. Copyright (c) 2021 - Mercado Pago / Mercado Libre
For more information, see the LICENSE file.
Package: mercadopagoCTS
Mercado Pago SDK for PythonThis library provides developers with a simple set of bindings to help you integrate Mercado Pago API to a website and start receiving payments.💡 RequirementsPython 2 or higher📲 InstallationFirst time using Mercado Pago? Create yourMercado Pago account, if you don’t have one already.On Python 2.xpip install mercadopagoOn Python 3.xpip3 install mercadopagoCopy the access_token in thecredentialssection of the page and replace YOUR_ACCESS_TOKEN with it.That's it! Mercado Pago SDK has been successfully installed.🌟 Getting StartedSimple usage looks like:importmercadopagoimportjsonmp=mercadopago.MP("YOUR_ACCESS_TOKEN")defindex(req,**kwargs):preference={"items":[{"title":"Test","quantity":1,"currency_id":"USD","unit_price":10.4}]}mp.create_preference(preference)📚 DocumentationVisit our Dev Site for further information regarding:Payments APIs:Spanish/PortugueseMercado Pago checkout:Spanish/PortugueseWeb Tokenize checkout:Spanish/PortugueseCheck our official code reference to explore all available functionalities.❤️ SupportIf you require technical support, please contact our support team atdevelopers.mercadopago.com🏻 LicenseMIT license. Copyright (c) 2018 - Mercado Pago / Mercado Libre 
For more information, see the LICENSE file.
Package: mercadoradar
Mercado Radar - SDKThe Mercado Radar SDK library provides convenient access to the Mercado Radar API from applications written in the Python language. It includes a pre-defined set of classes for API resources that initialize themselves dynamically from API responses.For more information visit theAPI Documentation.InstallationYou don't need the source code unless you want to modify the package for contribution. If you just want to use the package, just run:pipinstallmercadoradarUsageThe library needs to be configured with your account's secret key which you can access throughsuporte@mercadoradar.com.br.Set it as theMERCADORADAR_API_TOKENenvironment variable before using the library:exportMERCADORADAR_API_TOKEN='YOUR_API_TOKEN'Or setmercadoradar.api_tokento its value:importmercadoradarmercadoradar.api_token='YOUR_API_TOKEN'Attributeimportmercadoradarmercadoradar.Attribute.list(attribute_type:str,search:str=None)->listAttribute Typeimportmercadoradarmercadoradar.AttributeType.list(limit:int=100,offset:int=0)->listCategoryimportmercadoradarmercadoradar.Category.list(limit:int=100,offset:int=0)->listmercadoradar.Category.retrieve(id:int)->dictExportimportmercadoradarmercadoradar.Export.product_history(date:date)->bytesProductimportmercadoradarmercadoradar.Product.list(limit:int=100,offset:int=0,attributes_ids:list=None,category_ids:list=None,highest_price:float=None,lowest_price:float=None,product_names:list=None,seller_ids:list=None,site_ids:list=None,status:str=None)->listmercadoradar.Product.retrieve(id:int)->dictmercadoradar.Product.history(id:int,limit:int=100,offset:int=0,date__gte:date=None,date__lte:date=None)->liststatus (str):Choices areACTIVE,OUT_OF_STOCK,URL_NOT_FOUNDSellerimportmercadoradarmercadoradar.Seller.list(limit:int=100,offset:int=0)->listSiteimportmercadoradarmercadoradar.Site.list(limit:int=100,offset:int=0)->listRequirementsPython 3.10.*Contributionhttps://github.com/mercadoradar/mercadoradar-sdkLicenceCopyright 2023, Mercado Radar Software LtdaPermission 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: mercantile
Spherical mercator coordinate and tile utilitiesDocumentation:http://mercantile.readthedocs.io/en/latest/The mercantile module providesul(xtile, ytile, zoom)andbounds(xtile, ytile, zoom)functions that respectively return the upper left corner and
bounding longitudes and latitudes for XYZ tiles, axy(lng, lat)function
that returns spherical mercator x and y coordinates, atile(lng, lat, zoom)function that returns the tile containing a given point, and
quadkey conversion functionsquadkey(xtile, ytile, zoom)andquadkey_to_tile(quadkey)for translating between quadkey and tile
coordinates.>>>importmercantile>>>mercantile.ul(486,332,10)LngLat(lng=-9.140625, lat=53.33087298301705)>>>mercantile.bounds(486,332,10)LngLatBbox(west=-9.140625, south=53.12040528310657, east=-8.7890625, north=53.33087298301705)>>>mercantile.xy(*mercantile.ul(486,332,10))(-1017529.7205322663, 7044436.526761846)
>> mercantile.xy_bounds(486, 332, 10)
Bbox(left=-1017529.7205322663, bottom=7005300.768279833, right=-978393.962050256, top=7044436.526761846)>>>mercantile.tile(*mercantile.ul(486,332,10)+(10,))Tile(x=486, y=332, z=10)>>>mercantile.quadkey(486,332,10)'0313102310'>>>mercantile.quadkey_to_tile('0313102310')Tile(x=486, y=332, z=10)Also in mercantile are functions to traverse the tile stack.>>>mercantile.parent(486,332,10)Tile(x=243, y=166, z=9)>>>mercantile.children(mercantile.parent(486,332,10))[Tile(x=486, y=332, z=10), Tile(x=487, y=332, z=10), Tile(x=487, y=333, z=10), Tile(x=486, y=333, z=10)]Named tuples are used to represent tiles, coordinates, and bounding boxes.Mercantile CLIMercantile’s command line interface, named “mercantile”, has commands for
getting the shapes of Web Mercator tiles as GeoJSON and getting the tiles
that intersect with a GeoJSON bounding box.$mercantile--helpUsage: mercantile [OPTIONS] COMMAND [ARGS]...

  Command line interface for the Mercantile Python package.

Options:
  -v, --verbose  Increase verbosity.
  -q, --quiet    Decrease verbosity.
  --version      Show the version and exit.
  --help         Show this message and exit.

Commands:
  bounding-tile  Print the bounding tile of a lng/lat point, bounding box, or
                                 GeoJSON objects.
  children       Print the children of the tile.
  neighbors      Print the neighbors of the tile.
  parent         Print the parent tile.
  quadkey        Convert to/from quadkeys.
  shapes         Print the shapes of tiles as GeoJSON.
  tiles          Print tiles that overlap or contain a lng/lat point, bounding
                                 box, or GeoJSON objects.See Alsosupermercadois another python lib
with added tile logic functionality (union tile shapes, find edge tiles, and
find tile intersections for complex geometries).node-sphericalmercatorprovides many of the same features for Node.tilebelthas some of the GeoJSON
features as mercantile and a few more (tile parents, quadkey).morecantileis like mercantile,
but with support for other TileMatrixSet grids.
Package: mercapi
mercapiAPI DocumentationWhat is Mercapi?Mercapi is a Python wrapper formercari.jpAPI.
It's capable of producing HTTP requests implementing security mechanisms employed in nativemercari.jpweb app.
Requests and responses are mapped to custom classes with type-hinting and documentation.QuickstartFirst, install themercapipackage using the package manager of your choice.As an example, we want to run the search querysharpnel.frommercapiimportMercapim=Mercapi()results=awaitm.search('sharpnel')print(f'Found{results.meta.num_found}results')foriteminresults.items:print(f'Name:{item.name}\\nPrice:{item.price}\\n')We can use a single result object to retrieve full details of the listing.item=results.items[0]full_item=awaititem.full_item()print(full_item.description)Or get it directly using an ID.item=awaitm.item('m90925725213')print(item.description)Refer tomercapi.mercapi.Mercapidocumentation for all implemented features.Examples above are not executable. If you want to try them out, runpython example.py.
Package: mercari
Mercari WrapperA simple api wrapper around the Mercari jp site.Simple usage can be something likeimportmercariforiteminmercari.search("東方 ふもふも"):print("{},{}".format(item.productName,item.productURL))The search call will take a long time because it goes through all the pages to find every item.It does not return parts where you paginate yourself.the item object contains the following properties:idproductURLimageURLproductNamepricestatussoldOutIf you want to do more specific searching, you can use something like the followingfrommercariimportsearch,MercariSearchStatus,MercariSort,MercariOrderforiteminsearch("",sort=MercariSort.SORT_PRICE,order=MercariOrder.ORDER_DESC,status=MercariSearchStatus.SOLD_OUT):print("{},{}".format(item.productName,item.productURL))The defaults are currently:sort=MercariSort.SORT_CREATED_TIMEorder=MercariOrder.ORDER_DESCstatus=MercariSearchStatus.ON_SALEWhich will sort by most recent to oldest, and only show on sale item.MercariSortSTATUS_DEFAULTSTATUS_ON_SALESTATUS_SOLD_OUTMercariOrderSORT_DEFAULTSORT_CREATED_TIMESORT_NUM_LIKESSORT_SCORESORT_PRICEMercariSearchStatusORDER_DESCORDER_ASCYou can also passexcluded_keywords="something to exclude"if you want to remove certain pieces from your searchDevelopmentClone this repo, install the dependencies inrequirement.txtand off you go.Deploying / Publishingpython setup.py sdisttwine upload dist/mercari-<version>.tar.gz