Saravanan666/pypi-org huggingface dataset:
Package: gpxtools
gpxtoolsOverviewCommand line tools useful to manipulate GPX files.Toolsgpx-elevation-fixFixes elevation (Z-axis) data in GPX file based onShuttle Radar Topography
Missiondata.SRTMdata are not available for whole globe. If SRTM data
for position taken from GPX file do not exists, user will see download error
of SRTM TIF file (for example srtm_38_00.TIF for Norway).More information about Shuttle Radar Topography Mission:SRTMon CGIAR-CSISRTM on WikipediaSRTM world mapgpx-cleanupRemoves from GPX file unnecessary data (e.g.: speed or course) stored by some GPS devices.gpx-compressRemoves unnecessary chars (e.g.: white spaces) to decrease GPX file size.UsageUsage: command-name [options]

Options:
  -h, --help                show this help message and exit
  -i FILE, --intput=FILE    name of GPX input file, if not set stdin will be used
  -o FILE, --output=FILE    name of GPX output file, if not set stdout will be usedTools can be easily used in pipeline:cat input.gpx  | ./bin/gpx-fix-elevation | ./bin/gpx-cleanup | ./bin/gpx-compress > output.gpxInstallationgpxtoolsrequiresGDAL python bindings. This packege usesGDAL library.
You can build it form source or install from binary package.
For more details seeGDAL libraryhomepage.For example in Ubuntu (feisty or higher) can be installed from package:sudo apt-get install python-gdalgpxtoolsrequires alsolxml. To build it you can useplone.recipe.lxmlbuildout recipe.Installation witheasy_installRun command:$ easy_install gpxtoolsInstallation withbuildoutSave script inbuildout.cfgfile:[buildout]
develop = .
parts = gpxtools-script

