Saravanan666/pypi-org huggingface dataset:
Package: region-selection-apr
region-selectionMethods for filtering for high-scoring genomic intervalsUsageImporting the module and creating a Selection instance>>> from region_selection import Selection
>>> s = Selection()Specify properties>>> s.method = "pq"
>>> s.input_fn = "/Users/areynolds/Developer/Github/region_selection/tests/windows.fixed.25k.bed"
>>> s.bin_size = 200
>>> s.exclusion_span = 24800Themethodcan be one ofpq,wis, ormaxmean, for selecting from one of priority-queue, weighted interval scheduling, or max-mean window sweep methods, respectively.Theinput_fnproperty points to a file on the file system. This is optional, unless using theread()method.Thebin_sizeandexclusion_spanproperties are integers. These represent the size of elements, and the distance required between them (exclusing the bin, itself).The default values are 200 and 24800, respectively. This means bins are 200 nt wide, and we require at least 25000 nt of distance between any filtered bins.Input dataYou can read in data from a four-column, tab-delimited text file:>>> in_df = s.read(s, s.method, s.input_fn)
[region_selection] Reading input file into dataframe...
[region_selection] Read dataframeOtherwise, you must provide a Pandas dataframe containing four columns, each labeled:Chromosome,Start,End, andScore, respecively.In the above snippet, the input dataframe is calledin_df.Running the selection methodUserun()to run the specified method on the input dataframein_df(or whatever its name is):>>> out_df = s.run(s, s.method, in_df)
[region_selection] Bin size (nt): 200
[region_selection] Exclusion span (nt): 24800
[region_selection] Exclusion bins: 124
[region_selection] Method: Priority-Queue (PQ)
[region_selection] Constructing heap
[region_selection] Constructing qualifying bin list from heap
[region_selection] Returning sorted bin list
[region_selection] Method (runtime in sec): 140.50703937999998The result is stored as a Pandas dataframe. Here it is calledout_dfand you can call all the usual Pandas properties on this:>>> print(out_df.head())
    Chromosome   Start     End  Score
