Saravanan666/pypi-org huggingface dataset:
Package: repo-gist-sync
Repo Gist SyncA library to synchronize git repository to Github Gistsgraph TD;

    A(local machine)
    A -->|push| B(Github repository)
    B -->|Github Actions| C(Gists)
    B -->|Github Actions| E(Gists)
    B -->|Github Actions| F(Gists)
    C --> D(Embeds)
    E --> G(Embeds)
    F --> H(Embeds)
    C --> I(Embeds)
    E --> J(Embeds)
    F --> K(Embeds)InstallationInstall fromPyPI.pipinstallrepo-gist-syncDependencies:requests,clickExampleWrite the Code as follows (in the repository, examples folder):get_user_id.py#-- title: Get User's ID#-- description: Code to retrieve user_id from username#-- tags: python, medium_api, medium_api_py# Import librariesimportosfrommedium_apiimportMedium#%%# Get RAPIDAPI_KEY from the environmentapi_key=os.getenv('RAPIDAPI_KEY')#%%# Create a `Medium` Objectmedium=Medium(api_key)#%%# Get the `User` Object using "username" and print IDuser=medium.user(username="nishu-jain")print(user.user_id)get_user_id_output.txt1985b61817c3Sync usinggistdirsyncCLI tool (from local machine or via Github Actions).gistdirsync--auth-token$GIST_TOKEN--directory/path/to/examplesResulting Gist looks likethis.[Get User's ID] Code to retrieve user_id from username #python #medium_api #medium_api_pyget_user_id.py# Import librariesimportosfrommedium_apiimportMedium# Get RAPIDAPI_KEY from the environmentapi_key=os.getenv('RAPIDAPI_KEY')# Create a `Medium` Objectmedium=Medium(api_key)# Get the `User` Object using "username" and print IDuser=medium.user(username="nishu-jain")print(user.user_id)get_user_id_1.py# Import librariesimportosfrommedium_apiimportMediumget_user_id_2.py# Get RAPIDAPI_KEY from the environmentapi_key=os.getenv('RAPIDAPI_KEY')get_user_id_3.py# Create a `Medium` Objectmedium=Medium(api_key)get_user_id_4.py# Get the `User` Object using "username" and print IDuser=medium.user(username="nishu-jain")print(user.user_id)get_user_id_output.txt1985b61817c3Continuous Deployment with Github ActionsNote:You can generate the GIST_TOKEN inGithub Settingsand place it in "secrets" in repository's settings.Place an YAML file under.github/workflow/repo-gist-sync.ymlwith the following content:name:GIST CD on main branch and example directory changeon:push:paths:-examples/**jobs:build:if:github.ref == 'refs/heads/main'runs-on:ubuntu-lateststrategy:matrix:python-version:['3.8']steps:-uses:actions/checkout@v2-name:Set up Python ${{ matrix.python-version }}uses:actions/setup-python@v2with:python-version:${{ matrix.python-version }}-name:Install repo-gist-syncrun:pip install repo-gist-sync-name:Use "gistsyncdir" on "examples" directoryrun:gistdirsync --auth-token ${{ secrets.GIST_TOKEN }} --directory ./examples/Note:Change directory name ("examples") as per required in the yaml file.FeaturesSupports python (.py) and shellscripts (.sh)Can write metadata (title, description, & tags) for gists in code file itself (#--).Break the code in smaller snippets using separator (#%%).Can save the output in the corresponding gist by creating an additional file as "filename_output.txt"
