Saravanan666/pypi-org huggingface dataset:
Package: rpmfile
rpmfileTools for inspecting RPM files in python. This module is modeled after thetarfilemodule.Install$python-mpipinstall-UrpmfileIf you want to userpmfilewithzstdcompressed rpms, you'll need to install
thezstandardmodule.zstdalso requires that you are using Python >= 3.5$python-mpipinstall-UzstandardExampleSee thetestsfor more examples.importrpmfilewithrpmfile.open('file.rpm')asrpm:# Inspect the RPM headersprint(rpm.headers.keys())print(rpm.headers.get('arch','noarch'))# Extract a fileobject from the archivefd=rpm.extractfile('./usr/bin/script')print(fd.read())formemberinrpm.getmembers():print(member)Command line usageYou can userpmfilevia it's module invocation or viarpmfilecommand if
yourPATHenvironment variable is configured correctly. Pass--helpfor all
options.List RPM contentscurl -sfL 'https://example.com/some.rpm.gz' | gzip -d - | python -m rpmfile -l -
./path/to/fileExtract filescurl -sfL 'https://example.com/some.rpm.gz' | gzip -d - | rpmfile -xv -
./path/to/fileExtract files to directorycurl -sfL 'https://example.com/some.rpm.gz' | gzip -d - | rpmfile -xvC /tmp -
/tmp/path/to/fileDisplay RPM information (similar to commandrpm -qipin Linux)curl -sfL 'https://example.com/some.rpm.gz' |gzip -d - | rpmfile -i -
Name        : something
Version     : 1.02
Release     : 1
Architecture: noarch
Group       : default
Size        : 1234
License     : BSD
Signature   : None
Source RPM  : some.src.rpm
Build Date  : Tue Apr  9 08:55:16 2019
Build Host  : demo
URL         : http://example.com/some
Summary     : Example of something
Description : 
The description of something.
It can display more than one line.Classesrpmfile.RPMFile: The RPMFile object provides an interface to a RPM archiverpmfile.RPMInfo: An RPMInfo object represents one member in a RPMFile.ContributingTheblackformater should be used on all files
before submitting a contribution. Version 19.10b0.$pipinstallblack==19.10b0$black.Code in this module was borrowed from:https://bitbucket.org/krp/cpiofilehttps://github.com/mjvm/pyrpm
Package: rpmlb
RPM List Builder (rpmlb) helps you to build a list of defined RPM
packages including Red Hat Software Collection (SCL) continually froma recipe file.FeaturesRPM List Builder …Supports building a list of RPMs and SCL that is a extension of the
RPM packages.Supports several build typesMock (mock)Copr (copr-cli)Custom build by config file. You can customize the build withfedpkg,rhpkg,koji,brewand etc.Supports several types to get packages by recipe file.Copy from local directoryDownload byfedpkg cloneandrhpkg clone.Custom download. You can customize the way withfedpkg,rhpkg,
and etc.Supports retry feature.Supports build by resume from any positon of the recipe file.Supported platformsPython 3.6 (Recommended), 3.5, 3.4Install$ pip3 install rpmlbor$ git clone REPO_URL
$ cd rpm-list-builder
$ pip3 install .UsageTo show help.$ rpmlb -hBasic usage.$ rpmlb \
  --download DOWNLOAD_TYPE \
  --build BUILD_TYPE \
  RECIPE_FILE \
  COLLECTION_IDSeeUsers Guidefor detail.ContributingRunning test$ pip3 install tox
$ toxLicenseGPL-2.0
Package: rpmol
rpmolPython package for the conversion and manipulation of chemical data.InstallationYou can install the package using pip:pipinstallrpmol### Usage```bash

rpmolfile.xlsx->transformsanExcelfile-containingmoleculeidentifiers(code,name)inthefirstcolumnandSMILEScodesinthesecondcolumn-intoansdffile.