47        chr1    9400   34400   0.41
172       chr1   34400   59400   0.41
304       chr1   60800   85800   0.41
429       chr1   85800  110800   0.41
554       chr1  110800  135800   0.41Or use thewrite()to write to standard output:>>> s.write(out_df)
...Or write withto_csv()etc.
Package: regipy
regipyRegipy is a python library for parsing offline registry hives!Features:Use as a libraryRecurse over the registry hive, from root or a given path and get all subkeys and valuesRead specific subkeys and valuesApply transaction logs on a registry hiveCommand Line Tools:Dump an entire registry hive to jsonApply transaction logs on a registry hiveCompare registry hivesExecute plugins from a robust plugin system (i.e: amcache, shimcache, extract computer name…)Project page:https://github.com/mkorman90/regipyUsing as a library:fromregipy.registryimportRegistryHivereg=RegistryHive('/Users/martinkorman/Documents/TestEvidence/Registry/Vibranium-NTUSER.DAT')# Iterate over a registry hive recursively:forentryinreg.recurse_subkeys(as_json=True):print(entry)# Iterate over a key and get all subkeys and their modification time:forskinreg.get_key('Software').get_subkeys():print(sk.name,convert_wintime(sk.header.last_modified).isoformat())# Get values from a specific registry key:reg.get_key('Software\Microsoft\Internet Explorer\BrowserEmulation').get_values(as_json=True)# Use plugins:fromregipy.plugins.ntuser.ntuser_persistenceimportNTUserPersistencePluginNTUserPersistencePlugin(reg,as_json=True).run()# Run all supported plugins on a registry hive:run_relevant_plugins(reg,as_json=True)InstallInstall regipy and the command line tools dependencies:pip install regipy[cli]NOTE: using pip withregipy[cli]instead of the plainregipyis a
significant change from version 1.9.xFor using regipy as a library, install onlyregipywhich comes with fewer
dependencies:pip install regipy
Package: regipy2
regipyRegipy is a python library for parsing offline registry hives!Features:Use as a libraryRecurse over the registry hive, from root or a given path and get all subkeys and valuesRead specific subkeys and valuesApply transaction logs on a registry hiveCommand Line Tools:Dump an entire registry hive to jsonApply transaction logs on a registry hiveCompare registry hivesExecute plugins from a robust plugin system (i.e: amcache, shimcache, extract computer name…)Project page:https://github.com/mkorman90/regipyUsing as a library:fromregipy.registryimportRegistryHivereg=RegistryHive('/Users/martinkorman/Documents/TestEvidence/Registry/Vibranium-NTUSER.DAT')# Iterate over a registry hive recursively:forentryinreg.rec_subkeys(as_json=True):print(entry)# Iterate over a key and get all subkeys and their modification time:forskinreg.get_key('Software').get_subkeys():print(sk.name,convert_wintime(sk.header.last_modified).isoformat())# Get values from a specific registry key:reg.get_key('Software\Microsoft\Internet Explorer\BrowserEmulation').get_values(as_json=True)# Use plugins:fromregipy.plugins.ntuser.ntuser_persistenceimportNTUserPersistencePluginNTUserPersistencePlugin(reg,as_json=True).run()# Run all supported plugins on a registry hive:run_relevant_plugins(reg,as_json=True)InstallInstall regipy and the command line tools dependencies:pip install regipy[cli]NOTE: using pip withregipy[cli]instead of the plainregipyis a
significant change from version 1.9.xFor using regipy as a library, install onlyregipywhich comes with fewer
dependencies:pip install regipy
Package: regisoup
RegiSoup: Just Reg(Ex)ular and Beautiful SoupA tool to convert<figure>and<xr>tags from deprecated MediaWiki extension to a new supported format as specified in the extensionFiguresavailable on:https://www.mediawiki.org/wiki/Extension:Figures.It was developed to mass modify pages via modifying the Wiki's.xmldump but it turns out that that is not a viable approach since<text>blocks inside the.xmldump are hashed withsha1and additionally have a size in bytes specified. It was simpler to create a MediaWiki API wrapper forRegiSoupso the original use case
forRegiSouphas translatedStewChefbutRegiSoupremains a standalone package.Usage:Usage ofRegiSoupis simple and easy. If at any point in time, you need a reminder of what anything means do not forget about:regisoup --helpwhere a lot of information about the tool is gathered. Basic usage is as follows:regisoup [input_file] [output_file]RegiSoupshould find and replace all<figure>and<xr>tags inside the input page. All the required information for the replacement MediaWiki parser functions is extracted from the existing tags orRegiSoupat least attempts to do so. One of the issues you may commonly run into is pages not specifying which page they are referencing. This can be quickly fixed by supplying the extra field for page title. For example:regisoup [input_file] [output_file] 'Some Page Title'Note the use of quotation marks!Another issue you can run into is captions being improperly specified. By defaultRegiSoupuses captions to generate the replacement parser functions. You can override this by supplying--no-caption. Some Wiki pages contain unescaped HTML characters,RegiSoupgets around this by doing a bit of encoding "magic". If this produces undesirable results you can try and supply the--no-magicflag and see if that works out better. Additionally for debugging supportRegiSoupcan be forced to not delete it's temporary files with--no-clean-upand be made more verbose with--verbose.
Package: registerer
RegistererImplement maintainable and easy to use registry patterns in your project.TLDRWrite this:importregisterercommand_handler_registry=registerer.Registerer()@command_handler_registry.register()definfo(args):return"how can i help you?"@command_handler_registry.register()defplay(args):return"let me play a song for you"command="info"args={}assertcommand_handler_registry[command](args)=="how can i help you?"Instead of this, which violates the Open-Closed Principle (OCP):definfo(args):return"how can i help you?"defplay(args):return"let me play a song for you"defcommand_handler(command,args):ifcommand=="info":returninfo(args)ifcommand=="play":returnplay(args)command="play"args={}assertcommand_handler(command,args)=="let me play a song for you"LinksFor more informationRead the docs.InstallationYou can install the latest version of registerer from PyPI:pipinstallregistererFeaturesIt's completely type-safe, thus you will get suggestions from your IDE.Writing custom validations for registered items is provided without any inheritance.generate choices for Django from registered items.And so on...
Package: registerit
Register Package Names on PyPIHave an idea for a Python package?Thought of a great name?Register it on PyPI, before someone else does!A tool that creates a minimal Python package with your chosen name and uploads it to PyPI, registering it for you.Install$pipinstallregisteritRunIf you don't care about assigning your name and contact details to the package, then use$registeritMY_COOL_PKG--usernamePYPI_USERNAME--passwordPYPI_PASSWORDIf you do, then$registeritMY_COOL_PKG\--usernamePYPI_USERNAME\--passwordPYPI_PASSWORD\--authorMe\--emailme@me.com\--urlwww.me.com
Package: register-it
RegisterItRegister it: A more flexible register for the DeepLearning project.The registry that provides name -> object mapping, to support classes and functions.Installpipinstallregister_itUsageTo create a registry (e.g. a class registry and a function registry):DATASETS=Registry(name="dataset")EVALUATE=Registry(name="evaluate")To register an object:@DATASETS.register(name='mymodule')classMyModule(*args,**kwargs):...@EVALUATE.register(name='myfunc')defmy_func(*args,**kwargs):...Or:DATASETS.register(name='mymodule',obj=MyModule)EVALUATE.register(name='myfunc',obj=my_func)To construct an object of the class or the function:DATASETS=Registry(name="dataset")# The callers of the DATASETS are from the module data, we need to manually import it.DATASETS.import_module_from_module_names(["data"])EVALUATE=Registry(name="evaluate")# The callers of the EVALUATE are from the module evaluate, we need to manually import it.EVALUATE.import_module_from_module_names(["evaluate"])Thanksfvcore
Package: registerMap
(v0.5.0)A Python 3 framework for creating and maintaining register maps for integrated circuit design and embedded
software development.Contents1Main Features2Installation3Documentation4DOI Archive1Main Featuresdefine a register map by therelationshipsandorderof modules, registers and fieldsgenerate address of registers and modules automatically from relationshipsconstrain registers and modules by size or addressautomatically manage registers that span multiple memory unitsarbitrary number of memory unit bits (but constant across the register map)arbitrary number of address bits (but constant across the register map)automatically avoid allocating register/module addresses to page registers2InstallationThe simplest way to acquireregisterMapis usingpip.pipinstallregisterMap3DocumentationHead over toreadthedocs4DOI Archive0.1.00.2.00.3.00.4.00.5.0
Package: register-printer
RegisterPrinterHow to installpip install register_printerHow to runinstall dependenciespip install -r requirements.txtUsageusage: python -m register_printer [-h] [-v]
                                  [-f CONFIG_FILE_NAME | --input-json INPUT_JSON_FILE]
                                  [-p EXCEL_FILES_PATH] [-o OUTPUT_PATH]
                                  [--print] [--verbose] [-d] [-c] [-u] [-j]
                                  [-r] [-x] [-a]

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         Display version
  -f CONFIG_FILE_NAME, --file CONFIG_FILE_NAME
                        Configuration input filename.
  --input-json INPUT_JSON_FILE
                        Input JSON documents.
  -p EXCEL_FILES_PATH   Directory path of Excel source files.
  -o OUTPUT_PATH, --output-path OUTPUT_PATH
                        Output path of generated files. Default "."
  --print               Print parsed document.
  --verbose             Logging more information.
  -d, --gen-doc         Generate register documents.
  -c, --gen-c-header    Generate register C header files.
  -u, --gen-uvm         Generate register UVM models.
  -j, --gen-json        Generate JSON documents.
  -r, --gen-rtl         Generate register RTL module.
  -x, --gen-excel       Generate excel files.
  -a, --gen-all         Generate all files, same as -d -c -u -rHow to buildpython -m buildHow to upload to pypipython -m twine upload dist/*
Package: registerrecordobject
Register Record ObjectRegister Record Object is a Python package that simplifies the process of registering metrics and testing a service through HTTP requests.
There is a synchronous and an asynchronous version of the object.InstallationTo use this module, you need to have Node.js installed on your machine. Then, you can install it using npm:pipinstallrecordregisterobjectUsageImport the package into your project:fromregisterrecordobjectimportRegisterRecordObjectSyncCreate an instance of RegisterRecordObject by providing the base URL of your service:registerRecord=RegisterRecordObjectSync('http://localhost:3001/');Use the register method to send metrics data:registerRecord.register({"key1":'value1',"key2":'value2',"timestamp":time.time(),"service":'service1'})Use the test method to test your service:response=registerRecord.test()assert(response.status_code==200)Ensure that your service has the corresponding endpoints for metrics registration and testing.Full code example:fromregisterrecordobjectimportRegisterRecordObjectSyncfromregisterrecordobjectimportRegisterRecordObjectAsyncdefrun_sync():register_record=RegisterRecordObjectSync(url="http://localhost:3001")response_test=register_record.test()assert(response_test.status_code==200)response_register=register_record.register(data={"test":"test","service":"test-python"})assert(response_register.status_code==200)asyncdefrun_async():register_record=RegisterRecordObjectAsync(url="http://localhost:3001")response_test=awaitregister_record.test()assert(response_test.status==200)response_register=awaitregister_record.register(data={"test":"test","service":"test-python"})assert(response_register.status==200)License
This project is licensed under the MIT License - see the LICENSE file for details.Feel free to customize this README to include more details or specific instructions related to your project.
Package: registrable
python-registrablePython module for registering and instantiating classes by name. Based on the implementation fromAllenNLP.InstallingThe quickest way to install is through PyPI.pip install registrableUsagefromregistrableimportRegistrable# Create a base class that inherits from `Registrable`.classMyBaseClass(Registrable):defdo_something(self):raiseNotImplementedError# Now register subclass implementations of your base class.@MyBaseClass.register("first_implementation")classFirstImplementation(MyBaseClass):defdo_something(self):return1# You can access an implementation by calling `.by_name()` on the base class.subclass=MyBaseClass.by_name("first_implementation")instance=subclass()assertinstance.do_something()==1
Package: registrant-alert
OverviewThe client library forRegistrant Alert APIin Python language.The minimum Python version is 3.6.Installationpipinstallregistrant-alertExamplesFull API documentation availablehereCreate a new clientfromregistrantalertimport*client=Client('Your API key')Make basic requests# Get the number of domains.terms={'include':['blog']}result=client.preview(basic_terms=terms)print(result.domains_count)# Get raw API responseraw_result=client.raw_data(basic_terms=terms,response_format=Client.XML_FORMAT,mode=Client.PREVIEW_MODE)# Get a list of registered/dropped domains (up to 10,000)result=client.purchase(basic_terms=terms)Advanced usageExtra request parametersadvanced_terms=[{'field':Fields.registrant_contact_organization,'term':'Airbnb, Inc.','exactMatch':True}]since_date=datetime.date(2021,8,12)result=client.purchase(advanced_terms=advanced_terms,since_date=since_date,punycode=False)Response model overviewResponse:-domains_count:int-domains_list:[Domain]-domain_name:str-date:datetime.date-action:strChangelog1.0.0 (2021-09-14)First release
Package: registrasion
Registra(tion for Sympo)sion. A conference registration app for Django,
letting conferences big and small sell tickets from within Symposion.Symposionsymposionis an Open Source conference management solution built with Pinax
apps for Django. For more information, seehttps://github.com/pinax/symposion.registrasionregistrasionis a registration package that you use alongside Symposion. It
handles inventory management, as well as complex product inclusions, automatic
calculation of discounts, and invoicing. Payment of invoices can be faciliated
by manual filings of payments by staff, or through plugging in a payment app.Initial development ofregistrationwas funded with the generous support of
the Python Software Foundation.Quickstartregistrasionis a Django app. You will need to create a Django project to
customize and manage your Registrasion and Symposion installation. A
demonstration app project with templates is available athttps://github.com/chrisjrn/registrasion-demoDocumentationThe documentation forregistrasionis available athttp://registrasion.readthedocs.org/
Package: registrator
## SynopsisThis python3 code does image registration. The scale, rotation and position between two images is extracted## Code Example
load the module: import registrator.channel as crGet a channel direction: an0=cr.channel_angle(im0)Get a channel width: width0=cr.channel_width(im0,chanangle=an0)Compare two images: angle, scale, origin, im2=cr.register_channel(im0,im1)## MotivationBetween series of images, the device mignt have moved, of the focal distance might have changed.
This project will automatically detect these differences.## InstallationIn the folder:pip install .## API ReferenceThe python help function gives the required infos as docstrings have been specified.: help(cr)## Testsnosetests## ContributorsIf you want to improve this code feel free to talk to me or send push requests## LicenseThis code is under GPLv3
Package: registrycleaner
Registry-CleanerRegistry Cleaner is singular or multiple tag deletion tool from private docker registry.Libraries that must be pre-installed to run the program :requestsargparseParametersParameterDescription--host/-host "value"'Registry URL'--username/-u "value""Registry username"--password/-p "value""Registry user password"--get-repos"For list all repos in registry"--get-tags "repo-name""For list all tags of written repo"--tag/-t "repo:tag""Repos and tags you want to delete, use like 'repo1:tag1 repo1:tag2 repo2:tag repo3:*'"--allready-login"Use if you already login private docker registry"--config/-c"If you want to specify config path"--yes"To delete the listed repos"If your user is not include docker group, you must run with sudo.Example Usages with pipInstallation:pip3 install registrycleanerFor listing all repos:registrycleaner --host registry.abc.xyz --username foo --password bar --get-reposFor listing all tags from written reporegistrycleaner --host registry.abc.xyz --username foo --password bar --get-tags repo-nameList specified repo and tagregistrycleaner --host registry.abc.xyz --username foo --password bar --tag repo1:tag1 repo1:tag2 repo2:tag repo3:*If you already login private docker registry and you don't want to enter username or password use --already-login. Default config file at /home/user/.docker/config.json.registrycleaner --host registry.abc.xyz --get-tags repo-name --already-loginIf you want to specify config.json file path, use --config parameter.registrycleaner --host registry.abc.xyz --get-tags repo-name --already-login --config /home/user/xyz/config.jsonTo delete the listed tag add --yes.registrycleaner --host registry.abc.xyz --username foo --password bar --tag repo1:tag1 repo1:tag2 repo2:tag --yesExample Usages without pipFor listing all repos:python3 registry-cleaner.py --host registry.abc.xyz --username foo --password bar --get-reposFor listing all tags from written repopython3 registry-cleaner.py --host registry.abc.xyz --username foo --password bar --get-tags repo-nameList specified repo and tagpython3 registry-cleaner.py --host registry.abc.xyz --username foo --password bar --tag repo1:tag1 repo1:tag2 repo2:tag repo3:*If you already login private docker registry and you don't want to enter username or password use --already-login. Default config file at /home/user/.docker/config.json.python3 registry-cleaner.py --host registry.abc.xyz --get-tags repo-name --already-loginIf you want to specify config.json file path, use --config parameter.python3 registry-cleaner.py --host registry.abc.xyz --get-tags repo-name --already-login --config /home/user/xyz/config.jsonTo delete the listed tag add --yes.python3 registry-cleaner.py --host registry.abc.xyz --username foo --password bar --tag repo1:tag1 repo1:tag2 repo2:tag --yes
Package: registry-du
registry-duGive you a better view of your Docker registry disk usage.This small tool will analysis your Docker registry(vanilla or Harbor both work), and shows how many space does those project use, it also shows top disk-consuming 20 images in the registry.Installationpip3 install registry-duUsageregistry-du /path/to/registry/docker/registry/v2Example output➜  registry-du /home/X/du-demo/registry/data/docker/registry/v2

Registry Path is: /home/X/du-demo/registry/data/docker/registry/v2
+Project-Size----------+-----------+
| Project Name         | Size(MiB) |
+----------------------+-----------+
| jellyfin             | 277.55    |
| library              | 147.62    |
| mongo-express:latest | 47.2      |
+----------------------+-----------+
+Image-Size----------------+-----------+
| Image Name               | Size(MiB) |
+--------------------------+-----------+
| jellyfin/jellyfin:latest | 277.55    |
| library/mysql:5.7        | 147.62    |
| mongo-express:latest     | 47.2      |
+--------------------------+-----------+
Package: registrypol
RegistryPolTheregistrypolmodule allows you to easily parse and create Windows Registry Policy files in Python.InstallationTo install theregistrypolmodule via pip, run the command:$pipinstallregistrypolUsageStart by importing theregistrypolmodule.>>>importregistrypolThe functionregistrypol.load, loads an registry policy file.>>>withopen('registry.pol','rb')asfile:...registrypol.load(file)In addition to loading an existing registry policy, policies created using the relevant Values can be dumped to a file using theregistrypol.dumpfunction.>>>withopen('registry.pol','wb')asfile:...registrypol.dump(policy,file)RegistryValueTo create a registry value as part of an registry policy, aregistrypol.values.RegistryValuemust be created.>>>fromregistrypol.valuesimportRegistryValue>>>value=RegistryValue(...key='Software\Policies\Microsoft\Windows\Control Panel\Desktop',...value='ScreenSaverIsSecure',...type='REG_SZ',...size=4,...data=b'\x01\x00\x00\x00'...)RegistryPolicyTo create an registry policy one or more registry values must be created as described above.These values can then be used to create anregistrypol.policy.RegistryPolicy.>>>fromregistrypol.policyimportRegistryPolicy>>>policy=RegistryPolicy(...values=[...value...]...)