Saravanan666/pypi-org huggingface dataset:
Package: gistapi
GistAPI.pyThis is a Python wrapper for GitHub’s Gist API.http://develop.github.com/p/gist.htmlExample Usagefrom gistapi import Gist, Gists

gist = Gist('d4507e882a07ac6f9f92')
gist.description        # 'Example Gist for gist.py'

gist.created_at         # '2010/05/16 10:51:15 -0700'
gist.public             # False
gist.filenames          # ['exampleEmptyFile', 'exampleFile']
gist.files              # {'exampleFile': 'Example file content.', 'exampleEmptyFile': ''}
gist.comments[0].body   # Test Comment.


Gists.fetch_by_user('kennethreitz')[-1].description    # 'My .bashrc configuration'Installationpip install gistapiOr, if you must:easy_install gistapiRoadmapImplement Gist API methods as they are introducedPossibly use other hacks in the meantimeGist’s New Gist method? (Post to web form?)Possibly add command line gist interfaceHistory0.2.4 (2011-03-31)BugfixesRely on RequestsUnittestshttp://ci.kennethreitz.com/job/gistapi-tests/0.2.3 (2011-03-31)Added Gist Comments support0.2.2 (2011-01-10)Updated filename handling for special filenames0.2.1 (2010-09-01)StringIO support for FilesAdded Install Requirements for Pip0.2.0 (2010-08-28)Support for Add, Rename, Modify, and Delete of Files!Proper Unicode SupportProper DateTime SupportImproved CachingUrllib2 SupportPEP 008/257 ComplianceSecret.pibbURL Attribute for gists :)Misc. Refactors0.1.4 (2010-08-18)Python 2.5 fix0.1.3 (2010-06-14)Nose-test fix0.1.2 (2010-05-16)URL Generation BugFixUpdated versioningMetadata refactoringGeneral Bugfixes0.1.1 (2010-05-16)PyPi Compatibility ChangesDocumentation UpdatesAdded DocTests0.1.0 (2010-05-16)Initial Release
Package: gistcafe
Useful utils forgist.cafePython Apps.UsageSimple usage example:importrequestsimportoperatorfromdataclassesimportdataclass,fieldfromdataclasses_jsonimportconfig,dataclass_json,UndefinedfromtypingimportOptionalfromgistcafeimportinspect@dataclass_json(undefined=Undefined.EXCLUDE)@dataclassclassGithubRepo:name:strdescription:Optional[str]=Nonehomepage:Optional[str]=Nonelang:Optional[str]=field(metadata=config(field_name="language"),default=None)watchers:Optional[int]=0forks:Optional[int]=0orgName="python"response=requests.get(f'https://api.github.com/orgs/{orgName}/repos')orgRepos=GithubRepo.schema().loads(response.text,many=True)orgRepos.sort(key=operator.attrgetter('watchers'),reverse=True)print(f'Top 3{orgName}Repos:')inspect.printdump(orgRepos[0:3])print(f'\nTop 10{orgName}Repos:')inspect.printdumptable(orgRepos[0:10],headers=['name','lang','watchers','forks'])inspect.vars({'orgRepos':orgRepos})Which outputs:Top 3 python Repos:
[
    {
        name: mypy,
        description: Optional static typing for Python 3 and 2 (PEP 484),
        homepage: http://www.mypy-lang.org/,
        lang: Python,
        watchers: 9638,
        forks: 1564
    },
    {
        name: peps,
        description: Python Enhancement Proposals,
        homepage: https://www.python.org/dev/peps/,
        lang: Python,
        watchers: 2459,
        forks: 921
    },
    {
        name: typeshed,
        description: Collection of library stubs for Python, with static types,
        homepage: ,
        lang: Python,
        watchers: 1942,
        forks: 972
    }
]

