Saravanan666/pypi-org huggingface dataset:
Package: pyga
pyga is an implementation of Google Analytics (ga.js) in Python; so that it can be used at server side.
This project only helps you with Data Collection part of Google Analytics.
ie., You can consider this as a replacement for ga.js at client side.Google Provides Android SDK,iOS SDK + Flash SDK.
And left everybody else with a single page documentation about GIF request parameters.
Also with a basic sample of server side implementation in quite a few languages (perl, php, jsp).PS: Google moved away from ga.js to analytics.js; a new operating standard for Google Analytics named “universal analytics”.
Soon ga.js will be deprecated. I’m planning to have a pyga equivalent to the new standard. Read more here athttps://developers.google.com/analytics/devguides/collection/upgrade/#upgrade-guideshttps://developers.google.com/analytics/devguides/collection/protocol/v1/#getting-startedPyPi Package Page:http://pypi.python.org/pypi/pygaMain Repository:https://github.com/kra3/py-ga-mobDocumentation:http://readthedocs.org/docs/pyga-python-google-analytics-data-collection-api/en/latest/#Use CasesYou want to track data from server sideYou’re developing a mobile site and have to support devices w/o JS supportSupported FeaturesPage ViewE-CommerceSocial InteractionCustom VariablesEventsCampaignsnot yetAd-WordsSearch EngineTo know more about mobile-tracking see:https://developers.google.com/analytics/devguides/collection/other/mobileWebsitesExamplefrom pyga.requests import Tracker, Page, Session, Visitor

