Saravanan666/pypi-org huggingface dataset:
Package: gdphelper
gdphelperThis package is designed to take the url of any of the several dozen GDP-related csv datasets from theCanadian Government Open Data Portaland download, clean load, summarize and visualize the data contained within.It contains 4 functions:gdpimporter: Downloads the zipped data, extracts, renames the appropriate csv, and returns a dataframe along with the title from the meta data.gdpcleaner: Loads the data, removes spurious columns, renames used columns, scrubs and data issues. Returns a basic data frame and some category flags.gdpdescribe: Evaluates the data category and generates summary statistics by year, region, industry, etc.gdpplotter: Generates a set of visualizations of the data set according to the user's choices.This package is built upon a bunch of popular packages in Python ecosystem, includingzipfile,matplotlib, andpandas.What makes this package unique is that it incorporates the common functionalities and streamlines the workflow from downloading the data to performing simple EDA, specifically for the GDP-related data from the Canadian Government Open Data Portal.Installation$pipinstallgdphelperUsagefromgdphelperimportgdpimporterfromgdphelperimportgdpcleanerfromgdphelperimportgdpdescribefromgdphelperimportgdpplotterURL="https://www150.statcan.gc.ca/n1/tbl/csv/36100400-eng.zip"data_frame,title=gdpimporter.gdpimporter(URL)clean_frame=gdpcleaner.gdpcleaner(data_frame)gdpdescribe.gdpdescribe(clean_frame,"Value","Location",stats=["mean","median","sd","min","max","range_"],dec=2)gdpplotter.gdpplotter(clean_frame)for more detailed documentation, see:https://gdphelper.readthedocs.io/en/latest/ContributorsAldo Barrosaldosaltao@gmail.comGabe Fairbrothergfairbrother@gmail.comWanying Yewanying.ye2020@gmail.comRamiro Mejiaramiromejiap@gmail.comContributingInterested in contributing? Check out thecontributing guidelines. Please note that this project is released with aCode of Conduct. By contributing to this project, you agree to abide by its terms.Licensegdphelperwas created by Aldo Barros, Gabriel Fairbrother, Ramiro Mejia, Wanying Ye. It is licensed under the terms of the MIT license.Creditsgdphelperwas created withcookiecutterand thepy-pkgs-cookiecuttertemplate.
Package: gdplot
Project description'gdplot' is a library to generate  charts of predefined format and produce a chart of specific nature, i.e average sales and timeperiod, using the data available in google sheets.
It requires your google credentials and the file access to produce a chart.No credentials savedLinksGitHub: https://github.com/sumankumar0091/gdplot
    PyPI: https://pypi.org/project/gdplot/
    Documentation: 
    Issue Tracker:https://github.com/sumankumar0091/gdplot/issues
    Download:InstallationThis package runs under Python3.5+, usepipto install:$ pip install gdplotGet google CredentialsLog into theGoogle Developers Consolewith the Google account to the spreadsheets you want to access. Create (or select) a project and enable the Drive API and Sheets API (under Google Apps APIs).Go to the Credentials for your project and create New credentials > OAuth client ID > of type Other. In the list of your OAuth 2.0 client IDs click Download JSON for the Client ID you just created. Save the file as client_secrets.json in your home directory (user directory). Another file, named storage.json in this example, will be created after successful authorization to cache OAuth data.