Top 10 python Repos:
+--------------+-----------+------------+---------+
| name         | lang      |   watchers |   forks |
|--------------+-----------+------------+---------|
| mypy         | Python    |       9638 |    1564 |
| peps         | Python    |       2459 |     921 |
| typeshed     | Python    |       1942 |     972 |
| pythondotorg | Python    |       1038 |     432 |
| asyncio      |           |        945 |     178 |
| typing       | Python    |        840 |     130 |
| raspberryio  | Python    |        217 |      38 |
| typed_ast    | C         |        171 |      43 |
| planet       | Python    |        100 |     145 |
| psf-salt     | SaltStack |         87 |      50 |
+--------------+-----------+------------+---------+Whilstinspect.vars()lets you view variables ingist.cafeviewer:View and execute Python gists withgist.cafe, e.g:gist.cafe/2b11948d23e051396d62bb7853aad674.Features and bugsPlease file feature requests and bugs at theissue tracker.
Package: gist-control
Gist ControlUse this module to interact with (mostly yours) gists!InstallationRequire Python >=3.6 (f-strings)pip3 install gist-controlUsage# app.pyimportosfromdotenvimportload_dotenvload_dotenv()fromgist_controlimportGistgctrl=Gist(os.getenv("oauth-token"))# .env
oauth-token=ghp_bozbegz...egeCheck exampleshere
Package: gistdawater
gistdawater: Python earth science packageWhat is it?gistdawater is a Python package that offers ease and speed in analyzing geospatial data. gistdawater was designed to support the functions of the Open Data Cube, which primarily aggregates aerial satellite imagery, but it can also operate on personal computers. The purpose of creating Lazyearth is for it to become a widely used tool in the field of geoscience.InstallationIf you want to work on a personal computer, you need to install the GDAL package first Open command promptconda install -c conda-forge gdalHowever, if you want to work on Open Data Cube or Google Colab, you can get started immediately. The latest released version are available at the Python Package Index (PyPI)pip install gistdawater
Package: gist-delete
Installation$[sudo]pipinstallgist-delete$[sudo]npmi-ggist-deleteConfig$exportGITHUB_TOKEN="<GITHUB_TOKEN>"Examples$gist-id<id1><id2>delete orphaned gists$pipinstallgist-idgists-id
$python-mgists_id|grep-v"$(find~/git/gists-maxdepth1-execgist-id{}\;2>/dev/null)"|xargsgist-delete;:readme42.com
Package: gist-description
Installation$[sudo]pipinstallgist-description$[sudo]npmi-ggist-descriptionConfig$exportGITHUB_TOKEN="<GITHUB_TOKEN>"Examples$gist-description<id>"new description"$gist-description<id>
newdescriptionupdate multiple gists description$pipinstallgist-ida) folder name as descriptionfind~/git/gists-typed-maxdepth1-execbash-l-c'id=$(gist-id "$0"); desc="$(basename "$0")"; [[ -n $id ]] && gist-description $id $desc'{}\;b)description.txtas description$find~/git/gists-typed-maxdepth1-execbash-l-c'id=$(gist-id "$0"); desc="$(cat description.txt 2> /dev/null)"; [[ -n $id ]] && [[ -n $desc ]] && gist-description $id $desc'{}\;readme42.com
Package: gister-cli
Gister CliGister CLIes una herramienta creada para simplificar tareas recurrentes en un entorno de desarrollo en especifico.Por ahora estas son las features con las que cuenta:Manejo de diferentes entornos de git (GITEnv)Nota: Se agregaran nuevas funcionalidades proximamente.GITEnvEsta herramienta te permitira cambiar de entorno de manera rapida y sin complicadas configuraciones, podrás reducir tiempo y errores al cambiar entre entornos.Para configurar la herramienta es necesario crear el archivo de configuración dentro de la home mediante:$cd~
$touch.gisterconfigel contenido del archivo debe contener los entornos a configurar de la siguiente manera:gitenv:env:work:username:TestUseremail:testUser@email.comssh:trueme:username:TestUser2email:testUser2@email.comssh:falseactive:mePropiedadesgitenv: Configuración de la herramientagitenvenv: Lista de entornos, es necesario que cuenten con los datos deusername,email,sshusername: Nombre de usuario registradoemail: Email registradossh: Colocar entruesi la cuenta trabaja con repositorios privados, por ejemplo la cuenta de usuario de una organización.active: Determina el entorno que se encuentra actualmente activo. Colocar el entorno preferido en la primera configuración posteriormente al usar el comando, este cambiará el entorno activo de forma automática.ComandosComandoDescripcióngister gitenv --env {entorno}Cambia el entorno de ejecución dependiendo delos entornos configuradosgister --loglevel 10 gitenv --env workEjecuta el comando en modo debug.
Package: gist-exec
Installation$[sudo]pipinstallgist-exec$[sudo]npmi-ggist-execProscopy and paste gist url from browserExamplesexecute gist script (shebang required)$gist-exechttps://gist.github.com/username/idexecute specific file - click on gist file and copy url with anchor$gist-exechttps://gist.github.com/username/id#file-filename-shreadme42.com
Package: gistey
To create a public gist with description for a bunch of files$gistey--description"This would be the description"--filessomefile.extsomeotherfileURLofthegistcreated:https://gist.github.com/<id># outputTo create a secret gist, just add--secretoption$gistey--description"This would be the description"--filessomefile.extsomeotherfile--secretURLofthegistcreated:https://gist.github.com/<id># outputTo create a gist without description$gistey--filessomefile.extsomeotherfileURLofthegistcreated:https://gist.github.com/<id># output
Package: gist-generator
Installation$[sudo]pipinstallgist-generator$[sudo]npmi-ggist-generatorHow it worksdescription as folder name. ordescription.txtif existgitignoresupportedclones.gitafter gist creationskip if.gitexistsConfig$exportGITHUB_TOKEN="<GITHUB_TOKEN>"Examples$gist-generator.private gist$gist-generator-p.create multiple gists$find~/git/gists-typed-mindepth1-maxdepth1-execgist-generator{}\;readme42.com
Package: gistim
QGIS-TimQGIS-Tim is an open source project for multi-layer groundwater flow
simulations. QGIS-Tim provides a link between QGIS and the open source analytic
element method software:TimML (steady-state)andTTim (transient).The benefit of the analytic element method (AEM) is that no grid or
time-stepping is required. Geohydrological features are represented by points,
lines, and polygons. QGIS-Tim stores these features in aGeoPackage.QGIS-Tim consists of a "front-end" and a "back-end". The front-end is a QGIS
plugin that provides a limited graphical interface to setup model input,
visualize, and analyze model input. The back-end is a Python package. It reads
the contents of the GeoPackage and transforms it into a TimML or TTim model,
computes a result, and writes it to a file that the QGIS plugin loads.DocumentationFind the documentation here.InstallationDownload and install a recent version of QGIS (>3.22):https://www.qgis.org/en/site/forusers/download.htmlDownload and install a miniforge Python installation:https://github.com/conda-forge/miniforgeInstall the gistim Python package:Open the miniforge prompt (search in Windows Start for "Miniforge
Prompt").Create a new conda environment, run: conda create --name tim
python=3.9Activate the environment: conda activate timRun: conda install -c conda-forge gistimConfigure the gistim installation, so that the QGIS plugin is able
to find it. Run:python -m gistim configureInstall the QGIS plugin now. The qgistim.zip should not be unzipped
manually, QGIS will do so.Open QGIS.At the top, find the Plugins menu (~sixth object in the menubar).Find "Manage and Install plugins" (first object in drop-down).Find "Install from ZIP" (Sixth in list).Enter the path to the qgistim.zip file.Click "Install Plugin".This will add an icon to the toolbar(s). By clicking the icon, the plugin is
started. The QGIS plugin will automatically start and external interpreter when
it is required.
Package: gistmagic
GistMagicThis package performs upload to GitHub Gist of last X lines of your Ipython session history.Quickstart%pip install gistmagic
%load_ext gistmagic
...
%gistmagic -5DescriptionYou need to generate a GitHub token. (Please trim its purpose and validity)You need to install gistmagicGistMagic is extention used only from ipython.Your token is kept in memory and prompted every time gistmagic extention is loaded.Gistmagic will not include in your Gist any other lines that the last X lines which start with In or Out.Gistmagic will re-arrange the sequence of In/Out in Gist as this the only snipped you have created in your current ipython session.In REPL helpIn [3]: %gistmagic?
Docstring:
Upload code to gist