[gpxtools-script]
recipe = zc.recipe.egg
eggs = gpxtoolsRun commands:$ python bootstrap.py
$ ./bin/buildoutCommands will be created inbinsubdirectory.Referencesgpxtools home pagegpxtools at pypiGDAL python bindingsGDAL librarySRTMlxmlplone.recipe.lxmlSRTM on WikipediaSRTM world mapAuthors & Contact[sargo] -Wojciech Lichota<wojciech[at]lichota.pl>[teo] - Matteo Gottardi <matgott[at]tin.it>Changelog2010/02/15 0.2.1:mkdir import fix [samuel.adam]2009/12/10 0.2.0:Support for GPX 1.0 files [teo]Add the <ele> tag if not present [teo]Documentation update [sargo]2009/07/07 0.1.0:Initial release [sargo]
Package: gpxutils
Tools for working with GPX files.gpxcleanClean GPX tracks and split into multiple files.gpxpullPull files from modern Garmin GPSes, clean, and split. On Windows, with the help of the USB Drive Letter Manager (http://www.uwe-sieber.de/usbdlm_e.html), gpxpull can automatically download and clean GPX files from a USB-connected Garmin GPS.
Package: gpycat
gpycatThis is a WIP unofficial Python wrapper for the Gfycat web API.Installation# Using pippipinstallgpycat# OR# Using poetrypoetryaddgpycatUsagefromgpycatimportgpycat# Import your client ID/secret from environment variablesgpycat.auth(client_id=CLIENT_ID,client_secret=CLIENT_SECRET)item=gpycat.get_gfycat("zestycreepyasiaticlesserfreshwaterclam")Output:>GfyItem(title="...",description="...",avgColor="...",content_urls={...},...)
Package: gpycraft
Google Sheets Database and Firestore Upload
This Python script provides a simple interface to interact with Google Sheets as a database and upload files to Firebase Storage. The functionality is divided into two classes - gsheetsdb for handling Google Sheets operations and FireStoreUpload for handling Firebase Storage uploads.gsheetsdb Class
Initialization
python
Copy code
from googlepycraft.googleSheet.gsheetsdb import gsheetsdb
Initialize the gsheetsdb class with the path to your Google Sheets service account credentials JSON file and the URL of the Google Sheets document.python
Copy code
db = gsheetsdb(credentials_path='path/to/credentials.json', sheet_url='https://docs.google.com/spreadsheets/d/your_spreadsheet_id/edit')
Reading Data from Google Sheets
read_sheet Method
python
Copy codeRead data from Google Sheetsdata = db.read_sheet(key='column_name', number_of_rows=5, start_index=1, end_index=10)
key: The column name to filter data by.
number_of_rows: The number of rows to retrieve.
start_index and end_index: The range of rows to retrieve.
Converting Data to Pandas DataFrame
in_pd Method
python
Copy codeConvert data to Pandas DataFramedf = db.in_pd()
Converting Data to JSON
in_json Method
python
Copy codeConvert data to JSONjson_data = db.in_json(target_key='column_name', num_rows=5, start_index=1, end_index=10)
target_key: The specific key to include in the JSON output.
num_rows: The number of rows to include in the JSON output.
start_index and end_index: The range of rows to include in the JSON output.
FireStoreUpload Class
Initialization
python
Copy code
from googlepycraft.fireStore.firestoreupload import FireStoreUpload
Initialize the FireStoreUpload class with the path to your Firebase service account credentials JSON file and the name of your Firebase Storage bucket.python
Copy code
uploader = FireStoreUpload(credentials_path='path/to/firebase_credentials.json', storage_bucket='your_storage_bucket_name')
Uploading Files to Firebase Storage
upload_file Method
python
Copy codeUpload a file to Firebase Storageuploader.upload_file(local_file_path='path/to/local/file.txt')
local_file_path: The local path of the file to be uploaded.
Example Usage
python
Copy codeExample usage of gsheetsdbdb = gsheetsdb(credentials_path='path/to/credentials.json', sheet_url='https://docs.google.com/spreadsheets/d/your_spreadsheet_id/edit')
data = db.read_sheet(key='column_name', number_of_rows=5, start_index=1, end_index=10)
df = db.in_pd()
json_data = db.in_json(target_key='column_name', num_rows=5, start_index=1, end_index=10)Example usage of FireStoreUploaduploader = FireStoreUpload(credentials_path='path/to/firebase_credentials.json', storage_bucket='your_storage_bucket_name')
uploader.upload_file(local_file_path='path/to/local/file.txt')Note: Make sure to replace placeholders such as path/to/credentials.json, your_spreadsheet_id, your_storage_bucket_name, etc., with your actual file paths and identifiers.
Package: gpyrn
gpyrnModelling stellar activity with Gaussian process regression networksgpyrnis a Python package implementing a GPRN framework for the analysis of RV
datasets.A GPRN is a model for multi-output regression which exploits the
structural properties of neural networks and the flexibility of Gaussian
processes.The GPRN was originally proposed byWilson et al. (2012).DocumentationDocumentation is availablehere.AuthorsThegpyrnpackage was developed atIA, in the context
of the PhD thesis of João Camacho, with contributions from João Faria and
Pedro Viana.CiteIf you use this package in your work, please cite the following publication
(currently under review)@ARTICLE{gpyrn2022,author={{Camacho}, J.~D. and {Faria}, J.~P. and {Viana}, P.~T.~P.},title="{Modelling stellar activity with Gaussian process regression networks}",journal={arXiv e-prints},keywords={Astrophysics - Earth and Planetary Astrophysics, Astrophysics - Solar and Stellar Astrophysics},year=2022,month=may,eid={arXiv:2205.06627},pages={arXiv:2205.06627},archivePrefix={arXiv},eprint={2205.06627},primaryClass={astro-ph.EP},adsurl={https://ui.adsabs.harvard.edu/abs/2022arXiv220506627C},adsnote={Provided by the SAO/NASA Astrophysics Data System}}LicenseCopyright 2022 Institute of Astrophysics and Space Sciences.Licensed under the MIT license (seeLICENSE).
Package: gpyt
gpytGPT in your terminal.NoteWIPTry out the new (experimental and buggy)FREEmodel usingGPT4Free:$ gpyt --free^ NO API KEY requiredOR Try out PaLM 2 (requires Google MakerSuite API KEY)$ gpyt --palmIf you have access, you can try out GPT4$ gpyt --gpt4UsesTextual.DemoMarkdown SupportInstallation & Usage$ pip install gpytaddOPENAI_API_KEY="<your_openai_api_key>"in a.envat $HOME orexport OPENAI_API_KEY=<your_key>$ gpytOr try thisoptionalmethod for runninggpytif you don't have an api key:$ gpyt --freeOr try thisoptionalmethod for runningPaLM 2, Google's premier LLM:$ gpyt --palmBe sure to set an api key at~/.envwith the fieldPALM_API_KEYOr try out GPT4 w/ gpyt!$ gpyt --gpt4Keybindingsctrl-b-> Toggle Dark/Light Modectrl-n-> Open Past Conversations Sidebarctrl-c-> Quitctrl-o-> Model Selection Menuctrl-t-> Open External Editor (for input)ctrl-x-> hide input box (helpful for small screens)TODOadd gpt jailbreaks (DAN-esque)add special flags like -t (terse) or -v (verbose) or -d (detailed) or -i
Package: gpytranslate
gpytranslateA Python3 library for translating text using Google Translate API.FeaturesBoth Synchronous and AsynchronousDot accessible valuesSupports emojiType hintedFree to useEasyQuick StartInstallationRequirements:Python 3.7 or higher.$python3-mpipinstall-UgpytranslateUsageAsync Example:fromgpytranslateimportTranslatorimportasyncioasyncdefmain():t=Translator()translation=awaitt.translate("Ciao come stai? Io bene ahah.",targetlang="en")language=awaitt.detect(translation.text)print(f"Translation:{translation.text}\nDetected language:{language}")if__name__=="__main__":asyncio.run(main())Sync Example:fromgpytranslateimportSyncTranslatort=SyncTranslator()translation=t.translate("Ciao come stai? Io bene ahah.",targetlang="en")language=t.detect(translation.text)print(f"Translation:{translation.text}\nDetected language:{language}")❓Note:you could also checktestsfolder for extra examples.Output:Translation: Hello how are you? I'm fine, haha.
Detected language: enText to SpeechAsync Example:importasyncio,aiofilesfromgpytranslateimportTranslatorasyncdefmain():translator=Translator()asyncwithaiofiles.open("test.mp3","wb")asfile:awaittranslator.tts("Hello world!",file=file)if__name__=="__main__":asyncio.run(main())Sync Example:fromgpytranslateimportSyncTranslatortranslator=SyncTranslator()withopen("test.mp3","wb")asfile:translator.tts("Hello world!",file=file)Useful Resourceshttps://danpetrov.xyz/programming/2021/12/30/telegram-google-translate.htmlhttps://vielhuber.de/en/blog/google-translation-api-hacking/https://github.com/OwlGramDev/OwlGram/blob/b9bb8a247758adbf7be7aaf3eb150f680bec1269/TMessagesProj/src/main/java/it/owlgram/android/translator/GoogleAppTranslator.javaDevelopmentWant to contribute? Pull requests are accepted!LicenseLicensed under the MIT License.Clickherefor further information.
Package: gQiwiAPI
gQiwiAPI byGnifajioA simple API for creating a payment linkInstallationgitclonehttps://github.com/gnifajio/gQiwiAPI.git
pipinstall-rrequirements.txtcdgQiwiAPI
python3setup.pyinstallorpipinstallgQiwiAPIUsage# InitializationfromgQiwiAPIimportQiwiSECRET_KEY='Your secret key for managing payments'qiwi=Qiwi(SECRET_KEY)# Creating a billmy_first_bill=qiwi.new(10,'15m')# Getting a payment linkpayUrl=my_first_bill.payUrl# Checking the payment statusbill_state=qiwi.status(my_first_bill)# Checking the payment status by idstate_by_id=qiwi.check_id(my_first_bill.bill_id)You can getSECRET_KEYonofficial website.SyntaxclassQiwi:defnew(self,amount,comment=None,exp_dt='15m'):...amount- the amount of the payment in rubles.comment- commentexpDT- the validity time of the link.AboutamountI will only say that you can passstr,intandfloatthere and everything will work fine.The default comment is set toNone, and is not used.
You can add a comment to the payment like this:qiwi.create_bill(self,10,comment='Test',expDT='30m')expDTis set in the formatnd:nh:nm:ns, wheren- intd- daysh- hoursm- minutess- secondsYou can pass both integer and fractional numbers ton, the order is also not important.
For example:fromgQiwiAPIimportQiwiqiwi=Qiwi('SECRET_KEY')amount=10qiwi.new(amount,exp_dt='0.3d:77m:0.5h')LinksQIWI: API of P2P accounts. Invoicing.QIWI: Authentication data.TODOExpand the APIAddcustomersupportAddcustomFieldssupport
Package: gql
GQLThis is a GraphQL client for Python 3.7+.
Plays nicely withgraphene,graphql-core,graphql-jsand any other GraphQL implementation compatible with the spec.GQL architecture is inspired byReact-RelayandApollo-Client.DocumentationThe complete documentation for GQL can be found atgql.readthedocs.io.FeaturesExecute GraphQL queries usingdifferent protocols:httpwebsockets:apollo or graphql-ws protocolPhoenix channelsAWS AppSync realtime protocol (experimental)Possibility tovalidate the queries locallyusing a GraphQL schema provided locally or fetched from the backend using an instrospection querySupports GraphQL queries, mutations andsubscriptionsSupportssync or async usage,allowing concurrent requestsSupportsFile uploadsSupportsCustom scalars / Enumsgql-cli scriptto execute GraphQL queries or download schemas from the command lineDSL moduleto compose GraphQL queries dynamicallyInstallationYou can install GQL with all the optional dependencies using pip:# Quotes may be required on certain shells such as zsh.pipinstall"gql[all]"NOTE: See alsothe documentationto install GQL with less extra dependencies depending on the transports you would like to use or for alternative installation methods.UsageBasic usagefromgqlimportgql,Clientfromgql.transport.aiohttpimportAIOHTTPTransport# Select your transport with a defined url endpointtransport=AIOHTTPTransport(url="https://countries.trevorblades.com/")# Create a GraphQL client using the defined transportclient=Client(transport=transport,fetch_schema_from_transport=True)# Provide a GraphQL queryquery=gql("""query getContinents {continents {codename}}""")# Execute the query on the transportresult=client.execute(query)print(result)Executing the above code should output the following result:$ python basic_example.py
{'continents': [{'code': 'AF', 'name': 'Africa'}, {'code': 'AN', 'name': 'Antarctica'}, {'code': 'AS', 'name': 'Asia'}, {'code': 'EU', 'name': 'Europe'}, {'code': 'NA', 'name': 'North America'}, {'code': 'OC', 'name': 'Oceania'}, {'code': 'SA', 'name': 'South America'}]}WARNING: Please note that this basic example won't work if you have an asyncio event loop running. In some
python environments (as with Jupyter which uses IPython) an asyncio event loop is created for you. In that case you
should use instead theasync usage example.ContributingSeeCONTRIBUTING.mdLicenseMIT License
Package: gqla
GQLA - GraphQL AssistantGQLA provides an easy way to fetch data from GraphQL api on server side.Navigation:IntroUsageInstallationStructureIntroGQLA is published under MIT license and doesn't provide any warranty. It is single person developed package.No roadmapNo warrantyNo consistencyNo active and fast responces to devUsageWARNING:watch carefull about your recursion depth; nodes and edges also counted as recursion level;Example of basic usage bellow:fromgqlaimportGQLA# Create a list of ignored fields (recommended values)ignore=['pageInfo','deprecationReason','isDeprecated','cursor','parent1','id']# Create a list of fields you only want to retrieveonly=['edges','node','code','name','StarObject','PlanetObject','orbitals']# Create a GQLA class instance with provided settingshelper=GQLA('solar',url='localhost',port='8080',usefolder=True,only=only,ignore=ignore,recursive_depth=5)# Set output visualization to "pretty" jsonhelper._pretty=True# Gather service structureawaithelper.introspection()# Request 'allStellar' query with arguments (filters:{not: {objectType: planet}}, first: 5) and save to json fileawaithelper.query_one('allStellar',usefolder=True,filters={'not':{'objectType':'planet'}},first='5')# Request 'allStellar' query with fields in 'only' list and arguments (first: 1) without saving to fileresult=awaithelper.query_one('allStellar',usefolder=False,only_fields=True,first='1')# Print result of executionprint(result)InstallationPIPpip install gqlaSETUPpython setup.py installRequirements:r/w access if using folder to save infrastucturepython >= 3.5aiohttpStructureClassesstatics- static data like intrispection query and url/query templatesGQLStorage- Storage package to contain and parse GraphQL data typesVerticalStorage- package to share data between vertical structuresGenerator- Generator package used to create queries from modelGQLModel- Model package containing GraphQL service dataabstracts- package containing abstracts of all classesGQQStorage- Queries storage packageExecutor- Executor packageGQQuery- Queries packageGQLA- main classParameters:usefolder- directive to use folder to store data such as service model, querries and returned dataname- name used to define service; required to create folders ifusefolderis set_subpid- number of subtask running; No actual usage besides loggingignore- list of statements to ignore during querries generationonly- list of statements to keep during querries generationrecursive_depth- recursion depth limitation;port- port ofGraphQLserviceurl- url ofGraphQLserviceMethodsNotice thatasyncmeant to execute in execution loop;introspection- method to gather information about service;asyncquery_one- method to generate and execute querries;async
Package: gqlactioncable
gql-actioncableThis is agraphql-python/gqltransport
for the ActionCable websockets protocol.InstallationYou can install the transport with:pip install gqlactioncableUsageHere is an example using the sorare.com GraphQL websockets backend:importasynciofromgqlimportClient,gqlfromgqlactioncableimportActionCableWebsocketsTransportasyncdefmain():transport=ActionCableWebsocketsTransport(url="wss://ws.sorare.com/cable",)asyncwithClient(transport=transport)assession:subscription=gql("""subscription onAnyCardUpdated {aCardWasUpdated {slug}}""")asyncforresultinsession.subscribe(subscription):print(result)asyncio.run(main())LicenseMIT License
Package: gql-appsync-cognito-authentication
gql-appsync-cognito-authorizationAnAppSyncAuthenticationimplementation forgql.transport.aiohttp.AIOHTTPTransportusingpycognitoInstallationpipinstallgql-appsync-cognito-authenticationUsagefromgqlimportClientfromgql.transport.aiohttpimportAIOHTTPTransportfromgql_appsync_cognito_authenticationimportAppSyncCognitoAuthenticationfrompycognitoimportCognitocognito=Cognito(...)client=Client(transport=AIOHTTPTransport(auth=AppSyncCognitoAuthentication(cognito),...),...)
Package: gql-checker
Aflake8andPylamaplugin that checks the
all the static gql calls given a GraphQL schema.It will not check anything else about the gql calls. Merely that the
GraphQL syntax is correct and it validates against the provided schema.WarningsThis package adds 3 new flake8 warningsGQL100: The gql query is doesn’t match GraphQL syntaxGQL101: The gql query have valid syntax but doesn’t validate against provided schemaConfigurationYou will want to set thegql-introspection-schemaoption to a
file with the json introspection of the schema.
Package: gql-fork
This is a GraphQL client for Python. Plays nicely withgraphene,graphql-core,graphql-jsand any other GraphQL implementation
compatible with the spec.GQL architecture is inspired byReact-RelayandApollo-Client.Installation$ pip install gql-forkUsageThe example below shows how you can execute queries against a local
schema.fromgqlimportgql,Clientclient=Client(schema=schema)query=gql('''
{
  hello
}
''')client.execute(query)LicenseMIT
License
Package: gqlite
gqliteSimple client for querying GraphQL from Python usingrequests.InstallationpipinstallgqliteUsageFirst set the two environment variablesGQLITE_URLandGQLITE_TOKEN.
You can also use a.envfile for these. Then:importgqlitetext="""hero {name}}"""gqlite.query(text)# returns a dictYou can also set variables using thevariableskeyword argument ofgqlite.query.
Package: gqlitedb
GQLite is a C++-language library, with a C interface, that implements a small, fast, self-contained, high-reliability, full-featured, Graph Query database engine. The data is stored in a SQLite database, which the fasted and most used SQL database. This enable to achieve high performance and for application to combine Graph queries with traditional SQL queries.GQLite source code is license under theMIT Licenseand is free to everyone to use for any purpose.The official repositories contains bindings/APIs for C, C++, Python, Ruby and Crystal.The library is still in its early stage, but it is now fully functional. Development effort has now slowed down and new features are added on a by-need basis. It supports a subset ofOpenCypher, and the intent is to also support ISO GQL in the future when it become available.Example of useimportgqlitetry:# Create a database on the file "test.db"connection=gqlite.connect("test.db")# Execute a simple query to create a node and return all the nodesvalue=connection.execute_oc_query("CREATE () MATCH (n) RETURN n")# Print the resultprint(f"Results are{value}")exceptgqlite.Errorasex:# Report any errorprint(f"An error has occured: #{ex.msg}")The documentation for the openCypher query language can found inopenCypherand for theAPI.
Package: gqlmod
Importable GraphQL modulesgqlmodallows you to keep your GraphQL queries in.gqlfiles and import them
as modules.Validation of queries at import timeValidation of queries against the schemaUsageInstall bothgqlmodand any providers you need. (Thestarwarsprovider ships
withgqlmod, so you can begin playing with it immediately.)Define a.gqlfile with your queries and mutations, like so:#~starwars~queryHeroForEpisode($ep:Episode!){hero(episode:$ep){name...onDroid{primaryFunction}...onHuman{homePlanet}}}And then you can just import it and use it:importgqlmod# noqafrommygqlimportHeroForEpisodeprint(HeroForEpisode(ep='JEDI'))WhySo why use this?Strong validation as soon as possible (when the modules are imported)All the work is done at warmup, not when the query is madeI think not mixing languages produces cleaner code?
Package: gqlmod-github
GitHub ProviderThis is a provider forgqlmodthat adds thegithubprovider.The provider itself just takes atoken, which is the Bearer token to send.
There's a few ways to get this:Personal Access Token: Head to theappropriate settings pageand just ask GitHub for a tokenOAuth:Implement the appropriate callbacksand get a tokenUsername and password: GitHub has anHTTP Basic Authentication endpointfor username/password authentication (does not work with SAML SSO or two-factor authentication)Private Key: To act as an app, download your private key and follow theprivate key flowto produce a JWTPreviewsGitHub API previews are handled automatically. If your query invokes an API
preview, the appropriate flags will be sent as part of the request.Be sure to use some kind of CI system to make sure changes to previews won't
break your code.The full list of previews can be found inthe API documentation.