rpmolfile.sdf->transformsansdffile-containingmoleculeidentifiers(code,name)andSMILEScodes-intoanxlsxfile.
Package: rpmqc
rpmqcThe RPM packages quality control tool.Ideologically, rpmqc is similar torpmlint,
but they solve slightly different tasks: rpmlint is an awesome tool for checking
an RPM package for common errors (a packager's tool), while rpmqc is designed
to quickly check an entire repository/compose for typical release manager's
errors like missing signatures or wrong branding.InstallAll requirements are available from Fedora or EL 8/9 + EPEL repositories:# EL 9 derivatives
$ sudo dnf install -y --enablerepo=epel python3-createrepo_c \
      python3-cryptography python3-rpm python3-schema python3-pyyaml \
      python3-virtualenvCurrently, there is no RPM package available, so the recommended way is to
install rpmqc from PyPI using a virtual environment:$mkdirrpmqc
$cdrpmqc
$virtualenv--system-site-packages.venv
$..venv/bin/activate
$pipinstallrpmqc

$rpmqc--version
rpmqc0.0.4optionally, you can create anrpmqcalias in your~/.bashrc:# don't forget to adjust the path accordingly to your configurationaliasrpmqc="rpmqc/.venv/bin/rpmqc"ConfigurationThe program expects a configuration file in YAML format:---package:signatures:# expected RPM package signature PGP key idpgp_key_id:8BDA73A4# IMA signature public certificate pathima_cert_path:~/.vault/ima-sign.x509tags:# expected RPM tag values, regular expressions are also supportedbuildhost:!regex^builder-(x86|arm64)-\d+\.msvsphere-os\.ru$packager:MSVSpherevendor:MSVSphere...all inspections are optional and will be performed if a corresponding
configuration file option is set.UsageCurrently, rpmqc supports only two modes: single (or multiple) RPM packages
checking (inspect-rpm) and an entire repository checking (inspect-repo).
For usage instructions seerpmqc inspect-rpm --helpandrpmqc inspect-repo --help, respectively.Licenserpmqc is available under the terms of theGNU General Public License v2.0, or (at your option) any later
version of the license.ReferencesThe Test Anything Protocol v14 specificationThe RPM Package ManagerIMA Wikirpmlint-
a tool for checking common errors in RPM packages.rpminspect-
an RPM build deviation analysis tool.
Package: rpmrepo-metadata
rpmrepo_metadatarpmrepo_metadata is a library for manipulating, reading and writing RPM repositories.Installationpip install rpmrepo_metadataNote: requires Python >= 3.7.ExampleIn [1]: from rpmrepo_metadata import RepositoryReader

In [2]: reader = RepositoryReader("tests/assets/external_repos/centos7/")

In [3]: packages = reader.iter_packages()

In [4]: packages.total_packages
Out[4]: 10072

In [5]: next(packages)
Out[5]: <Package at 0x5613b8983cb0>

In [6]: packages.remaining_packages
Out[6]: 10071

In [7]: for pkg in packages:
   ...:     print(pkg.nevra())
389-ds-base-0:1.3.10.2-6.el7.x86_64
389-ds-base-devel-0:1.3.10.2-6.el7.x86_64
389-ds-base-libs-0:1.3.10.2-6.el7.x86_64
389-ds-base-snmp-0:1.3.10.2-6.el7.x86_64
Cython-0:0.19-5.el7.x86_64
ElectricFence-0:2.2.2-39.el7.i686
ElectricFence-0:2.2.2-39.el7.x86_64
...
...DevelopmentSetupInstall Rust / CargoCreate and activate a Python virtual environmentmaturin developTestingTo run the native Rust tests,cargo testTo run the validation tests againstcreaterepo_c, first installcreaterepo_candpytestin your virtual environmentpytest -vv tests/validate_against_createrepo_c.pyTo test a specific repopytest -vv tests/validate_against_createrepo_c.py::validate_ecosystem_repo\[centos7\]Building an RPMinstall and set up mockhttps://rpm-software-management.github.io/mock/#setupspectool -g *.spec && fedpkg --release f35 srpm
Package: rpmrh
The RPM Rebuild Helper (orrpmrhfor short)
is an automation tool for rebuilding sets of (S)RPM files.
Its main focus areSoftware Collections.The tool allows the user to compare two sets of RPMs,
download and modify the respective SRPMs locally
and automatically rebuild them in a build service,
among other things.Usage exampleCompare packages between two tags, to find out which packages inrh-python36collection needs to be tested in CentoOS 7:rpmrh \
     --from sclo-candidate --to sclo-testing \
     --collection rh-python36 --el 7 \
     diffCheck which packages needs to be tested in all currently supported
(released and not End-Of-Life) collections for both CentOS 6 and 7:rpmrh --from sclo-candidate --to sclo-testing \
    --all-collections --el 6 --el 7 \
    diff
Package: rpm-spec-dependency-analyzer
# rpm-spec-dependency-analyzerThis is a simple Python3 script that parses a list of SPEC files and
generates a nice graph of the dependencies among them using DOT.## How to install` git clonehttps://github.com/f18m/rpm-spec-dependency-analyzer.gitsudo ln$(pwd)/rpm-spec-dependency-analyzer/specfiles_dependency_graph.py/usr/local/bin/specfiles_dependency_graph sudo ln$(pwd)/rpm-spec-dependency-analyzer/pyrpm_spec.py/usr/local/bin `## How to use` specfiles_dependency_graph--outputreqgraph.dot/my/spec/folder/*.specdot-Tpngreqgraph.dot-oreqgraph.png `## Example outputThis is the example of the graph generated by [pkgA.spec](examples/pkgA.spec) and by [pkgB.spec](examples/pkgB.spec):![Example graph](examples/example-graph.png “Example DOT output”)Original .dot source is available [here](examples/example-graph.dot)
Package: rpm-spec-language-server
RPM Spec File Language ServerThis is a proof of concept implementation of a server implementing theLanguage
Server Protocolfor
RPM Spec files.Please share your feature requests with us by opening anissue,
creating adiscussionor chat with us on matrix in#rpm-spec-language-server:matrix.org.Supported LSP endpointsautocompletion of macro names, spec sections and preamble keywordsjump to macro definitionexpand macros on hoverbreadcrumbs/document sectionsRequirementsPython >= 3.11poetryRunning the serverInstall the dependencies viapoetry installLaunch the server in tcp mode (binds to`127.0.0.1:2087by default) viapoetry run rpm_lsp_serverAlternatively, you can build the python package, install the wheel and run the
module directly:poetry build
pip install --user dist/rpm_spec_language_server-*.whl
python -m rpm_spec_language_serverThe server requires thespec.mdfile. It can either use the locally installed copy from therpmpackage or
(if the documentation has not been installed) from a locally cached version in~/.cache/rpm/spec.md.ClientsVSCodeA very simple VSCode client is available inclients/vscode/. Building
requires nodejs and thenpmpackage manager:$npminstall$npmrunpackageInstall the createdrpm-spec-language-server-$VERSION.vsixand launch
the language server in tcp mode.vis withvis-lspciAdd to your~/.config/vis/visrc.luathis code:lsp=require('plugins/vis-lspc')lsp.ls_map['rpmspec']={name='RPMSpec',cmd='python3 -mrpm_spec_language_server --stdio'}Neovim with built-in LSP clientlocallspconfig=require("lspconfig")localutil=require("lspconfig.util")localconfigs=require("lspconfig.configs")configs.rpmspec={default_config={cmd={'python3','-mrpm_spec_language_server','--stdio'},filetypes={'spec'},single_file_support=true,root_dir=util.find_git_ancestor,settings={},},docs={description=[[
  https://github.com/dcermak/rpm-spec-language-server

  Language server protocol (LSP) support for RPM Spec files.
  ]],},}lspconfig["rpmspec"].setup({})Neovim withcoc.nvimpluginWarningcoc.nvimis licensed under the non-free “activist”Anti 996 LicenseOpen nvim, run:CocConfig, and merge the following JSON into your
configuration{"languageserver":{"spec":{"command":"rpm_lsp_server","args":["--stdio"],"filetypes":["spec"]}}}
Package: rpm-uploader
rpm-uploader============rpm-uploader is a minimaliste webserver that handles rpm upload to a directory and running createrepo on it.Usage-----### Start serverrpm-uploader --output-dir /var/www/rpms [ --port 1234 ] [ --createrepo /usr/bin/createrepo ]### Send to servercurl -i -F data=@test_post.sh "http://${HOSTNAME}:1234/upload?dir=care-reflex/release/1.2.3"Source-----https://github.com/Guavus/rpm-uploaderPyPI------https://pypi.python.org/pypi/rpm-uploader
Package: rpm-vercmp
Pure Python implementation of rpmvercmp.The RPM Package Manager (http://rpm.org) has a version comparision algorithm,
implemented in its C library, which performs the comparison in a certain way.In certain circumstances, where the C library is not installable (for example,
on non-rpm based systems), or does not support the desired version of the
python interpreter, the pure-python implementation may be useful.Source Codehttps://github.com/sassoftware/python-rpm-vercmpInstallation$ pip install rpm_vercmpUsageimport rpm_vercmp
assert rpm_vercmp.vercmp(“1.0”, “1.0”) == 0
assert rpm_vercmp.vercmp(“1.0”, “1.1”) == -1TestingThe testsuite uses rpm’s test file in m4 format.
The file cat be fetched from:https://raw.githubusercontent.com/rpm-software-management/rpm/master/tests/rpmvercmp.at
Package: rpm-versiontracker
Aboutrpm-versiontrackeris a small, generic,Flaskweb application that
leverages theDNF APIto display the list of packages available from
different repositories and compare them.It provides a REST API to query it’s settings and return package lists so you
can build and integrate around it.DNFis short forDandified Yum, the next generation of package
management for Red Hat based distributions.Use caseThe typical use case for this application is to monitor which version is in
which repository.If you happen to have multiple mirrors for your packages (i.e: trunk, staging,
production), this tool could be useful.We have created this application to be able to easily distinguish versions of
the same packages across different repositories.What it looks likeThis application is currently used for following package versions across
different Openstack repositorieshere.DocumentationDocumentation on the REST API, how to install, configure and runrpm-versiontrackeris available onReadTheDocs.orgAuthorDavid Moreau SimardCopyrightCopyright 2015 Red Hat, Inc.Licensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: rpn
RPN===Reverse Polish Notation calculator for Python.Binary Operators----------------* ``+``: addition* ``-``: subtraction* ``*``: multiplication* ``/``: true division* ``%``: modulo* ``//``: floor division* ``**``: exponentationUnary Operators---------------* ``abs``: absolute value* ``sqrt``: square root* ``ceil``: rounding up* ``floor``: rounding downExamples--------::import decimalimport rpnresult = rpn.solve_rpn('3.4 -3 abs + 100 sqrt -')print(result) # 3.6try:rpn.solve_rpn('3 3 3 +')rpn.solve_rpn('3 +')rpn.solve_rpn('abs')rpn.solve_rpn('3 a +')except RPNError:...try:rpn.solve_rpn('0 5 /')except decimal.DivisionByZero:...try:rpn.solve_rpn('-5 sqrt')except decimal.InvalidOperation:...try:rpn.solve_rpn('9999999999999 9999999999999 **')except decimal.Overflow:...CLI Usage---------::$ rpn "1 2 + 8 -"$ 5
Package: rpn_calculator
RPN Calculator for CLIEnvironmentPython 2.7Python 3.2 or laterSupported operationsOperationDistraction+Addition-Subtraction*Multiplication/Division%Residue^PowerExampleCase:10 * 5 + 2Pattern 1$ rpn
> 10
10
> 5*
50
> 2+
52
>Pattern 2$ rpn
> 10 5 * 2 +
52
>Pattern 3$ rpn -e "10 5 * 2 +"
52
Package: rpnChilada
rpnChilada is a command-line Reverse-Polish Notation calculator that was
first written in C in 1988 as a four-function calculator.It was rewritten in Python 3 in 2012 and now uses the mpmath library.  It
was a Python learning exercise for me, and a fun little toy, but when I
found mpmath, it became really cool and powerful, so props to Fredrik
Johansson, who did most of the heavy lifting (http://mpmath.org).rpnChilada gives you the whole enchilada when it comes to playing with
numbers.  You get math functions, algebra functions, combinatoric functions,
number theory functions, astronomy functions, physics functions, unit
conversions (comparable to GNU Units) and much, much more.   There are over
1000 unique operators.  rpnChilada supports lists, but not matrices.rpnChilada comes with integrated help, which isn’t complete, but has at
least a basic description of every operator, and over 2400 built-in
examples.  Help now includes descriptions for constants and units as well,
although a lot of these still need to be filled in.rpnChilada also comes with an extensive test suite, which is being constantly
improved.  Many of the functions are validated against the OEIS.Version 8 represents a major overhaul of the unit conversion code.  Unit
conversion is now significantly smarter than it used to be, and intermediate
conversions are no longer necessary.There are still bugs, and since it’s a one-person side project, progress
is slow, but bug reports and feature requests are welcome atrickg@his.com.Note, Windows users will want the Windows-specific wheels for pyephem and
gmpy2:https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyephemhttps://www.lfd.uci.edu/~gohlke/pythonlibs/#gmpyLinux users will need the development versions of the GMP, MPC and MFPR
libraries.rpnChilada can be launched with ‘rpnChilada’ or ‘rpn’ in the Python Scripts/
directory.For a quick primer on rpnChilada’s use, try “rpn help examples”.  Please note
that the OEIS integration and geographic location functions require Internet
access.
Package: rpnparse
simple reverse polish notation parser to learn how to write parsers.DescriptionThis reverse polish notation (RPN) parser parses RPN strings in Python and returns the calculated value.
It also provides a basic shell and command line interface.
Though it is basically a project for me to play a little bit around you might find it usefull or also want to hack around.NoteIt has been highly inspired by the great example of (Learn you some Erlang)[http://learnyousomeerlang.com/functionally-solving-problems#rpn-calculator] and secondly by (pyrpn)[https://github.com/archman/pyrpn].This project has been set up using PyScaffold 2.5.7. For details and usage
information on PyScaffold seehttp://pyscaffold.readthedocs.org/.
Package: rpp
RPP is a format used to describeREAPERprojects. This package is designed to be an RPP
parser/emitter and usesPLYas a parser framework.ExamplesImport the package:>>>importrppDecode RPP:>>>r=rpp.loads("""\<REAPER_PROJECT 0.1 "4.32" 1372525904
  RIPPLE 0
  GROUPOVERRIDE 0 0 0
  AUTOXFADE 1
>
""")>>>rElement(tag='REAPER_PROJECT',attrib=['0.1','4.32','1372525904'],children=[['RIPPLE','0'],['GROUPOVERRIDE','0','0','0'],['AUTOXFADE','1'],])Transform elements into RPP:>>>fromrppimportElement>>>rpp.dumps(...Element(tag='REAPER_PROJECT',attrib=['0.1','4.32','1372525904'],children=[...['RIPPLE','0'],...['GROUPOVERRIDE','0','0','0'],...['AUTOXFADE','1'],...]))'<REAPER_PROJECT 0.1 4.32 1372525904\nRIPPLE 0\nGROUPOVERRIDE 0 0 0\nAUTOXFADE 1\n>\n'Elementmimics the interface ofxml.etree.ElementTree.Element. You can perform querying operations withfindall,find,iterfind. Note that attribute and text predicates are not supported.>>>groupoverride=r.find('.//GROUPOVERRIDE')>>>groupoverride['GROUPOVERRIDE','0','0','0']>>>groupoverride[1:]=['9','9','9']>>>rElement(tag='REAPER_PROJECT',attrib=['0.1','4.32','1372525904'],children=[['RIPPLE','0'],['GROUPOVERRIDE','9','9','9'],['AUTOXFADE','1'],])Dependenciesattrsply
Package: rppc
rppcReproducible Python Package Creatorrppcprovides a command line interface for creating a skeleton for a reproducible python package. The package structure here follow the standards and conventions of much of the scientific Python eco-system. With these standards and recommendations, others will be able to use your code, port your code into other projects, and collaborate with other users.The package created tries to follow University of Washington eScience InstituteGuidelines for Reproducible and Open Science.NOTE: This package only works for Python 3.5 and above2 Factor AuthenticationNote thatgitCLI commands only accept basic authentication procedures. If you have 2FA set up on your account, you have to generate aPersonal Access Token. In this case, when you are asked to enter a password in a manner such as:Enter the GitHub password for <user_name>:You have to enter your access token instead of your own password.How to use this packageInstall the package from pypipipinstallrppcCreate a yaml file with you favorite editor calledpackage.ymlname:mypythonpackagedescription:This is the description for the packageauthor:name:First Lastemail:myemail@example.comdependencies:-pandas-numpygithub-id:github_usernameRunrppc init. Note that this will ask for a license to choose. If you are unsure of which is the most appropriate license for your package, please refer tochoosealicense.com# The optional --github argument will allow to push the newly created repository to your githubrppcinit--filepackage.yml--githubContact the developerThe best way to contact the developer about this package is through issues. Please create an issue if you have found any bugs, or have request for an enhacement. Any other questions can also go there. Thank you!
Package: rppt
rpp-trpp-t is RandomPlusPLus Tools. So to speak, an extension for the random modulePackage functions:the first functionthe first thing I started with wasRlistit makes it easier to write code to randomize the list by 9.5 times.import rppt

rppt.Rlist([1,2,3,4,5,6,7,8,9], [1,2,3])# <---------+ 
# here for randomization ^                          | 
# and here that these symbols would be an exception +
# you can also choose not to enter a list of exceptions.Rlisthas a total of 8 functions. let's go through them too!myRandomList = rppt.Rlist([1,2,3,4,5])- since 'Rlist` is a class, it can be assigned
to a variablemyRandomList.Rlist()- changes valuesmyRandomList.AppendMainList([6,7,8])- adds numbers from the argument to the listmyRandomList.AppendBlackList([1,3,5])- adds a blacklistmyRandomList.SetSeed('seed')- changes the seed of generationmyRandomList.SetOutput('4')- changes the outputmyRandomList.GetMainList('list/str')- displays the main list you can set the type:list or str, or you can not setmyRandomList.GetBlackList('list/str')- displays the blacklist you can set the type:list or str, or you can not setmyRandomList.GetList('list/str')- displays a list without items that are in the blacklistyou can set the type: list or str, or you can not setat the moment, the functions of the libraryrpptare completed.but it is updated every day. don't miss it and keep an eye on this page!
Package: rp_pypi_tut_flit
gonna learnz how to uploadz dem packageznote how package name on PYPI doesn't have to be the same as X in IMPORT Xpypi packge name is just what you choose and will impact pip install that_nameIMPORT X depends on the name of the folder you have in the packageSteps:Create package folder (typically same name as host folder)Create emptyinit.py insideCreate README.me - for longer docs you should usehttps://readthedocs.org/Create setup.py - fill out as in hereCreate MANIFEST.in - which describes not source code files to include / excludeTo install packages you will need to run:
pip install twinePackages in pypi are not distributed as raw source code. Instead they are wrapped into a format called "wheel". It's like a zip archive. To create a "wheel" for your packeg run:
python setup.py sdist bdist_wheelList the contents of your pakage to make sure they're correct
tar tzf dist/realpython_pypi_tut_AS_APPEAR_ON_PYPI-1.0.0.tar.gzCheck that your package description will render properly on pypi
twine check dist/*Upload your package!
twine upload --repository-urlhttps://test.pypi.org/legacy/dist/*Remember to remove dist files between uploading new versions!