Usage:
    %load_ext gistmagic
    %gistmagic -X  (%gistmagic -5 / %gistmagic -25)

The argument -X is representing the last X In/Out sequencesHow to create GitHub tokenQuite easy.
Chech it out from here:GitHub token tutorial
Package: gis-tools
GisToolsSome geographical tools for python developersIntroductionGisTools is a small Python library for performing geographical computations. Typically, it gathers different tools from well-known libraries such as gdal, rasterio, geopandas, fiona and shapely.
It allows easily mixing operations between vectors and raster maps (multi-band raster are not supported at the moment).Basic operationsGisTools allows some of the following operations:Fast polygon intersection and splitPolygon partition based on graph theory (requiresMETISpackage)Basic networking (shortest path)Download DEM from online databasesDownload layers from postgis spatial databaseExtract raster statistics with respect to vector layers (polygon/line)Raster to/from polygons conversionCompute horizon obstruction from DEMRequirementsSeerequirements.txt.Note on GDALInstalling GDAL throughpipmight be tricky as it only gets
the bindings, so be sure the library is already installed on
your machine, and that the headers are located in the right
folder. Another solution may to install it through a third-party
distribution such asconda.InstallPip installation should normally take care of everything for you.Using PIPThe easiest way to install GisTools is usingpipin a terminal$ pip install gis-toolsExamplesExample 1UseDigitalElevationModel,PolygonLayerandZonalStatisticsclasses to retrieve average slope within each polygon of a shapefile>>> dem = gistools.raster.DigitalElevationModel("path/to/dem.tif")
>>> slope = dem.compute_slope()
>>> layer = gistools.layer.PolygonLayer("path/to/layer.shp")
>>> zonal_stat = gistools.stats.ZonalStatistics(slope, layer, is_surface_weighted=False, all_touched=True)
>>> average = zonal_stat.mean()Example 2Extract polygons from contour values in raster>>> from gistools.raster import RasterMap
>>> raster = RasterMap("path/to/raster.tif", no_data_value=-9999)
>>> layer = raster.contour(0.04, False).polygonize("attribute name").to_crs(epsg=4326)Example 3: download and build DEM tileBuild DEM tile by downloading from CGIAR website and save to file>>> from gistools import DigitalElevationModel
>>> dem = DigitalElevationModel.from_cgiar_online_database((8, 38, 14, 42))
>>> dem.to_file("path/to/dem.tif")Example 4: partition a polygonSplit a polygon layer into sub-polygons of equal area with respect to
honeycomb mesh (requiresMETISpackage)>>> polygon_layer = gistools.layer.PolygonLayer("path/to/layer.geojson")
>>> new_partitioned_layer = polygon_layer.partition(threshold=2000, disaggregation_factor=20, 
                                                    split_method="hexana", contig=True)Note on OSMYou can use the fineosmnxpackage to download OSM features and then