tracker = Tracker('MO-XXXXX-X', 'yourdomain.com')
visitor = Visitor()
visitor.ip_address = '194.54.176.12'
session = Session()
page = Page('/path')
tracker.track_pageview(page, session, visitor)PHP versionThanks to:Expicient IncAnd for you fans out there, we even havemountain bikes named pyga;)
Package: pygac-fdr
pygac-fdrPython package for creating a Fundamental Data Record (FDR) of AVHRR GAC data using pygacInstallationTo install the latest release:pip install pygac-fdrTo install the latest development version:pip install git+https://github.com/pytroll/pygac-fdrUsageTo read and calibrate AVHRR GAC level 1b data, adapt the config template inetc/pygac-fdr.yaml, then
run:pygac-fdr-run --cfg=my_config.yaml /data/avhrr_gac/NSS.GHRR.M1.D20021.S0*Results are written into the specified output directory in netCDF format. Afterwards, collect and
complement metadata of the generated netCDF files:pygac-fdr-mda-collect --dbfile=test.sqlite3 /data/avhrr_gac/output/*This might take some time, so the results are saved into a database. You can specify files from
multiple platforms; the metadata are analyzed for each platform separately. With a large number
of files you might run into limitations on the size of the command line argument ("Argument list
too long"). In this case use the following command to read the list of filenames from a file
(one per line):pygac-fdr-mda-collect --dbfile=test.sqlite3 @myfiles.txtFinally, update the netCDF metadata inplace:pygac-fdr-mda-update --dbfile=test.sqlite3Tips for AVHRR GAC FDR UsersChecking Global Quality FlagThe global quality flag can be checked from the command line as follows:ncks -CH -v global_quality_flag -s "%d" myfile.ncCropping OverlapDue to the data reception mechanism consecutive AVHRR GAC files often partly contain the same information. This is what
we call overlap. For example some scanlines in the end of file A also occur in the beginning of file B. Theoverlap_free_startandoverlap_free_endattributes inpygac-fdroutput files indicate that overlap. There are two
ways to remove it:Cut overlap with subsequent file: Select scanlines0:overlap_free_endCut overlap with preceding file: Select scanlinesoverlap_free_start:-1If, in addition, users want to create daily composites, a file containing observations from two days has to be used
twice: Once only the part before UTC 00:00, and once only the part after UTC 00:00. Cropping overlap and day together
is a little bit more complex, because the overlap might cover UTC 00:00. That is why thepygac-fdr-croputility is
provided:$ pygac-fdr-crop AVHRR-GAC_FDR_1C_N06_19810330T225108Z_19810331T003506Z_...nc --date 19810330
0 8260
$ pygac-fdr-crop AVHRR-GAC_FDR_1C_N06_19810330T225108Z_19810331T003506Z_...nc --date 19810331
8261 12472The returned numbers are start- and end-scanline (0-based).
Package: pygada
pygadapygada is a python package to perform automated exploratory and geostatistical data-analysis.It is hosted onGitHuband development is coordinated byDatabank Ondergrond Vlaanderen (DOV).DOV aggregates data about soil, subsoil and groundwater of Flanders and makes them publicly available.
With this package DOV offers a tool to perform data-analysis on the data from DOV. Nevertheless, this package also works for a private dataset.To get started, see the documentation athttps://pygada.readthedocs.io/en/latest/.Please note that using DOV data with pygada is governed by the samedisclaimerthat applies to the other DOV services. Be sure to consult it when using DOV data with pygada.Quick startDocumentationFull documentation ofpygadacan be found on ourReadTheDocs page.ContributingYou do not need to be a code expert to contribute to this project as there are several ways you can contribute to
this project. Have a look at thecontributing page.This repository is currently being build up based on the thesis work of Guillaume Vandekerckhove, pygeostat.
Package: pygada-runtime
pygada-runtimepygada-runtimeis a package for creating and runningGadanodes in Python.InstallUsing pip:pipinstallpygada-runtimeDocumentationBuild the doc with:makehtmlYou can find the latest documentation onpygada-runtime.readthedocs.io.TestingThetestdirectory contains many tests that you can run with:tox.LicenseLicensed under theMITLicense.
Package: pygadm
OverviewEasy access to administrative boundary defined by GADM from a Python scripts.This lib provides access to GADM datasets from a Python script without downloading the file from their server. We provide access to The current version (4.1.) which delimits 400,276 administrative areas.The data are freely available for academic use and other non-commercial use. Redistribution, or commercial use is not allowed without prior permission. See thelicenseof the GADM project for more details.Notethe dataset are generated in the GADM (Global Administrative Areas) project from Berkeley University. Any request relative to the geometries should be redirected to them.install it using eitherpiporconda:pip install pygadmand then request area of interest from their name or GADM Id:importpygadmgdf=pygadm.AdmItems(name="Singapore",content_level=1)CreditsThis package was created withCopierand the@12rambau/pypackage0.1.5 project template .
Package: pyga-fc
pyga is an iplementation of Google Analytics in Python;so that it can be used at server side.
This project only helps you with Data Collection part of Google Analytics.
ie., You can consider this as a replacement for ga.js at client side.Google Provides Android SDK,iOS SDK + Flash SDK.
And left everybody else with a single page documentation about GIF request parameters.
Also with a basic sample of server side implementation in quite a few languages (perl, php, jsp).PyPi Package Page:http://pypi.python.org/pypi/pygaMain Repository:https://github.com/kra3/py-ga-mobCopy Repository:https://bitbucket.org/kra3/pyga/overviewDocumentation:http://readthedocs.org/docs/pyga-python-google-analytics-data-collection-api/en/latest/#Use CasesYou want to track data from server sideYou’re developing a mobile site and have to support devices w/o JS supportSupported FeaturesPage ViewE-CommerceSocial InteractionCustom VariablesEventsCampaignsnot yetAd-WordsSearch EngineTo know more about mobiletracking see:https://developers.google.com/analytics/devguides/collection/other/mobileWebsitesExamplefrom pyga.requests import Tracker, Page, Session, Visitor

tracker = Tracker('MO-XXXXX-X', 'yourdomain.com')
visitor = Visitor()
visitor.ip_address = '194.54.176.12'
session = Session()
page = Page('/path')
tracker.track_pageview(page, session, visitor)Thanks to:Expicient Incphp-ga
Package: pygaffer
# PyGafferAPI for Gaffer graph store.# Install`pip3 install git+git://github.com/cybermaggedon/pygaffer`# Example```import gafferg = gaffer.Gaffer("http://localhost:8080")# For TLS, use keys in ~/private# g.use_cert()op1 = g.get_all(entities=["ip"], edges=["ipflow"])op2 = g.limit(30)ops = g.operation_chain([op1, op2])res = g.execute(ops)for v in res:if v.has_key("source"):print "Edge:", v["source"], "->", v["destination"]if v.has_key("vertex"):print "Node:", v["vertex"]```
Package: pygain
DescriptionWith this module has beed loaded, then we can “gain” any module on the fly. Because the python scripts can do almost anything that the C language can do, so with this module’s power, we can throw upgrading away from now on.Quickstart1 - Put a python script on the website, I had put one at:http://oeb1qxnpc.bkt.clouddn.com/hello.py, the file’s content is:#!/usr/bin/env python# -*- coding: utf-8 -*-# @author: zig(remember1637@gmail.com)print("hello, pygain")2 - Load this module from a local test script file “test.py”, then “gain” the remote “hello.py”:importpygainpygain.gain("hello","http://oeb1qxnpc.bkt.clouddn.com",["py"])importhello3 - Execute the test script(tested from python2.6.6 to python3.5.2):>pythontest.pyif everything is fine, then we can see the “hello, pygain” was printed outMore reality: import zip package“gain” remote script one by one is inefficient, so we can zip scripts together, let’s do it1 - Put a zip that contains some scripts, I had put one at:http://oeb1qxnpc.bkt.clouddn.com/demo.zip, the zip’s content is:demo.zip/- __init__.py/- hello.py/- hello2.py2 - Load this module from a local test script file “test.py”, then “gain” the remote “demo.zip”:importpygainpygain.gain("demo","http://oeb1qxnpc.bkt.clouddn.com",["zip","py"])importdemo.hello23 - Execute the test script(tested from python2.6.6 to python3.5.2)>pythontest.pyif everything is fine, then we can see the “hello, pygain” was printed out4 - But we need only fetch the zip file, the scripts that embeded in the zip will import directly from the zip file.Keyword argumentsBecause of some special situation, we provider some keyword arguments, we can pass it on as below:pygain.gain("demo","http://zagzig.me/pygain/demo/v1",["zip","py"],httpheaders={"Referer":"xxx"},zippw="guesswhat")httpheaders: when we fetch the remote file,  we can pass on some http headerszippw: the remote zip file can be encrypted, so pass this password to decrypt&load the remote zip moduleInstallationpipinstallpygain
Package: pygal
# Pygal[![Build Status](https://travis-ci.org/Kozea/pygal.svg?branch=master)](https://travis-ci.org/Kozea/pygal)
[![Coverage Status](https://coveralls.io/repos/Kozea/pygal/badge.svg?branch=master&service=github)](https://coveralls.io/github/Kozea/pygal?branch=master)
[![Documentation Status](https://readthedocs.org/projects/pygal/badge/?version=latest)](https://readthedocs.org/projects/pygal/?badge=latest)@@TOC@@## Descriptionpygalis a dynamic SVG charting library written in python.
All the documentation is onhttp://pygal.org## InstallationAs simple as:$ pip install pygal## TestPygal is tested with py.test:$ pip install pytest
$ py.test## ContributeYou are welcomed to fork the project and make pull requests.
Be sure to create a branch for each feature, write tests if needed and run the current tests !You can also support the project:[![Flattr](http://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=paradoxxx_zero&url=https://github.com/Kozea/pygal&title=Pygal&tags=github&category=software)
[![gittip](http://i.imgur.com/IKcQB2P.png)](https://www.gittip.com/paradoxxxzero/)## LicenseCopyright © 2012-2016 Kozea
LGPLv3:This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
Package: pygalaxy
PyGalaxyThis is a simple common package.Github:https://github.com/patrickxu1986/pygalaxyDependencepip3install-rrequirements.txtUseloggerfrompygalaxyimportloggerlogger.debug('log message')logger.info('log message')timefrompygalaxyimporttime_mastertime_master.get_current_date_str()time_master.get_current_unix_time()ConsistentHashfrompygalaxy.consistent_hashimportNode,ConsistentHashnode=Node(node_name='192.1.1.4')consistent_hash=ConsistentHash()consistent_hash.add_node(node)n=consistent_hash.get_node('test content')AES encrypt&decryptfrompygalaxy.aes_masterimportAesMasterencrypt=AesMaster.encrypt('test content',key='this is a key')print(encrypt)decrypt=AesMaster.decrypt(encrypt,key='this is a key')print(decrypt)
Package: pygaljs
packagePython package providing assets fromhttps://github.com/Kozea/pygal.jsFree software: LGPLv3 licenseInstallationpip install pygaljsReleasinggit submodule foreach "git fetch; git reset --hard origin/gh-pages"
git submodule syncChangelog1.0.2 (2020-04-03)Fixed pytest section name insetup.cfg.1.0.1 (2015-09-04)Updated files from upstream.1.0.0 (2015-08-13)First release on PyPI.
Package: pyGallerid
IntroductionpyGallerid is a photo gallery based on the pyramid framework and the
jQuery library. It allows a tree-like structure of the photo albums
and online editing of the contents. It also includes a small
lightbox-like thingy using simplemodal.DocumentationDocumentation will follow.Changes0.2Mature version of pyGallerid.
Almost ready for prime time.0.1First running version of pyGallerid.
Basic functionality existing.
Package: pygal-maps-ru
pygal_maps_ruRussian maps for PygalUsageimport pygal.maps.ru

map = pygal.maps.ru.Regions()
map.add('Data', {'KHM': 2, 'KYA': 5})
map.render_to_file('test.svg')RequirementsPygalAuthorburevolSVG map bySmartTeleMax
Package: pygama
pygamapygamais a Python package for:converting physics data acquisition system output toLH5-formatHDF5
files (functionality provided by thelegend-pydataobjandlegend-daq2lh5packages)performing bulk digital signal processing (DSP) on time-series data
(functionality provided by thedspeedpackage)optimizing DSP routines and tuning associated analysis parametersgenerating and selecting high-level event data for further analysisCheck out theonline documentation.
Package: pygamd
Version 1Copyright: Lu groupMolecular dynamics is an essential tool in the scientific research on
colloids, polymers, biomolecules, and etc.PYGAMDis a platform
based on Python3 Numba where users can define their models and methods
by themselves. The simulation models could be ranging from all-atom to
coarse-grained scales.Installationpygamd:python3 setup.py installpip install pygamdInstallation time < half of an hour.Requirements:OS:       Linux
Hardware: NVIDIA GPU, AMD GPU or DCU.DependenciesPython3.11 including numba, numpy, and pybind11 packagesNVIDIA CUDA Toolkit 12CitationTo cite PYGAMD in publications use:

Thanks to Zhongyuan Lu group for providing PYGAMD software in our research work.DocumentationOfficial website:https://pygamd.comOnline
manual could be read here:https://pygamd-v1.readthedocs.io/en/latest/.
Tutorials written by jupyter notebook are given here:https://nbviewer.jupyter.org/github/youliangzhu/pygamd-v1/tree/main/tutorials/index.ipynb.
More examples could be found here:https://github.com/youliangzhu/pygamd-v1/tree/main/examples.Example: DPD simulation of diblock copolymer1 First step: generate configurationfrom poetry import molgen

mol1=molgen.Molecule(10)#particle number
mol1.setParticleTypes("A,A,A,A,A,B,B,B,B,B")#type
mol1.setTopology("0-1,1-2,2-3,3-4,4-5,5-6,6-7,7-8,8-9")#topology
mol1.setBondLength(0.75)#bond length
mol1.setMass(1.0)#mass


gen=molgen.Generators(20,20,20) # box size in x, y, and z direction
gen.addMolecule(mol1,2400)#molecule, the number of molecules
gen.outPutMST("A5B5") #file name2 Second step: run simulationimport pygamd

mst = pygamd.snapshot.read("A5B5.mst")
app = pygamd.application.dynamics(info=mst, dt=0.04)

fn = pygamd.force.dpd(info=mst, rcut=1.0)
fn.setParams(type_i="A", type_j="A", alpha=25.0, sigma=3.0)
fn.setParams(type_i="B", type_j="B", alpha=25.0, sigma=3.0)
fn.setParams(type_i="A", type_j="B", alpha=40.0, sigma=3.0)
app.add(fn)

fb = pygamd.force.bond(info=mst, func='harmonic')
fb.setParams(bond_type = 'A-A', param=[4.0, 0.0])# param=[k, r0]
fb.setParams(bond_type = 'A-B', param=[4.0, 0.0])# param=[k, r0]
fb.setParams(bond_type = 'B-B', param=[4.0, 0.0])# param=[k, r0]
app.add(fb)

inn = pygamd.integration.gwvv(info=mst, group='all')
app.add(inn)

dm = pygamd.dump.mst(info=mst, group=['A', 'B'], file='p.mst', period=10000)
app.add(dm)

di = pygamd.dump.data(info=mst, group='all', file='data.log', period=100)
app.add(di)

app.run(500000)Runing time < 2 hours.
Results are the snapshots for the transition from disordered structure to a lamellar phase.ContributingWe welcome contributions to PYGAMD. Whether it is reporting a bug,
starting a discussion by asking a question, or proposing/requesting a
new feature, please go by creating a new issue here
(https://github.com/youliangzhu/pygamd-v1/issues/)
or writing an email to the author Dr. You-Liang Zhu (Email:ylzhu@pygamd.com) so that we can talk about it. Please note that this
project is released with a Contributor Code of Conduct. By participating
in this project you agree to abide by its terms.LicenseGNU General Public License v3 (GPLv3)
Package: pygame-2048
Fun and challenging puzzle game – 2048 !Install immediately and enjoy yourself !ScreenshotInstallationInstalling Game 2048 is simple with pip：$python3-mpipinstallpygame-2048Once installed the game can be played using the following command$game_2048If you want to uninstall the game using the following command$python3-mpipuninstallpygame-2048DevelopmentAfter cloning the repository, install the game in development mode using the following command$python3setup.pydevelopYou can modify the program and then test it by using the following command$game_2048TipsYou can use ⬅️⬆️➡️⬇️ keys or ‘AWSD’ keys to remove the blocks on the
screenScreenshot will be saved to ‘ ~/Desktop/game-2048/screenshots ‘You can’t make 4096 block when you have two 2048 blocks.
So what you should do next is reset this game and start a new challenge.
Package: pygame-animatedgif
GIFImage_extExtension of the GIFImage library on pygame.org written by Matthew Roe.I found it here:http://pygame.org/project-GIFImage-1039-.htmlSmall bits of code - a couple of instance variables and methods have been added.
I've changed very little of Matthews code - most of the changes are additions,
but where I have made a change, I've commented out the original line so that
it's easy to see what was there vs. what is there now.methods added:next_frame()pauses the animation if it is currently playingadvances to next frame if the animation is pausedgoes to first frame if the current frame = frames[-1]previous_frame()inverse of next_frame()slow_down()slows the playback speed by increasing the 'duration' variablespeed_up()increases the playback speed by decreasing the 'duration' variablescale(scale_factor)scale_factor is added to the image_scale variable - pass positive numbers to
increase the image size, negative numbers to decrease size
gif_image.scale(.05) #increases image size by 5%
gif_image.scale(-.05) #decreases image size by 5%
-in the .render method, pygame.transform.scale is called on the current frame if img_scale != 1
and the width and height of the original image are multiplied by the image_scale value
(It would be more efficient from a processing standpoint to copy all frames out to a new
frame list as they are scaled, then use the cached frames in the new list for subsequent
playback loops. That would be overkill for my needs though.)
-the transformed image is assigned to a new surface which is blitted to the screen
so that the original image quality is retainedreset_scale()resets the img_scale value to 1Persistant Problems:there is still a pallet handling issue as described on the pygame.org website.
Time permitting, I'll look into this, but I'm no expert on the GIF image format
and this was really a one-off kind of thing for a quick and dirty prototype for a
larger project.ContributingBug reports and feature requests can be entered in the Issues menu.To ask questions about the project, you can create a new issue in the Issues menu with the label ~question.To contribute any changes simply clone the project on GitHub:https://github.com/Jokymon/GIFImage_ext, push your changes to your own GitHub
project and send a pull request.
Package: pygame-anisprite
# PyGame-AniSprite[![GitHublicense](https://img.shields.io/github/license/lily-mayfield/pygame-anisprite.svg?style=flat-square)](https://raw.githubusercontent.com/lily-mayfield/pygame-anisprite/master/LICENSE)[![PyPI Version](https://img.shields.io/pypi/v/pygame-anisprite.svg?style=flat-square)](https://pypi.python.org/pypi/pygame-anisprite/)[![CodeClimate](https://img.shields.io/codeclimate/github/lily-mayfield/pygame-anisprite.svg?style=flat-square)](https://codeclimate.com/github/lily-mayfield/pygame-anisprite)[![Travis](https://travis-ci.org/lily-mayfield/pygame-anisprite.svg)](https://travis-ci.org/lily-mayfield/pygame-anisprite)[![CoverageStatus](https://img.shields.io/coveralls/lily-mayfield/pygame-anisprite.svg)](https://coveralls.io/github/lily-mayfield/pygame-anisprite)**WARNING: THIS IS UNRELEASED/IS PRERELEASE**PyGame-AniSprite is a 2D game engine for Python (2 *and* 3)/PyGame. What'sspecial about this project is how an `AnimatedSprite` is almostindistinguishable from a normal[`pygame.sprite.Sprite`](https://www.pygame.org/docs/ref/sprite.html#pygame.sprite.Sprite).Written because I didn't like `pyganim`...Split off from my [Sappho game engine](https://github.com/lily-mayfield/sappho).Be sure to checkout the `AUTHORS.md`![I have documentation!](http://lilymayfield.pro/pygame-anisprite/)## Design Philosophy1. Don't interfere with the way people build their pygame games2. We are not automating game logic3. PyGame-AniSprite modules _may not_ import other PyGame-AniSprite modules4. Inherit from pygame objects when possible; use conventionalpygame models/architecture.5. Consistency.6. Simplicity trumps all else.7. Well documented.8. Code is easy-to-test. We show that with our 100% test coverage.For more check `CONTRIBUTING.md`.## Getting StartedInstall pygame:* You can try `pip install hg+http://bitbucket.org/pygame/pygame`but it may not work...* **Ubuntu**, Python 2.7: `sudo apt install python-pygame`* **FreeBSD**, Python 2.7: `sudo pkg install py27-game`* **OSX**, Python 2.7: available in homebrew (note that there isa caveat in El Capitan [see: #63])* For any other operating system, or more details, see:http://www.pygame.org/download.shtmlInstall `pygame-anisprite`: `pip install -r requirements/main.txt .`If you wanna contribute, please read `CONTRIBUTING.md`!
Package: pygame-builder
pygame-builderIntroductionUse this package to create a game in python in just a few lines of code. Built on top of Pygame, this module is perfect for beginners looking to make their first game. Experts may also find this useful when trying to save time. Enjoy!Code Formatfrompygame_builderimportPygame,Element,ImagewithPygame(backgroundImage:Image=image,size:list=[480,270],windowCaption="Pygame",fps=60,backgroundColour:tuple=(0,0,0),backgroundMusic:Music=None),backgroundSound=None)aspg:element=Element(image:Image,parent,centerPosition=[0,0],speed=[1,1])pg.add(element)pg.loop(lambda:<callable>)Examplefrompygame_builderimportPygame,Element,ImageballGif="/path/to/ball.gif"defmain():ball.bouncingAnimation()withPygame()aspg:ball=Element(Image(ballGif),pg,pg.getScreenCenter(),[2,2])pg.add(ball)pg.loop(lambda:main)