Saravanan666/pypi-org huggingface dataset:
Package: gsbparse
gsbparseA Python parser forGrisbi's.gsbfiles.User Quickstartgsbparseprovides two main classes for easily using content of aGrisbi's.gsbfile in Python:gsbparse.AccountFileandgsbparse.Transactions.
Both classes are instantiated with a pointer to a.gsbfile: either filepath (str) or a file object itself.InstallationYou can installgsbparsefrom PyPI:pipinstallgsbparseHow to usefromgsbparseimportAccountFileAccountFile("path/to/my_account_file.gsb")Development QuickstartThis project adheres toSemantic Versioning, and releases descriptions can be found inCHANGELOG.md.Use your own environment management preferenceForpyvenv:python-mvenv.venv/source.venv/bin/activateInstall this packagegitclonegit@github.com:EBoisseauSierra/gsbparse.gitcdgsbparse
pipinstall--upgradepip
pipinstall-e'.[dev,test]'Initialise pre-commit hooksThepre-commit hooksdefined in this repo ensure that code formating and linting is applied on any piece of code committed. This should enable a cleaner code base and less “formatting noise” in commits.To install the hooks, simply run:pre-commitinstallContributingFork this repo (https://github.com/EBoisseauSierra/gsbparse/fork)Create your feature branch (git checkout -b feature/fooBar)Commit your changes (git commit -am 'Add some fooBar')Push to the branch (git push origin feature/fooBar)Create a new Pull Request
Package: gscal
gscal (GTK Simple Calendar)Extremely minimal calendar app inspired byGsimplecal.InstallReleases are available over onPyPIand can be installed via pip:pip install gscalOn Arch Linux gscal is available in the AUR:[paru/yay] -S gscalConfigurationGscal looks for a configuration file at~/.config/gscal/gscal.tomlif not specified by the user with the-cflag.
If no config file is found, it uses thedefault configuration.Currently only 3 options are available, more to come in the future.
Package: gsc-bulk-indexer
Google Bulk IndexerPython script for automatically submitting website pages for indexing in bulk to Google Search Console(GSC).
This is a Python version of the original work ingoogle-indexing-scriptFunctionalityThis script submits the website URLs found on a site that you own to GSC for indexing. There is no guarantee that the page requested
for indexing will be indexed by Google.RequirementsPython >= 3.9A Google Cloud account: You will have to create a service account under
a Google cloud project and download the private key JSON file.GSC account with a verified site (property).Before you run the toolFollow theguide by Google Cloudto setup Google Cloud account and service account. You should have the following by the end:A google cloud account with a project that has bothGoogle Search Console APIandWeb Search Indexing APIenabled.A service account and a private key json file downloaded on your PC.The service account email added to your property (site) as Site owner.Running the toolInstall the packagepipinstallgsc-bulk-indexerCopy the private key file that you downloaded from the Google cloud account in the same folder from which you are going to run the tool. Private key is needed for submitting URLs to Google Search Console for indexing.Run the following command to start submitting URLs for indexingIf you have verified your site as aDomainproperty in GSC run the following commandgsc_bulk_index-p<your-domain.xyz>ORpython-mgsc_bulk_indexer.submit-p<your-domain.xyz>If you have verified your site as aURL Prefixproperty, run the below commandgsc_bulk_index-phttps://<your-domain.xyz>If you have the private key json file somewhere else on your PC, you can specify
the path while running the scriptgsc_bulk_index-c<pathtoprivatekeyfile>-p<sitedomain>Run the script with--helpto know about command line options.Use in your applicationThe indexer comes with caching mechanism to avoid submitting URLs
that have already been submitted. It creates pickle files under.cachedirectory in the current working directory. However, if you using the bulk indexer in your application backend, this might not be needed. Below is the recommended usage of the indexer in your application.fromgsc_bulk_indexerimportauthfromgsc_bulk_indexerimportindexerdefindex():credentials={# service account json key dictionary}# submit the property URLgsc_property="https://example.com"# OR submit a list of URLs# urls = ["https://example.com/page1", "https://example.com/page2"]access_token=auth.get_access_token(credentials=credentials)ifaccess_tokenisNone:returngsc_indexer=indexer.BulkIndexer(access_token,property=gsc_property,# urls=urls, # if you want to submit a list of URLsuse_cache=False,# disable cache to prevent cache files from being created)num_urls_submitted=gsc_indexer.index()
Package: gsch
gsch is a tool for handling paper information in a Google Scholar results page.Quick StartTo install gsch, run this command in your terminal:$pipinstallgschUsing gsch, you can handle paper information in a Google Scholar results page as follows:fromgsch.agentimportAgentfromgsch.paperimportPaperagent=Agent()papers=agent.search(['some','topic'])For a given query,agentobtains 10 search results on Google Scholar. Please be careful not to send too many requests to the service because there is a query limit.agentorganizes the search results into thePaperinstances, each of which consists of the following attributes:titleauthorsyearcited_byurlsnippetsYou will often obtain better results as follows:fromgsch.optionimportOptionagent=Agent()option=Option(year_low=2017)papers=agent.search(['some','topic'],option)In this case,papersconsists of papers that have been published since 2017. Like this, you can use the following options:year_low: if you setyear_low=2017, you obtain papers that have been published since 2017year_high: if you setyear_high=2017, you obtain papers that have been published by 2017start: if you setstart=10, you obtain papers that are ranked from 11 to 20
Package: gscholar
gscholarQuery Google Scholar using Python.RequirementsPythonpdftotext (command line tool)Installing$pipinstallgscholar##Using gscholar as a command line toolgscholar provides a command line tool, to use it, just callgscholarlike:$gscholar"albert einstein"or$python3-mgscholar"albert einstein"Making a simple lookup:$gscholar"some author or title"will return the first result from Google Scholar matching this query.Getting more results:$gscholar--all"some author or title"Same as above but returns up to 10 bibtex items. (Use with caution Google will
assume you're a bot an ban you're IP temporarily)Querying using a pdf:$gscholar/path/to/pdfWill read the pdf to generate a Google Scholar query. It uses this query to show
the first bibtex result as above.Renaming a pdf:$gscholar--rename/path/to/pdfWill do the same as above but asks you if it should rename the file according
to the bibtex result. You have to answer with "y", default answer is no.Getting help:$gscholar--helpUsing gscholar as a python libraryInstall the gscholar package withpip installas described above or copy the
package somewhere Python can find it.importgscholargscholar.query("some author or title")will return a list of bibtex items.
Package: gs-chunked-io
gs-chunked-io: Streams for Google Storagegs-chunked-ioprovides transparently chunked io streams for google storage objects.
Writable streams are managed as multipart objects, composed when the stream is closed.IO opperations are concurrent by default. The number of concurrent threads can be adjusted using thethreadsparameter, or disabled entirely withthreads=None.import gs_chunked_io as gscio
from google.cloud.storage import Client

client = Client()
bucket = client.bucket("my-bucket")
blob = bucket.get_blob("my-key")

# Readable stream:
with gscio.Reader(blob) as fh:
    fh.read(size)

# Writable stream:
with gscio.Writer("my_new_key", bucket) as fh:
    fh.write(data)

# Process blob in chunks:
for chunk in gscio.for_each_chunk(blob):
    my_chunk_processor(chunk)

# Multipart copy with processing:
dst_bucket = client.bucket("my_dest_bucket")
with gscio.Writer("my_dest_key", dst_bucket) as writer:
    for chunk in gscio.for_each_chunk(blob)
	    process_my_chunk(chunk)
	    writer(chunk)

# Extract .tar.gz on the fly:
import gzip
import tarfile
with gscio.Reader(blob) as fh:
    gzip_reader = gzip.GzipFile(fileobj=fh)
    tf = tarfile.TarFile(fileobj=gzip_reader)
    for tarinfo in tf:
        process_my_tarinfo(tarinfo)Installationpip install gs-chunked-ioLinksProject home pageGitHubPackage distributionPyPIBugsPlease report bugs, issues, feature requests, etc. onGitHub.
Package: gsclight
A simplified, object-oriented helper library for theGoogle Search Console API. This package only covers basic API calls and was mainly created for practice purposes. To get the full Google Search Console API experience see Josh Carty'spython wrapper.Getting StartedInstall the library on your local machine.pip3installgsclightUse a Google account to create application credentials, download the JSON file and put it in the same directory as your script with the nameclient_secret.json. Every execution of any API-dependent library code,will prompt to perform the auth flow.fromgsclightimportoauthCLIENT_SECRET="../client_secret.json"AUTH_SCOPE="https://www.googleapis.com/auth/webmasters.readonly"account=oauth.authenticate_to_gsc(CLIENT_SECRET,AUTH_SCOPE)Use the Google Search Console wrapper to get an overview of all sites your personal account has access as well as all sites your account is verified for (meaning you can request data via the API).account.list_all_urls()account.list_verified_urls()To access data programmatically via the API specify the URI, date range as well as the dimensions your report should contain (metrics always consist ofclicks,impressions,ctrandposition). Filters are currently not implemented. The row limit is set to 25,000 rows and can not be adjusted. If you exceed the row limit try to request smaller chunks of data (e.g. apply smaller date range). Per default the search typewebis used, but this can be adjusted toimageorvideo.report,dimensions=account.get_data('https://www.my-website.com/',"2019-09-02","2019-09-03",'date','device')In order to use the Google Search Console API response for further analysis the library comes with a built-in function to parse the reports to human-readable dataframes.fromgsclightimportparse_reportaspdf=p.parse_report(report,dimensions)df.head()Authentication & Client SecretsThis library currently only supports user-based OAuth crendentials. Service accounts can not be used.The Google OAuth flows requires you to provide aclient id and secretin the from of aJSONfile. You can create these in any Google Cloud or Google Developer project:Open theGoogle API Console Credentialspage.Optional: From the project drop-down, choose Create a new project, enter a name for the project, and optionally, edit the provided Project ID. ClickCreate.On the Credentials page, selectCreate credentials, then selectOAuth client ID.SelectOtherfor the Application type, and enter any additional information required.ClickCreate.On the page that appears, you can download client id and secret as a JSON file.
Package: gsclinks
Google Search Console Links (GSCLinks)Website administrators and SEOers will often monitor backlink data to know which websites are linking to their websites. From there, they can filter out bad backlinks to send to Google Disavow Links. This will help their website not be affected by bad backlinks and keep a good position on Google Search.This package will help you scrape backlink data from Google Search Console with cookies.InstallationGSCLinks is available on PyPI. You can install it through pip:pip install gsclinksUsageGet raw cookieMethod 1:Open Chrome Developer Tool (F12), then go to Network tab, then visit Google Search Console, and then copy the Cookie's value in Request Header.Method 2:UseCookie-Editorextension on Chrome, visit Google Search Console, then open Cookie-Editor, and then export cookie as JSON.Save the raw cookie in text file, such ascookie.txt.Import packages and set variablesImport packages:fromgsclinksimportparse_raw_cookie,SearchConsoleLinksSet variables:resource_id: It can behttps://your-domain.com/oryour-domain.com. It depends on how you add the property to Google Search Console.user_number: If you're signed in to more than 1 Gmail on Chrome, enter the number you see in URL when you visit Google Search Console(search.google.com/u/user_number/...), otherwise enterNone.cookies=parse_raw_cookie(cookie_file='cookie.txt')resource_id='https://your-domain.com'# or maybe your-domain.comuser_number=None# or maybe 0, 1, 2, ...console=SearchConsoleLinks(cookies=cookies,resource_id=resource_id,user_number=user_number)Get backlink dataIf you want the entire backlink data in a simple way then use this method.all_linking_pages=console.get_all_links(sleep=10)# sleep: time to rest between each request sending (seconds).You can get backlink data step by step to be able to intervene in the process. For example, you may want to remove some sites that you no longer need to get data.# Get sitessites=console.get_sites()# Filter out the sites you want to continue to get data from.# Get all target pagesall_target_pages=console.get_all_target_pages(sites=sites,sleep=5)# Get all linking pagesall_linking_pages=console.get_all_linking_pages(target_pages=all_target_pages,sleep=5)Finally, you can convert the backlink data to a frame using Pandas for analysis, or export the backlink data to a CSV (Excel) file.importpandasaspddf=pd.DataFrame(all_linking_pages)df.to_csv('backlinks.csv',index=False)Thank you for reading!
Package: gs.config
Authors:Richard WaidMichael JasonSmithContact:Michael JasonSmith <mpj17@onlinegroups.net>Date:2015-03-17Organization:GroupServer.orgCopyright:This document is licensed under aCreative Commons Attribution-Share Alike 4.0 International LicensebyOnlineGroups.net.IntroductionSometimes configuration is complex, such as when multiple sets of
configuration is needed because multiple instances of a system
(such as GroupServer[1]) are running on the same setup. In
this case each instance is made up of a set of components, and
each component is made up of configuration options:InstanceComponentConfiguration optionsMore configuration optionsComponent 2Different configuration optionsAnother instanceSadly theConfigParsersystem does not allow for this hierarchy,
butgs.configdoes, by using thenamespaceto provide
the relationship between an instance and the component. In
particular, this product supplies aConfig classto read afileof a particular structure.ConfigClassThegs.config.Configclass that represents the system
configuration. See the Sphinx documentation in this module for
more information.FileThe instance is marked with the name[config-${name}], where${name}is the name of the instance. For example[config-production]for the instanceproduction.For each component the set of sections is then supplied:[config-production]
database = production
smtp = external
cache = production
tokenauth = productionThe configuration for a component can be shared by multiple
instances:[config-staging]
database = production
smtp = dead
cache = none
tokenauth = productionEach component is a configuration section, with a name of the form[${component}-${name}]. For example[smtp-external]for the
smtp section namedexternal.ExampleIn the example below three instances are configured: one for a
test-server, one for a staging server, and one for a production
server. Each instance has two components: a database, and an SMTP
server:[config-test]
database = test
smtp = test

[config-staging]
database = live
smtp = test

[config-production]
database = live
smtp = live

# An actual configuration section for each configuration set
[database-test]
dsn = postgres://name:pass@server/database-test

[database-live]
dsn = postgres://name:pass@server/database-live

[smtp-test]
server = localhost
port = 2525

[smtp-live]
server = external
port = 25When the configuration is instantiated, an ID is passed. This ID identifies
the configuration set that is currently being accessed. If an ID is not
passed, an attempt is made to get the ID from the environment
automatically. At the moment this is specific to theGroupServerenvironment, though care is taken to ensure that it will fall back
gracefully to being passed an ID.ResourcesDocumentation:http://groupserver.readthedocs.org/projects/gsconfigCode repository:https://github.com/groupserver/gs.configQuestions and comments tohttp://groupserver.org/groups/developmentReport bugs athttps://redmine.iopen.net/projects/groupserver[1]While originally written forGroupServer, there is no
code in this product that is specific to
GroupServer. However, this product is used to configure
thedatabase,SMTP,cache, andtoken
authenticationfor GroupServer.
Package: gsconfig-py3
gsconfig-py3gsconfig-py3 is a python3 library for manipulating a GeoServer instance via the GeoServer RESTConfig API.gsconfig-py3 is a port of gsconfig (https://github.com/boundlessgeo/gsconfig) for python3.Tested with geoserver 2.16.2.The project is distributed under aMIT License.Installinggitclonegit@github.com:quadratic-be/gsconfig-py3.gitcdgsconfig-py3pythonsetup.pyinstallGetting Helpgsconfig-py3 keeps the same API as gsconfig, so you can refer tohttp://boundlessgeo.github.io/gsconfig/for getting help to use it.Sample Layer Creation Codefromgeoserver.catalogimportCatalogcat=Catalog("http://localhost:8080/geoserver/")topp=cat.get_workspace("topp")shapefile_plus_sidecars=shapefile_and_friends("states")# shapefile_and_friends should look on the filesystem to find a shapefile# and related files based on the base path passed in## shapefile_plus_sidecars == {#    'shp': 'states.shp',#    'shx': 'states.shx',#    'prj': 'states.prj',#    'dbf': 'states.dbf'# }# 'data' is required (there may be a 'schema' alternative later, for creating empty featuretypes)# 'workspace' is optional (GeoServer's default workspace is used by... default)# 'name' is requiredft=cat.create_featurestore(name,workspace=topp,data=shapefile_plus_sidecars)
Package: gs.core
Author:Michael JasonSmithContact:Michael JasonSmith <mpj17@onlinegroups.net>Date:2015-10-15Organization:GroupServer.orgCopyright:This document is licensed under aCreative Commons Attribution-Share Alike 4.0 International LicensebyOnlineGroups.Net.IntroductionThis product contains some useful functions. They were originally written
as part of theGroupServerproject, but they are totally independent of
GroupServer.curr_time:Get the current time, in UTC, as adatetime.datetime.to_ascii:Convert a string to ASCII, with a reasonable chance of success.to_unicode_or_bust:Convert a string instance to a Unicode instance, with
reasonable chance of success.comma_comma_and:Turn a list of strings into a single strings, with commas.to_id:Create a random identifier, using a string as a seed.convert_int2b62:Convert an integer to a base-62 encoded string.mailto:Generate a correctly-quotedmailto:URI.ResourcesDocumentation:http://gscore.readthedocs.org/Code repository:https://github.com/groupserver/gs.coreQuestions and comments tohttp://groupserver.org/groups/developmentReport bugs athttps://redmine.iopen.net/projects/groupserver
Package: gscp
gscp:Git,Stage all,Commit,PushI often find myself writing a bunch of code and wanting to commit it all, in one singular command. It's not
very hard:$ git add -u
$ git commit -v
$ git pushHowever, this is two commands two long. This should be in a singular command! This is why I once
had agscpscript in$PATHthat did pretty much that. However, I wanted to add features over time:The ability to specify a commit message (sometimes)The ability to force pushThe ability to create amend commitsAnd maybe moreIt would have been easy enough to have those features in my shell script, but parsing
the flags in shell seemed harder than it needs to be. Therefore, I created a python package.
Yay python!Installation>pipinstallgscpRequirementsThis is a rather simple script. It requires python 3.7 or higher. Because it uses git, you
obviously need to have git in path. It relies on theptymodule. If theptymodule is
limited in some OSes, those limits apply here. All the other requirements are inpyproject.toml.Building / RunningThis project is built with poetry.Usage:usage: gscp [-h] [-a] [-f] [message]

positional arguments:
  message      Commit message to use. If no message specified, it falls back to git's default behaviour with verbose mode

options:
  -h, --help   show this help message and exit
  -a, --amend  If we using git amend mode (warning, this triggers a force push)
  -f, --force  If we use `git push --force`DisclaimerUse at your own risk. This can force push stuff, after all.
Package: gscPack
gscPackThis package is used to assist in the creation and manipulation ofGravestroke Seperated Columnsfiles. These files are saved as plain text files.
A gsc.txt file is, essentially, a fixed space file. The difference is that the first line in a gsc.txt is a series of columns, seperated by gravestrokes (`).
The following is an example line:This is column number one.Column number two starts at the capitol COne final columnIt is important that the top row ends with a gravestrock before the new line character.
Any data in the rows below this row will be read by this package and stored in a list. When the .save() function is called, the gsc.txt is updated, and the object
is reinitialized.
Package: gscraper
gscraperA google image search scraper to automatically search and download images from the webInstallpip install gscraperFormatfromgscraperimportscrapeImagesscrapeImages(search_queries='nicolas cage',limit=5,sub_dir_name='<query-string>',output_directory='downloads',delay=0)'''search_queries:     Comma separated <String> or <List>limit:              <Int> 0-100folder_name:        <String> or '<query-string>'output_directory:   <String>delay:              <Int> Seconds, delay between download queries'''ExamplesfromgscraperimportscrapeImagesscrapeImages(search_queries='query',limit=3)'''downloads/| query/| | image-1| | image-2| | image-3'''scrapeImages(search_queries='query',limit=1,sub_dir_name='output')'''downloads/| output/| | image-1'''scrapeImages(search_queries=['one','two'],limit=2,output_directory='numbers')'''numbers/| one/| | image-1| | image-2| two/| | image-1| | image-2'''scrapeImages(search_queries=['one','two'],limit=2,sub_dir_name='output')'''numbers/| output/| | image-1| | image-2| | image-3| | image-4'''
Package: gscrew
GScrew (Generalized Screw Calculus)DescriptionA Python module to manipulate generalized Screws and Coscrews with geometric algebras (real Clifford algebras).readthedocs DocumentationBug trackerInstallationA Pypi package is available, please refer to thePypi pageor enterpip install gscrewin a terminal.ExemplesFirst of all, you need to import the modules:import gscrew.geometric_algebra as ga
from gscrew.screw import ScrewThescrewmodule also provides aCoScrewobject and thecomomentfunction for calculating the comoment between a coscrew and a screw.Once these modules have been imported, we can create the geometric algebra in which we will be working. For basic physical applications, a three-dimensionnal algebra should suffice:my_algebra = ga.GeometricAlgebra(3)
locals().update(my_algebra.blades)The second line adds the basis blades to the local variables so that we will be able to create new multivectors just by performing linear combinations of these basis blades. For a 3D algebra, the basis blades are: s, e1, e2, e3, e12, e13, e32, e123.We can now start working with Screw and CoScrew classes:O = 0 * s  # the origin of the reference frame
S = 1 + (2*e2) + (3*e3)  # the direction of the screw
M = (e1) + (5*e3)        # the moment of the screw
my_screw = Screw(O, S, M)LicenceAll the code is provided under the GNU General Public Licence v3.0+ (GPLv3+)