use it as any otherGeoLayer:fromgistools.layerimportPolygonLayerimportosmnxasoxcountry=PolygonLayer.from_gpd(ox.geocode_to_gdf(dict(country="France",admin_level=2,type="boundary")))
Package: gistory
소개git의 내부를 분석하는데 도움을 주는 도구입니다.설치방법pip install gistory사용방법.git이 있는 디렉토리로 이동합니다.gistory를 입력해서 실행합니다.웹브라우저에서 localhost:8805 를 방문합니다.소개영상https://www.youtube.com/watch?v=KyGfapLpWhY라이선스MIT
Package: gists-id
Installation$[sudo]pipinstallgists_idConfig$exportGITHUB_TOKEN="<GITHUB_TOKEN>"Examples$python-mgists_iddelete orphaned gists$pipinstallgist-deletegist-id
$python-mgists_id|grep-v"$(find~/git/gists-maxdepth1-execgist-id{}\;2>/dev/null)"|xargsgist-delete;:readme42.com
Package: gistsync
gist-sync-pythonJust sync gists with cli!HOW-TO-WORKCreate a token from Github.When you callinitcommand,gist-syncwill make dirs for each gist.Edit gists as you need.Callsynccommand, all changed will update to the cloud.You can change the dir name, butDO NOTedit.gist.jsonwhich in dir.HOW-TO-USEUsage:
    gistsync setup token <token>
    gistsync init-all [--token=<token>]
    gistsync init <gist-id> [--token=<token>]
    gistsync sync [--token=<token>]
    gistsync push [--token=<token>]
    gistsync pull [--token=<token>]
    gistsync check [--token=<token>]init gist, edit it, and sync!You can register token to avoid input it again over again.INSTALLfrom pypi.pipinstallgistsync😀
