Saravanan666/pypi-org huggingface dataset:
Package: python-gmaps
python-gmapsGoogle Maps API client. For full API documentation go to:http://python-gmaps.readthedocs.orgWhy yet another python google maps client?There are a bunch of libraries for Google Maps Web Service. To name a
few: *googlemaps*google.directionsWhat’s wrong with them? googlemaps uses deprecated google API and forces
you to format your parameters instead of using native python datatypes.
And what about google.directions? Just take a look inside it’s code…So here is code for new Google Maps API endpoints. It requiresrequests, supports native
python datatypes and is sweetened with some syntactic sugar. Nothing
more. No bells and whistles.Any contributions (code/issues) are welcome.Instalationpip install python-gmapsUsageJust import API endpoint of your choice and start querying:fromgmapsimportGeocodingapi=Geocoding()api.geocode("somwhere")api.reverse(51.123,21.123)If you need to use Google Maps API for Business then instantiate your
endpoint withapi_keyparamfromgmapsimportGeocodingapi=Geocoding(api_key='your_secret_api_key')Each endpoint method raises adequate exception when status of query is
different thanOK. It also unpacks results list from Google API
output dict so you have one key less to access but it does nothing more.
So if Google geocoding api outputs something like:{
    results: [
    ...
    ],
    status: 'OK'
}You will get only get list that was insideresultvalue. At least
one element returned is always assured, otherwisegmnaps.errors.NoResultsexception is raised.For each API endpoint you can specify: * defaultsensorvalue *
protocol (http/https) * api key (only for http)Available endpoints: *Geocoding()*Directions()*Timezone()*Elevation()For detailed documentation of each endpoint refer to dosctrings orthis
API documentation.
If you need list of available values for some parameters (like geocoding
components, languages, regions etc.) refer toGoogle Maps API
docs.
These values can change anytime so there is no reason to check for them
in this lib - they will be checked anyway.Changes0.3.1 (2016-03-23)updated list of trove classifiersnicerlong_descriptionon PyPIsimplified requirements insetup.pyscript0.3.0 (2015-08-31)added two additional optional parameters to reverse geocoding that
allow restricting type of results (result_typeandlocation_type) thanks to @20tabaddedgmaps.polyline.encode()utility function to encode paths
usingEncoded Polyline Algorithm
FormatElevationendpoint added implemented0.2.1 (2014-11-11)gmaps.errors.GmapExceptioninherits fromExceptioninstead ofBaseException0.2.0 (2014-10-02)fixed lists serialization issue (#1) thanks to @feighter09added pep8 compliance test using flake8pep8 compliance0.1.1 (2014-05-16)python 3.3 support0.1.0 (2014-05-09)Timezoneendpoint added0.0.2 (2013-10-03)Directionsendpoint added0.0.1 (2013-10-02)initial releaseGeocodingendpoint
Package: python-gnip
Gnip PowerTrack WrapperInstallationMethod with pip: if you have pip installed, just type this in a terminal
(sudo is optional on some systems)pip install python-gnipMethod by hand: download the sources, either on PyPI or (if you want the
development version) on Github, unzip everything in one folder, open a
terminal and typepython setup.py installUsageRulesfromgnipimportGnipg=Gnip(YOUR_ACCOUNT_NAME,login=YOUR_EMAIL,password=YOUR_PASSWORDsource="twitter")print(g.get_rules())Add and Delete rulesfromgnipimportGnipg=Gnip(YOUR_ACCOUNT_NAME,login=YOUR_EMAIL,password=YOUR_PASSWORDsource="twitter")# Add 2 rulesg.add_rules([{"value":"rule1","tag":"tag1"},{"value":"rule2"}])# Delete 2 rulesg.delete_rules([{"value":"rule1","tag":"tag1"},{"value":"rule2"}])StreamfromgnipimportGnipg=Gnip(YOUR_ACCOUNT_NAME,login=YOUR_EMAIL,password=YOUR_PASSWORD)s=g.connect_stream()forlineins.iter_lines():ifline:print(line)
Package: python-gnupg
This module allows easy access to GnuPG’s key management, encryption and signature
functionality from Python programs. It is intended for use with Python 2.4 or
greater.Releases are normally signed using a GnuPG key with the user idvinay_sajip@yahoo.co.ukand the following fingerprint:CA74 9061 914E AC13 8E66  EADB 9147 B477 339A 9B86As PyPI no longer shows signatures, you should be able to download release archives
and signatures fromhttps://github.com/vsajip/python-gnupg/releases/The archives should be the same as those uploaded to PyPI.
Package: python-gnutls
Python wrapper for the GnuTLS libraryThis package provides a high level object oriented wrapper around libgnutls,
as well as low level bindings to the GnuTLS types and functions via ctypes.
The high level wrapper hides the details of accessing the GnuTLS library via
ctypes behind a set of classes that encapsulate GnuTLS sessions, certificates
and credentials and expose them to python applications using a simple API.The package also includes a Twisted interface that has seamless intergration
with Twisted, providing connectTLS and listenTLS methods on the Twisted
reactor once imported (the methods are automatically attached to the reactor
by simply importing the GnuTLS Twisted interface module).The high level wrapper is written using the GnuTLS library bindings that are
made available via ctypes. This makes the wrapper very powerful and flexible
as it has direct access to all the GnuTLS internals and is also very easy to
extend without any need to write C code or recompile anything.
Package: python-golos
Python GOLOS LibraryThis is a fork ofgolodranetsGOLOS
library for Python which was forked from official STEEM library for Python. It
comes with a BIP38 encrypted wallet.The main differences from thesteem-python:directed to work with GOLOS blockchainwebsocket supportconvert Cyrillic to Latin for tags and categoriesGolos assets -STEEM->GOLOS,SBD->GBG,VESTS->GESTSrenamed modules -steem->golos,steemdata->golosdataforPostinstance added two fields -score_trendingandscore_hot. This fields may be helpful if you want to sort your saved posts likeget_discussions_by_trendingandget_discussions_by_trendingmethods do.reblogged_byfield is also filled nowforAccountinstance methodsget_followersandget_followingwere improved - now it takeslimitandoffsetparametersGOLOS HF 23 is supported.InstallationAs regular package:pip install python-golosLocal installation from source:cd golos-python
poetry install
poetry shellHomebrew Build PrereqsIf you're on a mac, you may need to do the following first:brew install openssl
export CFLAGS="-I$(brew --prefix openssl)/include $CFLAGS"
export LDFLAGS="-L$(brew --prefix openssl)/lib $LDFLAGS"
Package: python-google-calendar-api
==========================Python Google calendar api==========================This package demonstrates a simple implementation of Google calendar api and let you create and update events.Description-----------1. The first step is to turn on your google calendar api.a. Use the following link to create or select a project from the google developer console and turn on the api.https://console.developers.google.com/start/api?id=calendarClick continue and go to credentials.b. On the Add credentials to your project page, click the Cancel button.c. At the top of the page, select the OAuth consent screen tab. Select an Email address, enter a Product name if not already set, and click the Save button.d. Select the Credentials tab, click the Create credentials button and select OAuth client ID.e. Select the application type "Other", enter the desired name, and click the Create button.f. Click OK to dismiss the resulting dialog.g. Click the Download JSON button to the right of the client ID.h. Move this file to your projects home directory and rename it client_secret.json.2. Install the package using the folowing commandpip install python-google-calendar-api3. Once the client_secret.json file is in your projects home directory and the this package is installed, you are able to create and update events on your google calendar.4. Example code:from calendar_api.calendar_api import google_calendar_apim=google_calendar_api()m.create_event(calendar_id='<your calendar id>',start='2017,12,5,15,00,00',end='2017,12,5,15,15,00'description='foo')
Package: python-googlegeocoder
FeaturesSubmit an address and have it geocodedSubmit a lat/lng pair and have it reverse-geocodedResults include all data returned by Google, including formatted address, location, viewport, bounds, address type and address componentsBias results to a bounding box you provideBias results to a region you specify by country codeSpecify a language codeResults automatically converted to WKT formatOther resourcesDocs:palewi.re/docs/python-googlegeocoder/Issues:github.com/datadesk/python-googlegeocoder/issuesPackaging:pypi.python.org/pypi/python-googlegeocoderTesting:travis-ci.org/datadesk/python-googlegeocoderCoverage:coveralls.io/r/datadesk/python-googlegeocoder
Package: python-google-shopping
Python client for Google Content API v2Installationpipinstallpython-google-shoppingFeaturesHandles OAuth2 sanely through ENV variablesHandles pagination with iteratorsPads and adds checksum to GTIN of products automaticallyWorks well with Django and other frameworksUsageBasicexportGOOGLE_SHOPPING_CLIENT_ID=my_client_idexportGOOGLE_SHOPPING_CLIENT_SECRET=my_client_secretexportGOOGLE_SHOPPING_REFRESH_TOKEN=my_refresh_tokenfromgoogle_shoppingimportMerchantmerchant_id='536476575676'merchant=Merchant(merchant_id,country_code='AU')# Get product resourceproduct_resource=merchant.products.get(1234)# Get all productsproducts=list(merchant.products.list())# Iterate through products (generator)forproductinmerchant.products.list():printproduct.title# Delete product resourceproduct=Product.objects.order_by('?').first()merchant.products.delete(product.id)
Package: python-google-spreadsheet
A simple Python wrapper for the Google Spreadsheeta API.
[![Build Status](https://secure.travis-ci.org/yoavaviram/python-google-spreadsheet.png?branch=master)](http://travis-ci.org/yoavaviram/python-google-spreadsheet)FeaturesAn object oriented interface for WorksheetsSupports List Feed view of spreadsheet rows, represented as dictionariesCompatible with Google App EngineRequirementsBefore you get started, make sure you have:Installed [Gdata](http://code.google.com/p/gdata-python-client/) (pip install gdata)UsageList Spreadsheets and Worksheets:>>> from google_spreadsheet.api import SpreadsheetAPI
>>> api = SpreadsheetAPI(GOOGLE_SPREADSHEET_USER,
       GOOGLE_SPREADSHEET_PASSWORD, GOOGLE_SPREADSHEET_SOURCE)
>>> spreadsheets = api.list_spreadsheets()
>>> spreadsheets
[('MyFirstSpreadsheet', 'tkZQWzwHEjKTWFFCAgw'), ('MySecondSpreadsheet', 't5I-ZPGdXjTrjMefHcg'),
('MyThirdSpreadsheet', 't0heCWhzCmm9Y-GTTM_Q')]
>>> worksheets = api.list_worksheets(spreadsheets[0][1])
>>> worksheets
[('MyFirstWorksheet', 'od7'), ('MySecondWorksheet', 'od6'), ('MyThirdWorksheet', 'od4')]Please note that in order to work with a Google Spreadsheet it must be accessible
to the user who’s login credentials are provided. TheGOOGLE_SPREADSHEET_SOURCEargument is used by Google to identify your application and track API calls.Working with a Worksheet:>>> sheet = spreadsheet.get_worksheet('tkZQWzwHEjKTWFFCAgw', 'od7')
>>> rows = sheet.get_rows()
>>> len(rows)
18
>>> row_to_update = rows[0]
>>> row_to_update['name'] = 'New Name'
>>> sheet.update_row(row_to_update)
{'name': 'New Name'...}
>>> row_to_insert = rows[0]
>>> row_to_insert['name'] = 'Another Name'
>>> row = sheet.insert_row(row_to_insert)
{'name': 'Another Name'...}
>>> sheet.delete_row(row)
>>> sheet.delete_all_rows()Advanced Queries:>>> sheet = spreadsheet.get_worksheet('tkZQWzwHEjKTWFFCAgw', 'od7')
>>> rows = sheet.get_rows(query='name = "Joe" and height < 175')Or filter in memory:>>> sheet = spreadsheet.get_worksheet('tkZQWzwHEjKTWFFCAgw', 'od7')
>>> filtered_rows = sheet.get_rows(
        filter_func=lambda row: row['status'] == "READY")Sort:>>> sheet = spreadsheet.get_worksheet('tkZQWzwHEjKTWFFCAgw', 'od7')
>>> rows = sheet.get_rows(order_by='column:age', reverse='true')That’s it.For more information about these calls, please consult the [Google Spreadsheets
API Developer Guide](https://developers.google.com/google-apps/spreadsheets/).TestsTo run the test suite please follow these steps:Make sure [Nose](http://readthedocs.org/docs/nose/en/latest/) is installed: (pip install nose)Create a local file named:test_settings.pywith the following variables set to the relevant values:GOOGLE_SPREADSHEET_USER,GOOGLE_SPREADSHEET_PASSWORD,GOOGLE_SPREADSHEET_SOURCE,GOOGLE_SPREADSHEET_KEY,GOOGLE_WORKSHEET_KEY,COLUMN_NAME,COLUMN_UNIQUE_VALUERunnosetestsLicenseCopyright &copy; 2012 Yoav AviramSee LICENSE for details.
Package: pythonGPT3
pythonGPTpythonGPT Requests ModuleThe pythonGPT Requests module is a Python package that provides a convenient interface for making requests to the ChatGPT language model. It abstracts away the complexity of interacting with the model's API, allowing developers to easily integrate ChatGPT into their applications.You can ask one question by request function, or you can send a file of questions separated by a question mark to requests function, and you will get a text file with the answers.you can have your APi key from this link after signing inhttps://platform.openai.com/account/api-keysKey Features:Simple API: The module provides a high-level API that simplifies the process of sending messages and receiving responses from the ChatGPT model.Stateful Conversations: It supports stateful conversations, enabling users to have multi-turn interactions by maintaining context across messages.Error Handling: The module includes robust error handling to gracefully handle API errors and timeouts, ensuring a reliable integration.Usage Example:frompythonGPTimportPythonGPTchatgpt=ChatGPT(api_key='your-api-key')# Making a requestresponse=chatgpt.request("Hello, how are you?")print(response)# Submit multiple requests by txt fileresponse=chatgpt.requests('file.txt')print(response)MITLicenseCopyright(c)2023AhmedShededPermissionisherebygranted,freeofcharge,toanypersonobtainingacopyofthissoftwareandassociateddocumentationfiles(the"Software"),todealintheSoftwarewithoutrestriction,includingwithoutlimitationtherightstouse,copy,modify,merge,publish,distribute,sublicense,and/orsellcopiesoftheSoftware,andtopermitpersonstowhomtheSoftwareisfurnishedtodoso,subjecttothefollowingconditions:TheabovecopyrightnoticeandthispermissionnoticeshallbeincludedinallcopiesorsubstantialportionsoftheSoftware.THESOFTWAREISPROVIDED"AS IS",WITHOUTWARRANTYOFANYKIND,EXPRESSORIMPLIED,INCLUDINGBUTNOTLIMITEDTOTHEWARRANTIESOFMERCHANTABILITY,FITNESSFORAPARTICULARPURPOSEANDNONINFRINGEMENT.INNOEVENTSHALLTHEAUTHORSORCOPYRIGHTHOLDERSBELIABLEFORANYCLAIM,DAMAGESOROTHERLIABILITY,WHETHERINANACTIONOFCONTRACT,TORTOROTHERWISE,ARISINGFROM,OUTOFORINCONNECTIONWITHTHESOFTWAREORTHEUSEOROTHERDEALINGSINTHESOFTWARE.
Package: python-gpt-image
GPT ImageCreate GUID Partition Table disk images on local disks.  Written in pure Pythongpt-imageallows GPT disk images to bebuilton a local filesystem and
exported to a destination device.This is useful for creating a disk image on SD Cards or embedded devices.Quick Startimportgpt_image# create a new, 8 MB disk, size is in bytesdisk=gpt_image.disk.Disk("disk-image.raw")disk.create(8*1024*1024)# create a 2MB partition, default is a Linux partitionpartition=gpt_image.partition.Partition("partition1",2*1024*1024,uuid.uuid4())# add the partition to diskdisk.table.partitions.add(partition)disk.write()Changelogv0.4.0 (2022-05-28)FeatureAllow setting partition attributes (fa73bde)v0.3.2 (2022-05-21)FixCustom partition error class (bf2cdaa)Add missing types (f348697)v0.3.1 (2022-05-08)FixAllow guid to be None or UUID type (c2f15c7)Add marshal function (a7e06fd)v0.3.0 (2022-05-07)FeatureRead existing disk (#14) (ed83cb0)v0.2.2 (2022-04-03)FixAdjust pmbr partition size (#13) (379d615)v0.2.1 (2022-02-27)FixAdd partition tests (#9) (da41ad2)v0.2.0 (2022-02-26)FeatureAdd semantic release (#10) (95177b2)FixSet version (a4262c1)Use setup.py for package version (3d69f94)Remove partition wrapper (1f491ad)Move logic to Disk object (4ab2211)DocumentationUpdate comments (73e7052)MIT LicenseCopyright (c) 2021 Scott WysockiPermission 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: python-grace
python-graceAn unofficial Python wrapper forthe GRACE system(the public version for tree-level computations).This is a pre-alpha version.RequirementsPython >= 3.6.1pip >= 19.0C compilerFortran compilerMake utilityX Window system (optional, forgracefigandgrcdraw)Motif Toolkit or its clone (optional, forgracefig)ps2pdfin Ghostscript (optional, to generate PDF files withgracefig)Debian or Ubuntusudoapt-getinstallgfortranghostscriptlibmotif-devmakepython3-pipFedorasudodnfinstallgcc-gfortranghostscriptmakemotif-develpython3-pipInstallationUsepip:pipinstallpython-gracewhich installs thegracecommand.
(You may need to adjust$PATH.
You can always usepython -m grace, instead.)To select the compilers, specify them as environment variables whenpipruns:CC=gcc-12FC=gfortran-12pipinstallpython-graceYou can usepipxinstead ofpipif you prefer to install this software in an isolated and/or temporary environment.Examplemkdirmy_processcdmy_process
gracetemplatesm/eewwa
gracegrc
gracegracefig-# requires optional dependenciesgracegrcfort
makeall
./gauge
./integ
./springDevelopmentpoetryinstall
poetryruntaskprepareLicenseThe code in this repository is covered underthe MIT license.Note that, however, the source code of the GRACE system isnotMIT licensed.
Indeed, this repository itself does not contain any part of GRACE.
When you install this software, the source code distribution of GRACE will
automatically be downloaded from the original site.
Package: python-granatum
python-granatumIntroductionpython-granatumis a Python wrapper forGranatum Financeiro.Quick StartFill in the  in this script to get apandas.DataFramerepresentation of transactions for a given account.from datetime import date

from granatum import Granatum


granatum = Granatum()

email = '<your email>'
password = '<your password>'

granatum.login(email, password)

end_date = date(2019, 8, 31)
start_date = date(2019, 8, 1)
filters = {'conta_id': ['<name of the account>']}

granatum.exportar(end_date, start_date, filters, 'pandas.DataFrame')
Package: pythonGraph
pythonGraph is a simple graphics package for Python. Its design is loosely
descended from Adagraph and RAPTOR Graph. pythonGraph supports the creation of
a graphics window, the display of simple geometric shapes, and simple user
interactions using the mouse and keyboard.pythonGraph is designed for introductory programming courses, allowing students
to create a graphical user interface with minimal complexity.LicenseThis material is a United States government work (prepared by officers and
employees of the U.S. Government as part of their official duties) and is not
protected by copyright in the U.S. (17 U.S.C. Section 105) and may be used
without obtaining permission.
Package: python-graph
python-graphis a library for working with graphs in Python.This software provides ﻿a suitable data structure for representing graphs and a
whole set of important algorithms.The code is appropriately documented and API reference is generated
automatically by epydoc.Comments, bug reports and suggestions are welcome.Provided features and algorithms:Support for directed, undirected, weighted and non-weighted graphsSupport for hypergraphsCanonical operationsXML import and exportDOT-Language import and export (for usage with Graphviz)Random graph generationAccessibility (transitive closure)Breadth-first searchCritical path algorithmCut-vertex and cut-edge identificationCycle detectionDepth-first searchGomory-Hu cut-tree algorithmHeuristic search (A* algorithm)Identification of connected componentsMaximum-flow / Minimum-cut (Edmonds-Karp algorithm)Minimum spanning tree (Prim’s algorithm)Mutual-accessibility (strongly connected components)Pagerank algorithmShortest path search (Dijkstra’s algorithm)Shortest path search (Bellman-Ford algorithm)Topological sortingTransitive edge identification
Package: python-graphite-dashgen
OverviewGraphite-dashgen automates the creation ofGraphitedashboards. It creates
per-host or per-group dashboards based on YAML configuration files. The
per-host host dashboards are designed to create dashboards on existingcollectdmetrics. Unlike most of the alternatives below, this project seeks to
use existingGraphite0.9.9+ code.Example# Graphite Maintenance
# Delete stale Graphite data
0   22  *   *   *   find /opt/graphite/storage/log/ -type f -mtime +180 -delete
0   22  *   *   *   find /opt/graphite/storage/whisper/collectd/ -type f -mtime +90 -delete
0   22  *   *   *   find /opt/graphite/storage/whisper/statsd/ -type f -mtime +90 -delete
# Delete empty directories
0   23  *   *   *   find /opt/graphite/storage/log/ -type d -empty -delete
0   23  *   *   *   find /opt/graphite/storage/whisper/collectd/ -type d -empty -delete
0   23  *   *   *   find /opt/graphite/storage/whisper/statsd/ -type d -empty -delete
# Regenerate all dashboards
@daily /usr/local/sbin/dashgen.py -q -f /usr/local/etc/dashgen/dashconf.yml -f /usr/local/etc/dashgen/all_*.yml -H '*'The crontab example above:Cleans-up old graphite logsCleans-up old whisper databasesRegenerates per-host dashboards using the following configuration filesdashconf.yml: base configuration valuesall_dash.yml: per-host dashboard configuration (HOST_all dashboards)all_graphs.yml: per-host graph defintions for collectd metricsNotesYAML Configuration FilesTarget entries are as close to web GUI as possible to make it easier to go
back and forthDashboard TypesPer-HostPer-GroupPer-Host GraphsTypesHost Metrics: identified byglob_verifyand may containglob_metricsCarbon Metrics: identified bycarbon_matchand hostThe combination ofglob_metricsandglob_verifyshould result in a
single filesystem glob matchString TemplatesNamed substitutions draw fromtarget_vars. Graph
definitions that contain named substitutions not intarget_varsare
skipped.Commontarget_varsinclude:${color_combined}${color_free}${host}${metric}Graphite Graph Tips and TricksLines drawn by graphite obscure the lines drawn before them. Z order is
important. Consequently, many of the graphs’ metrics change color depending
on their values.For graphs that feature a free metric (ex. memory), that free metric is
always green (green should not be included in the template’slineColor)RequirementsGraphite 0.9.9+PyYAML(Ubuntu package:python-yaml)To DoMore documentation!Use templates with differentcolorListto easily differentiate graphs(?) should graphs be sorted by parent instead of children (ex. all diskvdagraphs before anyvdbgraphs)AlternativesA slightly different (and refreshing) take on Graphite dashboards:TasseoThe following projects existed before Graphite included a dashboard view:Etsy DashboardsGDashGraphitiTattleThe Graphite 0.9.12 documentation includes a good list of related software:Tools That Work With GraphiteContributorshttps://github.com/TimZehtahttps://github.com/insyteLicenseLICENSE.txt(MIT License)