Saravanan666/pypi-org huggingface dataset:
Package: python-gettext
OverviewThis implementation of Gettext for Python includes a Msgfmt class which can be
used to generate compiled mo files from Gettext po files and includes support
for the newer msgctxt keyword.The idea for this project had been rather ambitious, but never lived up to what
is was supposed to do. Look at Babel (http://pypi.python.org/pypi/Babel) for a
project more worthy of this projects name.Development takes place athttps://github.com/hannosch/python-gettextContributorsHanno SchlichtingChristian HeimesAndrei PolushinMichael HowitzSteffen AllnerChangelog5.0 (2023-03-30)Add support for Python 3.11.Drop support for Python 2.7, 3.5, 3.6.4.1 (2022-08-26)Add support for Python 3.8, 3.9, 3.10. [icemac]Drop support for Python 3.4. [icemac]Drop support for running the tests usingpython setup.py test. [icemac]4.0 (2018-11-27)Add support for Python 3.6 and 3.7.
[sallner]Drop support for Python 2.6.
[sallner]3.0 - 2016-01-04Useu’’strings again for easier cross Python 2/3 code.
[hannosch]#5: Fix plural form support under Python 3.x.
[hannosch]Break dependency onunittest2for Python 2.7.
[icemac]2.1 - 2013-02-10Preferast.literal_evaloverevalunder Python 2, instead of just under
Python 3. We only support Python 2.6+ where the function is available.
[hannosch]Tested successfully under Python 3.3.
[hannosch]2.0 - 2011-12-22Tested successfully under PyPy 1.7.
[hannosch]Handle non-latin-1 characters in the header correctly.
[hannosch]Python 2 and 3 compatibility in the same codebase.
[hannosch]1.2 - 2011-11-01Make sure emptypofiles don’t break.
[Alexandru Plugaru]Add support for messages with plural forms.
[Andrei Polushin]1.1.1 - 2011-03-21Simplify test folder discovery.
[hannosch]1.1 - 2011-03-20Handle Unicode Byte Order Mark at the beginning of files. This closeshttp://dev.plone.org/plone/ticket/10813.
[hannosch, kleist]Fixed potential UnicodeError in exception handling. This closeshttp://dev.plone.org/plone/ticket/11058.
[hannosch, vincentfretin]1.0 - 2009-05-23Updated package description and metadata, relicense from GPL to BSD. Note
about Babel which supersedes this package in all possible ways.
[hannosch]0.6 - 2007-11-02Fixed header parsing.
[hannosch]0.5 - 2007-11-01Optimized file parsing by using more elif clauses and avoiding an insane
number of startswith and isinstance calls.
[hannosch]0.4 - 2007-10-13Added header_only argument to the read method, that allows to only parse
the header of a file without reading and parsing all the messages.
[hannosch]0.3 - 2007-08-25Added an explicit read method, which only parses the po file and stores
it in the messages dict, but does not compile it.
[hannosch]0.2 - 2007-08-23Bumped version number to accommodate the number in the egg info.
[hannosch]0.1 - 2007-06-19Initial implementation of a Msgfmt class which supports the generation of
Gettext mo files including support for the new msgctxt keyword.
[hannosch]
Package: python-ghost-cursor
Python Ghost CursorPython port ofXetera/ghost-cursor, for use with Pyppeteer and Playwright.Generate realistic, human-like mouse movement data between coordinates or navigate between elements with Pyppeteer/Playwright
like the definitely-not-robot you are.Installationpip install python_ghost_cursorUsageGenerating movement data between 2 coordinates.frompython_ghost_cursorimportpathstart={"x":220,"y":402,}end={"x":902,"y":1032,}route=path(start,end)# [#   { "x": 100, "y": 100 },#   { "x": 108.75573501957051, "y": 102.83608396351725 },#   { "x": 117.54686481838543, "y": 106.20019239793275 },#   { "x": 126.3749821408895, "y": 110.08364505509256 },#   { "x": 135.24167973152743, "y": 114.47776168684264 }#   ... and so on# ]Usage with Pyppeteer:importasyncioimportpyppeteerfrompython_ghost_cursor.pyppeteerimportcreate_cursorasyncdefmain(url):selector="#sign-up button"browser=awaitpyppeteer.launch(headless=False)page=awaitbrowser.newPage()cursor=createCursor(page)awaitpage.goto(url)awaitpage.waitForSelector(selector)awaitcursor.click(selector)asyncio.run(main())Usage with Playwright (async):importasynciofromplaywright.async_apiimportasync_playwrightfrompython_ghost_cursor.playwright_asyncimportcreate_cursorasyncdefmain():asyncwithasync_playwright()asp:selector="#sign-up button"browser=awaitp.chromium.launch(channel="chrome",headless=False)page=awaitbrowser.new_page()cursor=create_cursor(page)awaitpage.goto(url)awaitpage.wait_for_selector(selector)awaitcursor.click(selector)asyncio.run(main())Usage with Playwright (sync):fromplaywright.sync_apiimportsync_playwrightfrompython_ghost_cursor.playwright_syncimportcreate_cursordefmain():syncwithsync_playwright()asp:selector="#sign-up button"browser=p.chromium.launch(channel="chrome",headless=False)page=browser.new_page()cursor=create_cursor(page)page.goto(url)page.wait_for_selector(selector)cursor.click(selector)main()More infoThe original repo givesa description of some of the cool features, along witha good explanation of how it works.
Package: python-gh-template
# Python Template Repo
—Template Python Repo for getting started with a Python Library with GitHub.## BenefitsGitHub Action TemplatesAuto deploy to PyPiIssue and Pull Request TemplatesAuto Configured install and test requires## To UseClone the repoRename the [python_GH_template](python_gh_template) directory to the name of your project.Make sure the names updates in [setup.py](setup.py), [lint workflow](.github/workflows/lint.yml).Install package locallypip install -e .Add your project requirements to [requirements.txt](requirements.txt).If you have any development requirements add them to [requirements-dev.txt](requirements-dev.txt).Add tests (or delete if you want)Change the [License](LICENSE) if desired.Edit the assignees in [Issue Templates](.github/ISSUE_TEMPLATE), [Pull Request Template](.github/PULL_REQUEST_TEMPLATE) and [Dependabot Config](.github/dependabot.yml).Edit [setup.py](setup.py) to have relevant links and information.AddPYPI_USERNAMEandPYPI_PASSWORDinto the secrets section.
Package: python-gilt
GiltGilt is a tool which aims to make repo management, manageable.  Gilt
clones repositories at a particular version, then overlays the repository to
the provided destination.  An alternate approach to "vendoring".What makes Gilt interesting, is the ability to overlay particular files and/or
directories from the specified repository to given destinations. Originally,
this was quite helpful for those using Ansible, since libraries, plugins, and
playbooks are often shared, but Ansible'sGalaxyhas no mechanism to handle
this.  Currently, this is proving useful for overlayingHelm charts.DocumentationInstallation|Usage|DocumentationLicenseTheMITLicense.The logo is licensed under theCreative Commons NoDerivatives 4.0 License,
and designed by@nanotron.
If you have some other use in mind, contact us.
Package: python-gist-note
灵感来自于 @教主 的 42qucc：https://bitbucket.org/zuroc/42qu-notepad，http://p.pe.vc/:help。基于 gist
的代码分享工具，可以很方便和你的小伙伴在命令行分享代码片段。安装sudo pip install python-gist-note使用USAGE：1. 获取 gist 内容（写入到 file.py）：
gn gist-id-or-url > file.py

2. 新建 gist （根据 file.py 文件的内容）：
gn [options] < file.py

3. 完整参数：
gn -f gist-test.py -m 'this is a test file' -u abc@def.com -p pwd < test.pyOPTIONS:--help, -h: 显示本帮助

-f: 可选，新建 gist 时，新建的 gist 的文件名，默认为：gistfile1.txt

-m: 可选，新建 gist 时，新建的 gist 描述，默认为空

-u, -p: 用户名和密码使用场景举例：李雷想把自己机器上的 app.py 分享给韩梅梅，李雷操作如下：$ gn -f app.py -m 'this is a test python file' < app.py
https://gist.github.com/38821b0f84959c525379edb258f0243f
38821b0f84959c525379edb258f0243f李雷将获得的 gist id 或 url 发送给韩梅梅，然后韩梅梅操作如下：$ gn 38821b0f84959c525379edb258f0243fc > app.py
Package: python-gitdb
python-gitdbis a small Python module that allows to use a git repository
as key-value-store. The data can be serialized by different Serializers.Attention! The integration of a remote repository is rudimental, i.e., push and pull
currently only works via soft resets.SerializersThere are several serializers provided to store the data:JsonSerializer        (included without further modules)BJsonSerializerYamlSerializerMsgPackSerializerDepending on the selected serializer, the corresponding module must be
installed.Setuppoetry install python-gitdbUsagefrom gitdb import GitDb
from gitdb.serializers.jsonserializer import JsonSerializer

# git repository that is used as database
REPO = "/your/path/to/the/repository"

# prepare the git repository database
gitdb = GitDb(REPO, serializer=JsonSerializer)

# add two entries
gitdb.set("key_a", "test")
gitdb.set("key_b", {"a": 1, "b": 2})

# load two entries
print(gitdb.get("key_a"))
print(gitdb.get("key_b"))
Package: python-githooks
python-githooksCreate git hooks with ease using a simple configuration file in a git projectInstallpipinstallpython-githooksUsageCreate a.githooks.iniconfiguration file(If not provided a dummy configuration file will be created).Add sections based ongit hooks namesfollowed by acommandproperty with the shell code you want to run.Run eitherpython -m python_githooksorgithooksin you virtual environment.Configuration file Example:# .githooks.ini

[pre-commit]
command = pytest --cov

[pre-push]
command = pytest --cov && flake8Remember to re-runpython -m python_githooksorgithooksevery time  you make changes to the configuration file,
whether it is for adding new hooks or modifying the current ones.Removing a hookIf you already created a hook and now want to remove it, just set the command value to empty, like this:# .githooks.ini

[pre-commit]
command =This will not actually physically remove the hook from the git local project, just will make it instantly exit with0status code.Licensepython-githooks isMIT-licensed.
Package: python-github-api
python_githubsimple python client library for github rest APIFree software: Apache Software License 2.0Documentation:https://python-github.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2021-10-10)First release on PyPI.
Package: python-gitlab-api
python-gitlab-api: GitLab APIThis pacakge provides two things:a simple python class based implementation of the GitLab v4 API.command-line utilities to query the API via shellSee theARCHITECTURE fileStarting using the module's classes is pretty easy:specify the endpoint, which is URL + authorization token (or anon access)use a resouce among the ones provided in gitlab.resourceuse a CRUD operation, among the ones supported for the resourcepass paramters to the operation to filter the resultsIn the following case it is used a predefined GitLab.com endpoint, with no token paramter passed (anonymous).
The Projects resource used with a Read operation  will list some/all projects.from gitlab.utils import ppjson
from gitlab.resources import Projects
from gitlab.endpoints import GitLabDotCom 

ppjson(Projects(GitLabDotCom()).read())In following case it is used a predefined GitLab.com endpoint, with a token.
The Projects resource used with a Read operation  will list some/all projects.from gitlab.utils import ppjson
from gitlab.resources import Projects
from gitlab.endpoints import GitLabDotCom 

ppjson(Projects(GitLabDotCom(token='SOME TOKEN')).read({'owned':True}))In the following case, a generic endpoint is used.GitLabEndpoint' can receive in its constructor an URL and token, or take it from the environment. The environmental variablesAPI_AUTH_TOKENandGITLAB_API_V4_URL(orCI_API_V4_URL` to be compatible with GitlabCI environments) should be set.
e.g.API_AUTH_TOKEN='123456'
CI_API_V4_URL='https://gitlab.aws.agileanalog.com/api/v4'And the related code using such environment:from gitlab.utils import ppjson
from gitlab.resources import Projects
from gitlab.endpoints import GitLabEndpoint

ppjson(Projects(GitLabEndpoint.from_env()).read({'owned':True}))TokensCurrently onlypersonal accesstokens are supported.Feel free to suggest ways to introduce the support for OAuth2 contacting the author and then proposing a change with a merge request.UtilitiesSome command-line utilties which maps 1:1 to the API resources are provided as entry-points of the python package.The utlities are meant to be used for quick scripting, but they support environmental variables anddash-dashparameters, so that they can be used in CICD environment.Such mapping utilities are meant to return JSON, as provided by the API.### Package versionsSome basic version management can be used in CICD to automatically release or query about the release version of a packageget-package-version and get-latest-package-version query the Release resource, and provide either tha latest release version or bump the next patch version based on the latest release version recorded in gitlabget-ContributionsAll contribution are welcome, in the best open source tradition.Before adding missing features, please contact the author first to discuss best ways to do it.New resources can be added via merge requests directly, as they are supposed to be really easy to add.
Package: python-gitlab-reporter
Python gitlab reporterA custom exception handler that can be used to (re)open issues on Gitlab for projects written in Python.The aim was to build a very small module that is easy to use and that works with a local Gitlab instance.
This module is useful for those who want to aggregate runtime errors in a central location without
using third-party software (e.g. sentry.io, etc).Duplicate errors will be tracked in a single issue and will not be duplicated to avoiderror-spamming.The script is thread-safe and handles errors fromThread.run().InstallationThe module is available on Pypi:pipinstallpython-gitlab-reporterIn your Python project call:fromreporter.coreimportReporterReporter.init("https://gitlab.com",private_token="12345657678890",project_id=123456)How does it work?The script adds custom hooks tosys.excepthookandthreading.excepthook.
These wrap around the original hooks and send issues to Gitlab. Any error that is caused bypython-gitlab-reporteritself is ignored. The originalsys.excepthookandthreading.excepthookwillalwaysbe called, so that
the exceptions still terminate the program, etc.
Package: python-git-package
A very simple scaffold for constructing python packagesInstallationrunpip installpython-git-packageIntroductionThis package can be used for scaffolding new packages.
The commandpgp initcreates a new package in the current folder.
The commandpgp releasecreates a new release.
The commandpgp docbuilds the docs using sphinx.The package layout is as follows:mypackage|--.git|--doc||--source||--_static||--_templates||--conf.py||--index.rst||--mypackage.rst||--examples|--mypackage||--__init__.py||--__version__.py||--mypackage.py||--tests||--all.py||--test_mypackage.py||--.gitignore|--LICENSE|--MANIFEST.in|--README.rst|--setup.pyAll files are populated with basic content so the notorious task of manually creatingsetup.py```or``manifest.inis taken out of the users task.Furthermore, the init command initializes a git repository with two branches,masteranddevin the package folder.
Themasterbranch is intended for published releases only.
It should allwats point to the latest release.
Thedevbranch is used for develloping the package.
To ease the process of creating a new release
Package: python-git-secrets
Python Git SecretsA pure Python library providinggit-secretsfunctionality.We don't plan to do everything thatgit-secretsdoes
(i.e. placing patterns in your .gitconfig file), but provide you with the building blocks for
matching patterns you don't want exposed to the world via Github. This will allow you to run
the tool in an AWS Lambda function with no dependence on external binaries.There are no longer AWS credentials in this repository (at one time there were
inactive AWS credentials used for testing purposes.) Now testing is performed
by generating AWS credential strings on the fly using the same pattern that AWS
uses for their creds.RequirementsDulwich- A pure Python Git implementation.Sample usageRun thepython-git-secrets.pycommand to try it out:(venv) [mbacchi@hostname python-git-secrets]$ python samples/python-git-secrets.py --scan flask-quotes --repository https://github.com/mbacchi/flask-quotes --use_local_repo -r
Scanning flask-quotes recursively
flask-quotes
SCANNING: flask-quotes/app.py
Found verboten string in path flask-quotesRunning TestsTo run tests, executetest_driver.pyfrom the top level directory, you'll see output similar to:(venv) [mbacchi@hostname python-git-secrets]$ python test_driver.py
....
----------------------------------------------------------------------
Ran 4 tests in 0.005s

OKTODOcreate logging capabilitiesenable verbose outputsupport more git-secretstestsMetaMatt Bacchi -mbacchi@gmail.comDistributed under the BSD (Simplified) license. SeeLICENSEfor more information.ContributingFork it (https://github.com/mbacchi/python-git-secrets/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: python-git-wrapper
Git WrapperThe Simple Python Git WrapperThis library is a simple git wrapper which let you perform many operations on any git repository in a powerful and simple way.RequirementsThis library has been tested python >= 3.7, 3.8 and you need to have installed Git > 2.22.0Getting StartedThe library is pretty simple, you only need to indicate where your repository is or create a new one.from python_git_wrapper import Repository

repository = Repository('.') # Path of your git repository. It could be relative to your project or absoluteOr if the repository doesn't exist yetrepository = Repository('.', create=True)Adding files:repository.add_files('path to any file')Committing changes:repository.commit('commit message')Finally, pushing them:repository.push()ComponentsThe library is divided in 3 main components.Git Service: Object which contains all the data to communicate with the git process properly.NOTE: If you don't have configured the path of the git binary in your path. Execute the next command:GitService.singleton('git path'')Repository: It will be your entry point, which you will interact to provide an retrieve all the information. It is a reference to the repository you want to work on.Git Elements:Commit: Containing all the relevant information about any commitBranch: Contains the name of the branchStatus: Object which structure all the changes in your working directoryAPI OverviewSmall overview about the capabilities of this library. All this methods and attributes are accesible by the repository object.MethodDescriptionReturnbuildCreate or init a new git repositoryRepositorycommitCommit the staged changesStatusstatusRetrieve the Status of the Working DirectoryStatuspushPush Changes to remote repositoryStatuspullPull changes to remote repositoryStatuscheckoutChange HEAD referenceStatuscreate_branchCreate a new branch, go there if necessaryBranchmerge_branchesMerge two branches. Support different merge modesBranchadd_remoteAdd a new remote repositoryStatusremove_remoteRemove a remote repositoryStatusexecuteexecute any git command in the repositorystrrevert_last_commitGenerate a new commit reverting the previous oneCommitchange_last_commit_messageRewrite the previous commit messageCommitget_commit_by_positionRetrieve Commit by position in the current branchCommitget_branches_by_commitRetrieve all the branches which contain one specific commitCommitPropertyDescriptionReturnbranchesList of your local branchesList[Branch]current_branchThe branch where it is currently the repositoryBranchremoteList of your remote repository namesList[str]last_commitThe last commit in your repositoryCommitDetailed API SpecificationHere.
Package: python-glanceclient
Team and repository tagsPython bindings to the OpenStack Images APIThis is a client library for Glance built on the OpenStack Images API. It provides a Python API (theglanceclientmodule) and a command-line tool (glance). This library fully supports the v1 Images API, while support for the v2 API is in progress.Development takes place via the usual OpenStack processes as outlined in thedeveloper guide.  The master repository is inGit.See release notes and more athttps://docs.openstack.org/python-glanceclient/latest/.License: Apache License, Version 2.0PyPi- package installationOnline DocumentationLaunchpad project- release managementBlueprints- feature specificationsBugs- issue trackingSourceSpecsHow to Contribute
Package: python-glass
Glass -- 为 Glass Engine 提供 OpenGL 易用封装Glass为Glass Engine的子项目，为 OpenGL Assistant 的缩写。
OpenGL 函数的底层接口的设计为了跨平台，牺牲了易用性。
为了使 OpenGL 的调用对 Python 用户更友好，封装了Glass库。
该库简化了大量 OpenGL 概念以及函数调用方法，几项重点简化包括：支持从文件编译 Shader，支持在 Shader 中使用include，并将报错行号指向真实的 include 文件；ShaderProgram 自动采用增量编译策略，仅当文件和依赖改变时重新编译；设置 Uniform/Uniform Block/Shader Storage Block 变量时，Python 对象可直接赋值给 Shader 中的对应结构变量；提供 Vertices/Indices 类对顶点和索引进行管理，用户无需接触 VBO/VAO/EBO 等直接操作显存的概念；变化的顶点和索引采用增量拷贝算法同步到显存，提高拷贝效率。下面是一段不完整的代码展示了 glass 操作 OpenGL 的方法：fromglassimport*# 在一个合法的 OpenGL 上下文中：# 创建 shader 程序program=ShaderProgram()program.compile("path/to/vertex_shader.vs")program.compile("path/to/fragment_shader.fs")# 上述两个 compile 并不会每次运行都编译，仅首次以及 Shader 文件修改后才编译# shader 文件中可含有 #include 语法# 将 Python 变量 pyvar 直接赋值给 Shader 端的 Uniform 结构体变量 uniform_var# 只要 Python 变量中含有对应的属性program["uniform_var"]=pyvar# 纹理 uniform 变量可用如下方法赋值# 对用户隐藏纹理单元概念program["sampler_var"]=sampler2D("path/to/image.png")# 创建顶点数组vertices=Vertices()# 像 list 一样操作 vertices，只不过元素只能为 Vertex 类型# 添加顶点vertices.append(Vertex(position=glm.vec2(-0.5,-0.5),color=glm.vec3(1,0,0)))vertices.append(Vertex(position=glm.vec2(0.5,-0.5),color=glm.vec3(0,1,0)))vertices.append(Vertex(position=glm.vec2(0,0.5),color=glm.vec3(0,0,1)))# 构建顶点 Vertex 时，属性名可为任意值# 只要在 vertex shader 中的 layout 指定了该属性名并且类型匹配# 创建索引数组indices=Indices()# 像 list 一样操作 indices，只不过元素只能为 glm.uvec3 类型indices.append(glm.uvec3(0,1,2))# 绘制三角形program.draw_triangles(vertices=vertices,indices=indices)# vertices 和 indices 可在任意时刻动态修改内部元素，以及动态增加删除元素# 所有修改将在下次绘制时同步到显存你可以在任意需要使用 OpenGL 的地方使用Glass，
但其初衷是为Glass Engine提供 OpenGL 的封装，因此不过多介绍Glass的用法，欢迎访问Glass Engine项目：文档Github 项目主页Gitee 项目主页PyPI 索引
Package: python-gmail
Package Installation :pip install python-gmailPackage Linkpython-gmail :Inorder to send mail form gmail using SMTP Server, first you need to enable "Two-Step Verification" on the sender mail id.Google Account HelpOpen yourGoogle Account.2. In the navigation panel, select Security.

3. Under “Signing in to Google,” select 2-Step Verification and then Get started.

4. Set any "Account PIN". This pin will be the passowad of the sender mail is.How to use the module :E-mail login credential :gmail_id=('')#sender g-mail idgmail_password=('')#sender g-mail passwordSingle destination mail id :destination_addresses=['reciver_mail_id_1@gmail.com']Multiple destination mail id's :destination_addresses=['reciver_mail_id_1@gmail.com','reciver_mail_id_2@gmail.com','reciver_mail_id_3@gmail.com','............................','.............................','reciver_mail_id_N number@gmail.com',]main subject :subject=('')#mail subjectmail message :message=('')#mail messageHow to import the module :fromgmail.gmailimportgmailcreate mail object :mail=gmail()give sender login credential :mail.login(gmail_id,gmail_password)give reciver mail id or id's. :mail.receiver_mail(destination_addresses)send mail :mail.send_mail(subject,message)Example :fromgmail.gmailimportgmailmail=gmail()mail.login(gmail_id,gmail_password)mail.receiver_mail(destination_addresses)mail.send_mail(subject,message)License :MIT LicensedAuthor :Sujit MandalGitHubPyPiLinkedIn