Package: gisty
GistyA simple cli utility for retrieving Gists on GitHub.Written as part of a technical test.Using the Github API you should query a user's publicly available github gists. The script should then tell you when a new gist has been published.InstallationNote. Requires python3pip3installgistyGetting startedList all Gistsgistyfiregrass--formatlist--colourFind Gists this yeargistyfiregrass--since'last year'--order'desc'Watch for new Gistsgistyfiregrass--watch--since'now'Once you hit GitHub IP address rate limiting (60 requests per hour), you can use a personal access token.gistyfiregrass--authUSERNAME:TOKENTo debug the script and see the underlying GitHub api requests use-vgistyfiregrass-vDevelopmentUsingPipenvto manage dependencies and virtualenvs.# Install locallypython3setup.pyinstall# Build and push to test PyPIpython3setup.pysdistbdist_wheel
python3-mtwineupload--repository-urlhttps://test.pypi.org/legacy/dist/*Potential improvementsMore test coverage (and reports in Travis)Use Travis to matrix tests in all Python3 versions
Package: git2doc
git2doc 📚A powerful Python library for converting git repositories into documents. git2doc allows you to extract and analyze code from GitHub repositories, making it easier to understand and work with large codebases.Why git2doc? 🚀Working with large repositories can be overwhelming, especially when trying to understand the structure and content of the code. git2doc simplifies this process by converting repositories into documents, allowing you to easily search, analyze, and understand the codebase.Table of Contents 📖InstallationUsageFetching RepositoriesLoading Repository DataWriting Data to Parquet FilesBadgesContributingLicenseInstallation 💻pipinstallgit2docUsage 🛠️Fetching Repositoriesfromgit2docimportget_repos_orchestratorrepos=get_repos_orchestrator(n_repos=10,last_n_days=30,language="Python")Loading Repository Datafromgit2docimportpull_code_from_reporepo_data=pull_code_from_repo(repo="https://github.com/voynow/git2doc",branch="main")Writing Data to Parquet Filesfromgit2docimportpipeline_fetch_and_loadpipeline_fetch_and_load(n_repos=1000,last_n_days=365,language="Python",write_batch_size=100,delete=True,)Badges 🏅Contributing 🤝Contributions are welcome! Please feel free to submit a pull request or open an issue on GitHub.License 📄This project is licensed under the MIT License. See theLICENSEfile for more details.
Package: git2gitee
git2gitee从github导入仓库到gitee
解决github下载速度慢的问题
由于码云不提供导入的api，只能JS逆向码云登陆，导入仓库安装pipinstallgit2gitee使用# git2gitee -u {gitee_username} -k {gitee_password} github_repo_urlgit2gitee-umikele-kpasswordhttps://github.com/toyourheart163/git2gitee加密方法进入登陆页面时会加载一个encrypt开头的js文件python 使用公钥加密的方法, 使用pycryptodome# git2gitee/util.pyfrombase64importb64encodefromCrypto.PublicKeyimportRSAfromCrypto.CipherimportPKCS1_v1_5defencrypt_pwd(password,public_key):rsa_key=RSA.import_key(public_key)encryptor=PKCS1_v1_5.new(rsa_key)cipher=b64encode(encryptor.encrypt(password.encode('utf-8')))returncipher.decode('utf-8')解决csrf-token 的问题importreresult=re.search('<meta content="(.*?)" name="csrf-token"',response.text)token=result.group(1)
Package: git2json
===============================Git2JSON===============================.. image:: https://badge.fury.io/py/git2json.png:target: http://badge.fury.io/py/git2json.. image:: https://travis-ci.org/tarmstrong/git2json.png?branch=master:target: https://travis-ci.org/tarmstrong/git2json.. image:: https://pypip.in/d/git2json/badge.png:target: https://crate.io/packages/git2json?version=latestConvert git logs to JSON for easier analysis.* Free software: BSD license* Documentation: http://git2json.rtfd.org.Installation------------The easiest way to install ``git2json`` is through pip:::pip install git2jsonIf you want the most up-to-date version (at a greater risk of encounteringbugs) you can clone this repository and install it manually:::git clone https://github.com/tarmstrong/git2json.gitcd git2jsonpython setup.py installUsage-----::usage: git2json [-h] [--git-dir GIT_DIR]optional arguments:-h, --help         show this help message and exit--git-dir GIT_DIR  Path to the .git/ directory of the repository you aretargetingThe resulting JSON log is printed to standard output.Example JSON------------The following shows the structure of the JSON emitted by the tool.::[{"committer": {"date": 1379903278,"timezone": "-0400","name": "Tavish Armstrong","email": "tavisharmstrong@gmail.com"},"parents": ["e307663594031738c932877c8589552d5aafc953"],"author": {"date": 1379903278,"timezone": "-0400","name": "Tavish Armstrong","email": "tavisharmstrong@gmail.com"},"tree": "bd03127651335e3a51241f507f3bf194d8336485","commit": "d06454c160218b4a782afad2429abda1add54df0","message": "Allow user to specify git-dir on the command line.","changes": [[23, 3, "git2json/__init__.py"]]},// ... More commits]Usage Examples==============* [How Long Does It Take To Review an IPython Pull Request?](http://nbviewer.ipython.org/urls/raw.github.com/tarmstrong/code-analysis/master/IPythonReviewTime.ipynb) by Tavish Armstrong (git2json author)If you are using ``git2json`` in interesting ways, please share and I willadd your notebooks/blog posts/code to this list.History-------0.1.0 (2013-09-23)++++++++++++++++++* First release on PyPI.0.1.1 (2013-09-25)++++++++++++++++++* Fixed broken PyPI package.0.2.0 (2013-09-28)++++++++++++++++++* Parents now an array instead of a single value.0.2.1 (2013-10-07)++++++++++++++++++* Re-implemented parser with regular expressions.* Character encoding issues fixed.0.2.2 (2013-11-09)++++++++++++++++++* Fix bug #7 (hidden filenames not parsed correctly): https://github.com/tarmstrong/git2json/issues/70.2.3 (2013-11-09)++++++++++++++++++* Python 3 compatibility