Package: repo-helper
A tool to manage configuration files, build scripts etc. across multiple projects.This project is in an early stage, and some things might not work correctly or break in a new release.Note: The autocommit functionality is currently broken on Windows, but works OK on Linux and macOS.DocsTestsPyPIAnacondaActivityQAOtherInstallationrepo_helpercan be installed from PyPI or Anaconda.To install withpip:$python-mpipinstallrepo_helperTo install withconda:First add the required channels$condaconfig--addchannelshttps://conda.anaconda.org/conda-forge$condaconfig--addchannelshttps://conda.anaconda.org/domdfcodingThen install$condainstallrepo_helper
Package: repolib
RepoLib is a Python library and CLI tool-set for managing your software
system software repositories. It’s currently set up to handle APT repositories
on Debian-based linux distributions.RepoLib is intended to operate on DEB822-format sources. It aims to provide
feature parity with software-properties for most commonly used functions.DocumentationDocumentation is available online atRead The Docs.Basic CLI UsageRepoLib includes a CLI program for managing software repositories,apt-manage.Usage is divided into subcommands for most tasks. Currently implemented commands
are:apt-manage add # Adds repositories to the system
apt-manage list # Lists configuration details of repositoriesAdditional information is available with the built-in help:apt-manage –helpAddApt-manage allows entering a URL for a repository, a complete debian line, or a
Launchpad PPA shortcut (e.g. “ppa:user/repo”). It also adds signing keys for PPA
style repositories automatically.ListWith no options, it outputs a list of the currently configured repositories on
the system (all those found in/etc/apt/sources.list.d/. With a configured repository as an argument, it outputs the configuration
details of the specified repository.RemoveAccepts one repository as an argument. Removes the specified repository.NOTE: The system repository (/etc/at/sources.list.d/system.sources) cannot be
removed.SourceAllows enabling or disabling source code for the given repository.ModifyAllows changing configuration details of a given repositoryInstallationFrom System Package ManagerIf your operating system packages repolib, you can install it by running:sudo apt install python3-repolibUninstallTo uninstall, simply do:sudo apt remove python3-repolibFrom PyPIRepolib is available on PyPI. You can install it for your current user with:pip3 install repolibAlternatively, you can install it system-wide using:sudo pip3 install repolibUninstallTo uninstall, simply do:sudo pip3 uninstall repolibFrom GitFirst, clone the git repository onto your local system:git clone https://github.com/isantop/repolib
cd repolibDebianOn debian based distributions, you can build a .deb package locally and install
it onto your system. You will need the following build-dependencies:debhelper (>=11)dh-pythonpython3-allpython3-setuptoolsYou can use this command to install these all in one go:sudo apt install debhelper dh-python python3-all python3-setuptoolsThen build and install the package:debuild -us -uc
cd ..
sudo dpkg -i python3-repolib_*.debUninstallTo uninstall, simply do:sudo apt remove python3-repolibsetuptools setup.pyYou can build and install the package using python3-setuptools. First, install
the dependencies:sudo apt install python3-all python3-setuptoolsThen build and install the package:sudo python3 ./setup.py installUninstallYou can uninstall RepoLib by removing the following files/directories:/usr/local/lib/python3.7/dist-packages/repolib//usr/local/lib/python3.7/dist-packages/repolib-*.egg-info/usr/local/bin/apt-manageThis command will remove all of these for you:sudo rm -r /usr/local/lib/python3.7/dist-packages/repolib* /usr/local/bin/apt-manage
Package: repo-link
Repo Link!Open github links inside your favorite editorAutomatically runsclone,checkout, and opens the correct line for you!InstallationInstall by runningpipinstallrepo_linkUsage:repo_linkhttps://github.com/Tadaboody/repo_link/blob/master/repo_link/repo_link.py#L24usage:repo_link[-h][--parentsPARENTS[PARENTS...]][--editorEDITOR][--configCONFIG]link

Opengithublinkineditor

positionalarguments:linkTheopenedlink

optionalarguments:-h,--helpshowthishelpmessageandexit--parentsPARENTS[PARENTS...]Directorieswheretherepositorywillbesearched.ifnotfounditwillbeclonedintothefirstone--editorEDITORTheeditoropened(default:EDITOR)--configCONFIGAjsonfilewherecommandlineoptionscanbehard-coded,default:~/.repo_link_config.jsonA config json can be given, it will look like this{"editor":"vim","parents":["~/Forks","~"]}
Package: repo-links
repo-linksQuickly open URLs related to your repos.How to install$ pip install repo-linksExample usageEach command prints the URL to a relevant service. For that to actually be useful, you probably want to use it in another command. For example, on MacOS you can use theopencommand to open the URL in the default browser.The command below would open your repo's page on it's code management system.$ open $(repo-links code)Open a repo in a code management systemThecodecommand prints a URL to the repo's code management system. The details are automatically pulled from your locally setup git remotes. Without any additional arguments, it'll open the repo's root page in your code management system.$ repo-links codeYou can also point to a specific file or directory.$ repo-links code ./repo_links/cli.pyYou can optionally specify either a single line or a range of lines to have them selected (useful when collaborating on code snippets).$ repo-links code ./repo_links/cli.py --lines 12
$ repo-links code ./repo_links/cli.py --lines 12:15Currently supported code management systems:GitHubBitbucketOpen your repo in a CI/CD platformThecicommand opens a repo's CI/CD platform page. The platform is determined by whether their configuration files exist locally (e.g. a.githubfolder for GitHub Actions).$ repo-links ciCurrently supported CI/CD platforms:CircleCIBuilding your own pluginsUnder construction.repo-linksis planning to support plugins.DevelopmentTo contribute to this tool, first checkout the code. Then create a new virtual environment:cd repo_links
python -mvenv venv
source venv/bin/activateOr if you are usingpipenv:pipenv shellNow install the dependencies and tests:pip install -e '.[test]'To run the tests:pytest
Package: repolist
RepoListRepolist is a command-line interface (CLI) tool designed to generate wordlists from GitHub repositories. It simplifies the process of extracting files and directories from GitHub repos, enabling the creation of custom wordlists for penetration testing and bug bounty programs.FeaturesWordlist Generation: Easily create wordlists from GitHub repositories. Choose between generating a wordlist of files, directories, or both.Customization: Add custom prefixes and suffixes to the generated wordlists, such as appending .php to each word.Support for Private Repositories: Access and generate wordlists from both private and public repositories by providing a GitHub token using the-toption.Branch Selection: Specify a different branch using the-boption.Proxy Support: Utilize a proxy by using the-poption.Installationpip3installrepolistUsageGenerate a wordlist by providing the URL of the GitHub repository:repolist-uhttps://gihtub.com/user/repoFor more options and configurations, use the -h flag for help.ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.DisclaimerThis tool is intended to be used for security testing purposes only and should not be used for any illegal purposes.LicenseMITAuthorAdem Kouki
Package: repo-loader
repo-loaderThis is a fork of the very excellentgptrepoby zackees, which itself is a fork ofgpt-repository-loaderby mpoon.This tool concatenates through all the files in the repo and adds ai prompts which can be used for chat gpt conversations.Simply open up the file, copy and paste it into the chat gpt window and then ask your question about the code.Featuresdump entire code of github repository into a single fileeasy to split if you want to embed single filesrespect .gitignore and .gptignoreshow progress baruse in CLI and scriptsUsageCLIpipinstallrepo-loaderrepo-loader# now output.txt should appear in the current directoryScriptfromrepo_loaderimportrepo_loaderrepo_loader.load("example_repo")OptionsArgumentTypeDefaultDescriptionrepo_pathstrCurrent directoryThe path to the git repository to be processed.out_pathstr'output.txt'The path to the output file.preamble_filestrNoneThe path to a preamble file. Contents are written to output first.preamblestrhereText that will be written to the output file before the repo contents.clipboardboolFalseIf True, output is copied to the clipboard instead of a file.quietboolFalseIf True, the script will not print to stdout or auto-open the file.progressboolFalseIf True, the script will display a progress bar during processing.open_file_after_processingboolFalseIf True, the output file will be automatically opened after processing.Descriptionrepo-loaderis a command-line and script tool that converts the contents of a Git repository into a text format, preserving the structure of the files and file contents. The generated output can be interpreted by AI language models, allowing them to process the repository's contents for various tasks, such as code review or documentation generation.ContributingSome context around building this islocated here. Appreciate any issues and pull requests in the spirit of having mostly GPT build out this tool. UsingChatGPT Plusis recommended for quick access to GPT-4.Running TestsTo run the tests forrepo-loader, follow these steps:Ensure you have Python 3 installed on your system.Navigate to the repository's root directory in your terminal.Run the tests with the following command:toxNow, the test harness is added to therepo-loaderproject. You can run the tests by executing the commandtoxin your terminal.LicenseThis project is licensed under the MIT License - see the LICENSE file for details.
Package: repology-client
repology-clientAsynchronous wrapper forRepology API.Note that API stability is currently not guaranteed - it may change at any
moment.InstallingGentooeselectrepositoryenableguru
emaintsync-rguru
emergedev-python/repology-clientOther systemspip install repology-client --userPackagingYou can track new releases using anatom feedprovided by GitHub.ContributingPatches and pull requests are welcome. Please use eithergit-send-email(1)orgit-request-pull(1), addressed tocyber@sysrq.in.If you prefer GitHub-style workflow, use themirror repoto send pull
requests.Your commit message should conform to the following standard:file/changed: Concice and complete statement of the purpose

This is the body of the commit message.  The line above is the
summary.  The summary should be no more than 72 chars long.  The
body can be more freely formatted, but make it look nice.  Make
sure to reference any bug reports and other contributors.  Make
sure the correct authorship appears.IRCYou can join the#repology-clientchannel either onOFTCorvia Matrix.LicenseEuropean Union Public License 1.2
Package: repols
repols is a CLI application that lists GitHub repositories and
optionally repository metadata.InstallationCreate a GitHub personal access token. The application reads the value
of your token from standard input each time you run it.The application is available at PyPI. Install it from there using the
following command:pip install repolsYou can also install directly from the source code by issuing the
following command in the project root:pip install .UsageBy default, the application simply outputs a list of repository names.
The following command will pipe the list to a file:repols ORGANISATION TEAM > CSV_FILEIf the include option is used, the application outputs the fields
indicated by the user instead. The following example, for instance, will
display a list containing the repository names and information on
whether the repositories have been archived.repols  --include name --include archived ORGANISATION TEAM > CSV_FILEAny of the following fields can be included: "archived", "created_at",
"description", "name".The application reads the personal access token from standard input. In
the following example the password is piped from a password manager:pass git-pat | repols ...Type the following command for more documentation:repols --help
Package: repoman
LICENSE======This program is free software; you can redistribute it and/or modifyit under the terms of either:a) the GNU General Public License as published by the FreeSoftware Foundation; either version 3, or (at your option) anylater version, orb) the Apache v2 License.This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See eitherthe GNU General Public License or the Apache v2 License for more details.You should have received a copy of the Apache v2 License with thissoftware, in the file named "LICENSE".You should also have received a copy of the GNU General Public Licensealong with this program in the file named "COPYING". If not, write to theFree Software Foundation, Inc., 51 Franklin Street, Fifth Floor,Boston, MA 02110-1301, USA or visit their web page on the internet athttp://www.gnu.org/copyleft/gpl.html.This file is for you to describe the repoman application. Typicallyyou would include information such as the information below:Installation and Setup======================Install ``repoman`` using easy_install::easy_install repomanMake a config file as follows::paster make-config repoman config.iniTweak the config file as appropriate and then setup the application::paster setup-app config.iniThen you are ready to go.
Package: repo_manager
Author:Pierre-Yves Chibon <pingou@pingoured.fr>repo_manager is a small application to manage RPMs repositories.Get this project:Source:https://github.com/pypingou/repo_managerActions:Adda package to an existing repository.Removea package from an existing repository.Cleana repository.
This means remove duplicates while eventually keeping a number of the
most recent ones for future downgrade.Upgradea package from a repository into another (for example moving
from a testing repository into a production one).Replacea package from a repository into another (ie: replacing a
package in a repository with one having the samenevr).Get someinfoabout the repository (number of RPMs, duplicates,
applications)License:This project is licensed GPLv3+.
Package: repoman-client
#Repoman-ClientA client to connect to the Repoman VM repository.##Install Process1.  Install prerequisitesyum install python-setuptoolseasy_install pip2.  Install repoman-clientpip install repoman-client3.    Run repoman-client with the command `repoman`.Repoman uses grid certificates to authenticate users with the server.Ensure that you have a valid, RFC-compliant grid proxy certificate before running repoman.(e.g. `$ grid-proxy-init -rfc`)For more information about repoman, please consult the repoman manpages via the `man repoman` command.
Package: repoman-scm
Repoman is a python library designed to automate repository operations
in release processes.It provides a unified API to work with different SCMs, and the
mechanisms to quickly have ready and clean working copies. It currently
supports git and mercurial.There are some basic concepts that are needed to start working with
Repoman:ARepositoryis an instance with the usual operations of a SCM.ADepotcontains a repository, and the operations to interact
with Repoman managers.ADepotManagerprovidesDepotswith an specific code, eachDepotManageris intended to manageDepotsof the same
project.EachDepotis locked to the task that requests it to the manager
and belongs to this task till it’s freed.But the best way to see how it works is with an example:fromrepomanimportdepot_managerrepo_kind='git'repo_url='https://github.com/tuenti/python-repoman.git'manager=depot_manager.DepotManager(repo_kind=repo_kind)depot=manager.give_me_depot('task_id','Owner task name')try:depot.request_refresh({repo_url:['master']})# Do work...depot.repository.tag('example')# ...# If you were going to continue the task in other process,# it needs to receive the path of the depot to request itdepot=manager.give_me_depot_from_path(depot.path)assert'example'indepot.repository.tags()finally:# And when the repository is not needed anymore, free its depotmanager.free_depot(depot,'task_id')You can know more by looking to the examples in thedoc/examplesdirectory, and to the fullAPI reference.InstallationRepoman is intended to be used as part of a more complex release
automation infrastructure, it requires a quite specific set of
dependencies, seeRequirementssection to know more about this.To install it in your development environment, you can use pip:pip install -e git+https://github.com/tuenti/python-repoman.git@v0.6#egg=repomanTo install it in your production environment, it’s recommended to
generate your own packages, usual tools can be used for that, e.g:python setup.py bdist_eggRequirementsRepoman should play well with any Linux distribution with Python > 2.6,
it’s daily used in Debian, and has been also tested in Ubuntu and
Fedora.As a general rule,pip install-rrequirements.txtis able to
install everything, but some things need to be taken into account.pygit2needs to be compiled, for that you need agcctoolchain
and the development files oflibgit2(seepygit2 installation notes).
You have to use the same version ofpygit2andlibgit2. Currently
repoman only works with 0.20 series. It’s recommended to prepare your own
set of pre-built packages for your production enviroment.mercurial> 2.1 is also required, as well aspython-hglib, the
version specified in therequirements.txtfile should be fine.Some Dockerfiles are provided in thedockerdirectory that can serve
as examples about how to prepare an environment to work with repoman in
different distributions.Credits & ContactRepoman was created byTuenti Technologies S.L.. You can follow
Tuenti engineering team on Twitter@tuentieng.LicenseRepoman is available under the Apache License, Version 2.0. See LICENSE
file for more info.
Package: repomd
repomdThis library provides an object-oriented interface to get information out of dnf/yum repositories.Usage>>>importrepomd>>>repo=repomd.load('https://mirror.rackspace.com/centos/7/updates/x86_64/')>>>repo<Repo:"https://mirror.rackspace.com/centos/7/updates/x86_64/">The length of theRepoobject indicates the number of packages in the repository.>>>len(repo)1602Find a package by name.>>>repo.find('systemd')<Package:"systemd-219-57.el7_5.3.x86_64">Find all packages of a given name.>>>repo.findall('systemd')[<Package:"systemd-219-57.el7_5.1.x86_64">,<Package:"systemd-219-57.el7_5.3.x86_64">]APackageinstance has many useful properties.>>>package=repo.find('systemd')>>>package.name'systemd'>>>package.version'219'>>>package.build_timedatetime.datetime(2018,9,26,14,11,37)>>>package.nevr'systemd-219-57.el7_5.3'Iterate through packages in the repository.>>>forpackageinrepo:...print(package.nvr)389-ds-base-1.3.7.5-19.el7_5389-ds-base-1.3.7.5-21.el7_5389-ds-base-1.3.7.5-24.el7_5(andsoon)
Package: repomirror
This project will let you mirror a Linux distribution's repository/repositories (or BSD, etc.).Features:* Logging* RSync or FTP supported (RSync mirrors require rsync to be installed and in the $PATH environment variable) (HTTP/HTTPS cannot and will not be supported as there's no real way to do it reliably and efficiently.)* Locking - prevent a specific distribution from syncing if it is currently being synced but allow other distributions to sync* Customizable rsync arguments* Changing of directory/file ownership per-distribution* Mount-checking per-distribution - a distribution will be skipped if its designated mountpoint is not mounted* Synchronization checks - timestamp files can be read and written and are used to determine if a sync should take place or not** TODO: customizable "staleness" of repos (e.g. sync if timestamp X is older than timestamp Y on server)Configuration/Deployment:See example.config.xml for details on a configuration file, as it's extensively commented and won't be covered in this README.You can also run reposync -h (or reposync --help) to see all supported options.You may take special interest in repomirror/utils/find_fastest_upstream/ scripts as they're pre-written to find the fastest (in theory) upstream you can use. Currently only Arch Linux and CentOS have scripts written, but I'll gladly try to add other distros if you open a feature request (see below). You can run -h/--help to see the supported options (there aren't many).Bugs/Feature Requests:Please use my tracker at https://bugs.square-r00t.net/index.php?project=14 or, if you prefer to not create an account, simply email me at bts(at)square-r00t[dot]net.Sources:This project can be found at/cloned from:* https://git.square-r00t.net/RepoMirror* git://git.square-r00t.net/repomirror.gitAnd has a mirrored repository on GitHub (Issues/Wiki/etc. disabled) at:* https://github.com/johnnybubonic/repomirrorIt can also be found on PyPi at:* https://pypi.org/project/repomirror/