On you first usage of gsheets with this file (holding the client secrets), your webbrowser will be opened, asking you to log in with your Google account to authorize this client read access to all its Google Drive files and Google Sheets.If this does not work refer to link under See also section.UsageSyntax:
> import gdplot as gd
> gd.create_chart($credentials, $URL)e.g.:
> import gdplot as gd
> gd.create_chart(/gcp_credentials/client_secret.json, https://docs.google.com/spreadsheets/d/1pzmXgLMMMWdsfuNuq3a15tP7kbsHpijVAU0BGAJrOAP/edit#gid=0)See also''https://medium.com/swlh/google-drive-api-with-python-part-i-set-up-credentials-1f729cb0372b(Source:https://medium.com/@billydharmawan)https://medium.com/@osanda.deshan/getting-google-oauth-access-token-using-google-apis-18b2ba11a11a(Source:https://medium.com/@osanda.deshan)
''LicenseThis package is distributed under theMIT license.
Package: gdpr
Publish to PyPI, and let's see how thePython Software Foundationinterprets consent GDPR-wiseContextPyPI was subpoenaed, especiallypoint 6:A synopsis of all IP Addresses for each username from previous records were shared. These were sourced from our database records and are private to PyPI.Hacker Newsdiscussion about thisWho does the data protection law apply to?Does the GDPR apply to companies outside of the EU?When do the GDPR provisions apply to non-EU businesses?Steps to reproduceBe in the European Union. No citizenship required.Create an account athttps://pypi.org/account/register/(archive.isEnglish localization memento from 24 May 2023 20:25:43 UTC). Notice that you don't have to provide any explicit consent to any terms and conditions.Confirm verification e-mail. Notice it just contains a confirmation link, e.g.https://pypi.org/account/verify-email/?token=eyJhY3Rpb24iOiJlbWFpbC12ZXJpZnkiLCJlbWFpbC5pZCI6IjEyMzQ1IiwiYWxnIjoiSFMyNTYifQ.YWJjZA.bB3cVvD2EnTZ7sOD7XNPnxv0xgl9Q3svmcDCG8UTR9Q.Thetokenparameter value is an unencrypted,HMACSHA256-signedJSON Web Token, in this example it provides the following information (try it out athttps://jwt.io/):// header
{
  "action": "email-verify",
  "email.id": "12345",
  "alg": "HS256"
}

// payload
"abcd"Visit thePython Packaging Authority's (PyPA)pypa/sampleprojectGitHub project page.SelectUse this templateand create your own fork, e.g.Abdull/gdpr.Adapt repository files, in particularpyproject.tomlandREADME.md.Build:# see https://packaging.python.org/en/latest/flow/
# see https://packaging.python.org/en/latest/tutorials/installing-packages/
# see https://packaging.python.org/en/latest/tutorials/packaging-projects/

# assuming Debian 11 bullseye in the following

# get ensurepip, Debian apt-way:
sudo apt install python3-venv

pip install --upgrade pip setuptools wheel build

# inside your project
python3 -m build

# on success, shall end with line
# Successfully built gdpr-1.0.0.tar.gz and gdpr-1.0.0-py3-none-any.whl
Package: gdpr_check
GDPR CheckerThis module is designed to make it easier to look up if a user appears to be a resident covered by the GDPR based on IP address.This is only a best-effort guess, no guarantee or claim is made that this information will always be accurate or reliable.Installation:pip install gdpr_check maxminddb-geolite2Usage:from gdpr_check import Checker

# default uses bundled GeoLite2 DB:
c = Checker()

# optional: pass path to local maxmind GeoIP2 database
c = Checker('/path/to/GeoLite2-Country_20180501/GeoLite2-Country.mmdb')

# check IPs
c.is_gdpr_resident_ip('162.255.119.253')  # returns True - Czech Republic IP
c.is_gdpr_resident_ip('98.158.84.74')  # returns False - Canadian IP
Package: gdprox
gdprox, proximal gradient-descent algorithmsImplements the proximal gradient-descent algorithm for composite objective functions, i.e. functions of the formf(x) + g(x), where f is a smooth function and g is a possibly non-smooth function for which the proximal operator is known.The main function in this package isgdprox.fmin_cgprox. This function follows a similar interface than the functions inscipy.optimize. The definition of this function is:deffmin_cgprox(f,fprime,g_prox,x0,rtol=1e-6,maxiter=1000,verbose=0,default_step_size=1.):"""
    proximal gradient-descent solver for optimization problems of the form

                       minimize_x f(x) + g(x)

    where f is a smooth function and g is a (possibly non-smooth)
    function for which the proximal operator is known.

    Parameters
    ----------
    f : callable
        f(x) returns the value of f at x.

    f_prime : callable
        f_prime(x) returns the gradient of f.

    g_prox : callable of the form g_prox(x, alpha)
        g_prox(x, alpha) returns the proximal operator of g at x
        with parameter alpha.

    x0 : array-like
        Initial guess

    maxiter : int
        Maximum number of iterations.

    verbose : int
        Verbosity level, from 0 (no output) to 2 (output on each iteration)

    default_step_size : float
        Starting value for the line-search procedure.

    Returns
    -------
    res : OptimizeResult
        The optimization result represented as a
        ``scipy.optimize.OptimizeResult`` object. Important attributes are:
        ``x`` the solution array, ``success`` a Boolean flag indicating if
        the optimizer exited successfully and ``message`` which describes
        the cause of the termination. See `scipy.optimize.OptimizeResult`
        for a description of other attributes.
    """
Package: gdpstorage
Google Drive Personal Storage for DjangoGDPS is a django app to provide Google Drive as a Storage Backeend for Django Project.
It can be used to store the files in the user space (visible in the Web UI of Google Drive) while other librairies propose the use of Google Cloud Project to achieve the same results (with the downside of not being able to see the uploaded files).FeaturesUse your Personal Google Cloud Folder as a Storage Backend.Few views are added for Authorization with Google Drive and its renew (if you decide later to change the Google Account used).For convenience, few abstract models (abstract and on-demande obvisouly)  are provided to add the functionnality of SoftDeletion to your project (which is important if you are manipulationg Files).InspirationThis package was hugely inspired by :@torre76 excellent package :https://github.com/torre76/django-googledrive-storage@iterative excellent package :https://github.com/iterative/PyDrive2Installationpip install gdpstorageSetup-Add "gdpstorage" to your INSTALLED_APPS setting like this :INSTALLED_APPS=[...'gdpstorage',]-Include the gdpstorage's URLconf in your project urls.py like this:path('gdps/',include('gdpstorage.urls'))-Add The following settings to your settings.py :# Replace [MY-GD-FOLDERNAME] by the name of your Google Drive Folder you wish to use as root Media folder.GOOGLE_DRIVE_STORAGE_MEDIA_ROOT="MY-GD-FOLDERNAME"-Change your Default Storage Engine (if you want to use GD globaly, else you can change it on field basis using the storage keyword argument )DEFAULT_FILE_STORAGE="gdpstorage.storage.GoogleDriveStorage"-Create your Oath2 application and download your client_secrets.json file (seehttps://github.com/torre76/django-googledrive-storagedocumentation for steps )
-Put your file client_secrets.json at the root of your Django project (beside manage.py)
-Authorize the access to your Google Drive Folder by visiting:sh http://127.0.0.1:8000/gdps/authorizeDevelopmentWant to contribute? Great!
Feel free to make a pull request or post any issues in the Github repo.https://github.com/jadliaissam/django-gdpstorageLicenseMIT
Package: gdptools-pygeoapi-plugin
title: README
---Gdptools Pygeoapi PluginFeaturesTODORequirementsTODOInstallationYou can installGdptools Pygeoapi PluginviapipfromPyPI:pip install gdptools-pygeoapi-pluginUsagePlease see theCommand-line Referencefor details.ContributingContributions are very welcome. To learn more, see the Contributor Guide_.LicenseDistributed under the terms of theCC0 1.0 Universal license,Gdptools Pygeoapi Pluginis free and open source software.IssuesIf you encounter any problems, pleasefile an issuealong with a detailed description.CreditsThis project was generated from@chill'sPygeoapi Plugin Cookiecuttertemplate.
Package: gd.py
gd.pyAn API wrapper for Geometry Dash written in Python.InstallingPython 3.7 or above is required.pipInstalling the library withpipis quite simple:$pipinstallgd.pyAlternatively, the library can be installed from source:$gitclonehttps://github.com/nekitdev/gd.py.git$cdgd.py$python-mpipinstall.poetryYou can addgd.pyas a dependency with the following command:$poetryaddgd.pyOr by directly specifying it in the configuration like so:[tool.poetry.dependencies]"gd.py"="^1.0.1"Alternatively, you can add it directly from the source:[tool.poetry.dependencies."gd.py"]git="https://github.com/nekitdev/gd.py.git"ExamplesFetching# file.pyimportasyncioimportgdSONG_ID=1081309SONG="{}by{}(ID:{}, size:{}MB)"asyncdefmain()->None:client=gd.Client()song=awaitclient.get_song(SONG_ID)print(SONG.format(song.name,song.artist.name,song.id,song.size))asyncio.run(main())$pythonfile.pyPANDA EYES - BROKEN by PandaEyesOfficial (ID: 1081309, size: 9.71 MB)Listeningimportgdclient=gd.Client()DAILY="new daily!{daily.name}by{daily.creator.name}(ID:{daily.id})"@client.eventasyncdefon_daily(daily:gd.Level)->None:print(DAILY.format(daily=daily))client.listen_for_daily()client.create_controller().run()DocumentationYou can find the documentationhere.SupportIf you need support with the library, you can send anemailor refer to the officialDiscord server.ChangelogYou can find the changeloghere.Security PolicyYou can find the Security Policy ofgd.pyhere.ContributingIf you are interested in contributing togd.py, make sure to take a look at theContributing Guide, as well as theCode of Conduct.Licensegd.pyis licensed under the MIT License terms. SeeLicensefor details.
Package: gdrive-bot
gdrive-botUpload files to your gdrive with gdrive-bot without using google-api-python-client.FeaturesProgress barInstallationpip3install-Ugdrive-botUsageg-botsetup# setup your gdrive credentialsg-botreset# reset to default your gdrive credentialsg-botup{file_name}# upload gdrive channel or groupg-botd{url}# download and upload file to your gdriveAPIThe g-bot client is also usable through an API (for test integration, automation, etc)g_bot.main.upload_file(access_token:str, filename:str, filedirectory:str, folder_id: str = None)fromg_bot.mainimportupload_fileupload_file(access_token:str,filename:str,filedirectory:str,folder_id:str=None)
Package: gdrive-datastore
gdrive-datastoreA package that facilitates storing data to Google DrivebuildTo build distribution, simply run:python -m buildinstall locally for testingTo install localling for testing, simply run:python -m pip install .test locallyTo test locally, simply run:pytest testsupload to test pypiBefore uploading, make sure you have a.pypircfile in your home directory that contains an API token for the test pypi site.  If this did not exist, the dev container would have created a directory of that name in its place.  You will hve to remove the created directory before creating the file.To upload to test pypi, simply run:python -m twine upload --repository testpypi dist/*install from test pypiTo install from test pypi, simply run:python -m pip install --index-urlhttps://test.pypi.org/simple/--no-deps gdrive-datastoreupload to pypiBefore uploading, make sure you have a.pypircfile in your home directory that contains an API token for the test pypi site.  If this did not exist, the dev container would have created a directory of that name in its place.  You will hve to remove the created directory before creating the file.To upload to test pypi, simply run:python -m twine upload dist/*install from pypiTo install from pypi, simply run:python -m pip install gdrive-datastore
Package: gdrivedownload
Simple script that downloads all files from given Google Drive folder.RequirementsPython 3.2+Installationpip install gdrivedownloadUsagegdrivedownload client_id client_secret folder_id out_pathclient_id- Google Drive OAuth2 client IDclient_secret- Google Drive OAuth2 secret keyfolder_id- Google Drive folder ID (usually the last part of the URL, likehttps://drive.google.com/drive/u/0/folders/<folder_id>)out_path- output directory to put the files into. Will be created recursively if does not existOAuth2 keys can be obtained usingGoogle Developer Console. Create a project,
then generate OAuth2 credentials forOtherapplication type.
Package: gdriveplayer
GDrivePlayerAPIA python wrapper for gdriveplayer.co APIInstructionspipinstallgdriveplayerUsageThe wrapper consists of 4 main classes.GAnimeGMovieGDramaGSeriesEach of those classes contain very similar methods.GAnimeMethodssearch(title:str|None='',limit:int|str|None=10,page:int|str|None=1)->List[Anime]Search an Anime. Returns a list ofAnimeObjects.TheAnimeObject consists of several attributes such asidtitlepostergenresummarystatustypetotal_episodesubplayer_urlExamplefromGDrivePlayerimportGAnimes=GAnime().search(title='Pokemon',limit=3)print(s)Output[<GDrivePlayer.anime.Animeobjectat0x7f89b8d63370>,<GDrivePlayer.anime.Animeobjectat0x7f89b8d633a0>,<GDrivePlayer.anime.Animeobjectat0x7f89b8d63160>]You can see the attributes of individual objects by doingfromGDrivePlayerimportGAnimes=GAnime().search(title='Bocchi the Rock')print(s[0].title)print(s[0].genre)print(s[0].id)print(s[0].status)print(s[0].summary)print(s[0].total_episode)OutputBocchi the Rock!
CGDCT, Comedy, Music, Slice of Life
290813
Ongoing
Hitori Gotou is a high school girl whos starting to learn to play the guitar because she dreams of being in a band, but shes so shy that she hasnt made a single friend. However, her dream might come true after she meets Nijika Ijichi, a girl who plays drums and is looking for a new guitarist for her band.
11LatestAnimes(limit:str|int|None=10,page:str|int|None=1,order:str|None="last_updated",sort:str|None="DESC")->List[Anime]Returns a list ofLatestAnimeobjects. TheLatestAnimeobject is very similar toAnimeobject. The only difference is that the former doesn't containsummaryattribute. This is due to the original API's structure.animeDetail(id:str|int)->AnimeReturnsAnimeObject of theidthat is passed to the method.ExamplefromGDrivePlayerimportGAnimes=GAnime().animeDetail(id=290813)print(s)print(s.title)print(s.summary)Output<GDrivePlayer.anime.Anime object at 0x7f7e68282290>
Bocchi the Rock!
Hitori Gotou is a high school girl whos starting to learn to play the guitar because she dreams of being in a band, but shes so shy that she hasnt made a single friend. However, her dream might come true after she meets Nijika Ijichi, a girl who plays drums and is looking for a new guitarist for her band.The classes such asGDrama,GMovieandGSeriesalso contain similar methods and similar Objects likeAnimeandLatestAnime.DisclaimerThe developer of this wrapper is in no way responsible for how the user utilises, modifies and/or accesses this wrapper.
Package: gdriveplotter
GdriveplotterIntroductionThis is a basic project built to read google sheet from google drive using the google credentials and google sheet key. The library can plot 2 types of graphs i.e. line plot and scatter plot.FilesREADME.md-> File describing the projectsetup.py->setup file to create a Python Library and host it on PyPitest.py->test file to check if the program is working or notGdriveplotterinit.py-> file where the program is implementedScreenshots-> Added screenshots of the working libraryGetting StartedThe user will have to login to the below link.https://console.developers.google.comAfter which the user has to do the following:Create a new projectAdd Google Drive API and Gsheet APIGo to Credentials and create a Service accountGet the key by downloading the json fileUse this file as Credentials for using the libraryinit.py fileThis file contains a function namedgdplot(). The library is built to ask the user to enter their credentials and Gsheet key to read the gsheet. The function will print out the head of the dataframe using pandas. Another input is taken from the user to mention the type of graph required i.e. Line plot or Scatter plot. After which the user has to mention the x-axis column name and y-axis column name and the function plots out the required graph.Creating Python Library and Publishing on PyPIHere is the link which will help you to create python library and publishing it on PyPIhttps://medium.com/little-big-engineering/lets-talk-about-python-packaging-6d84b81f1bb5Installing the Library from PyPIpip install gdriveplotterImporting and calling the functionimportgdriveplottergdriveplotter.gdplot()Pypi Linkhttps://pypi.org/project/gdriveplotter/NoteThe file should be in gsheet format to work. It wont work for any other format.
Package: gdrivepy
this setup file simply uses the google drive api and work accordinglyFeaturesAuthentication of usersUpload FilesCreate FoldersList FilesMore coming soonHow To Usefrom gdrivepy import auth,upload,createFolder,listFiles
if __name__ == '__main__':
    service = auth('credential/data.json') #credential Path
    # List Files
    data = listFiles(service)
    print(data['data'])

    #upload file
    data = upload(service, 'test.pdf', './files/sample.pdf', 'application/pdf', 'FOLDER-ID-HERE(optional)') #access, new name, file path , mime type,folder_id (folder id of parent folder leave blank if root folder)
    print(data)

    #Create a folder
    data = createFolder(service, 'folderName' 'FOLDER-ID-HERE(optional)'); # access, new folder name, folder_id (folder id of parent folder leave blank if root folder)
    print(data)
Package: gdrive-pydantic-wrapper
Py Google DriveSkeleton project created by Cookiecutter PyPackageDocumentation:https://luiscberrocal.github.io/gdrive-pydantic-wrapperGitHub:https://github.com/luiscberrocal/gdrive-pydantic-wrapperPyPI:https://pypi.org/project/gdrive-pydantic-wrapper/Free software: MITInstallationpoetryaddgdrive_pydantic_wrapperFeaturesTODOCreditsThis package was created withCookiecutter,waynerv/cookiecutter-pypackageandluiscberrocal/cookiecutter-pypackageproject template.
Package: gdrive-watcher
gdrive-watcheris a library for watching file updates to a google drive folder.Set the environment variable for your google service account:export GOOGLE_APPLICATION_CREDENTIALS=".json"In the service account JSON file, look for "client_email". Add this email address to the folder you like to watch, or its parent folder.Example usage:python -m gdrive_watcheror for debugging,python gdrive_watcher/poll.pyNote: there may be a timing issue if your timezone is different from the timezone of your google drive account.
Package: gdrivewrapper
gdrivewrapperA wrapper around Google Drive SDK. Covers basic operations like uploading a file or creating a folder.UsageInitiate the wrapper classfromgdrivewrapperimportGDriveWrapperapi_scope="https://www.googleapis.com/auth/drive.file"creds_path="./drive_v3_creds.json"gdw=GDriveWrapper(api_scope,creds_path)Upload a local filefromgoogleapiclient.httpimportMediaFileUploadlocal_path="/tmp/resources/hello.txt"media=MediaFileUpload(local_path)gdw.upload(media)Upload a stringfromgoogleapiclient.httpimportMediaInMemoryUploadmy_bytearray="my string :)".encode('utf-8')media=MediaInMemoryUpload(my_bytearray)gdw.upload(media)Upload with a filenamemedia=...gdw.upload(media,name="mytextfile.txt")Upload with a thumbnailimportbase64media=...withopen("image_path.png")asfp:image_bytes=fp.read()gdw.upload(media,thumbnail=image_bytes)Upload to a folderresponse=gdw.create_folder("myfolder1")media=...gdw.upload(media,folder_id=response["id"])Add a comment to an existing filemedia=...response=gdw.upload(media)gdw.create_comment(key=response["id"],comment="this file is great!")