Saravanan666/pypi-org huggingface dataset:
Package: rescaler
rescalerA package that can transform features by scaling each feature to a given range. The input should be (input list, new minimum value, new maximum value). This is more light weight and easy to use than sklearn.preprocessing.MinMaxScaler. This package can simply and quickly rescale each element of the input list into a new value within the range, and generate a new list.Parametersrescaler.rescaler.rescaleinput_listA list.newminThe minimum value of the new scale.newmaxThe maximum value of the new scale.
Package: rescalex
Rescalexpip install rescalexrescalex.rescale.Rescale is a python 3 class to implement rescaling of values.
Input:data = an array of data (or at least a list of [min,max])method = rescaling methodminmax = new scale [min,max]params = additional parameters required by some rescaling methods
How to use (example):
xd = [400.,800.]
obj = Rescale(data=xd) to instantiate. By default, this will set method = 'linear' and minmax = [-1.,1.]
obj.compute() to the transformation
obj.model to show the transformation model
newxd = [300.,350.]
obj.transform(newxd) to transform
newxs = [-2.,-1.,1.,2.]
obj.invtransform(newxs) to inverse transform
Package: rescan
██████╗░███████╗░██████╗░█████╗░░█████╗░███╗░░██╗██╔══██╗██╔════╝██╔════╝██╔══██╗██╔══██╗████╗░██║██████╔╝█████╗░░╚█████╗░██║░░╚═╝███████║██╔██╗██║██╔══██╗██╔══╝░░░╚═══██╗██║░░██╗██╔══██║██║╚████║██║░░██║███████╗██████╔╝╚█████╔╝██║░░██║██║░╚███║╚═╝░░╚═╝╚══════╝╚═════╝░░╚════╝░╚═╝░░╚═╝╚═╝░░╚══╝RescanA modern port scanner for recon written in pythonInstallationpip install rescanrescan infofor more informationDebug Setupgit clone https://github.com/snowkluster/rescan.gitpython3 -m pip install -r requirements.txtHelprescan --help
Package: rescape-graphene
rescape_grapheneGraphene helpers for rescape projectsInstallationCreate a virtual environment usingmkdir~/.virtualenvs
python3-mvenv~/.virtualenvs/rescape-graphene
Activateitsource~/.virtualenvs/rescape-graphene/bin/activateInstall requirementsIf you don't have pur installed:
pip install purThis updates requirements.txt to their latest versionInstall requirements with latest versionspur-rrequirements.txt&&$VIRTUAL_ENV/bin/pip3install--no-cache-dir--upgrade-rrequirements.txtAdd the following to the bottom $VIRTUAL_ENV/bin/activate to setup the PYTHONPATH.
Replace the path with your code directoryexportRESCAPE_GRAPHENE_BASE_DIR=/Users/andy/code/rescape-grapheneexportRESCAPE_GRAPHENE_PROJECT_DIR=$RESCAPE_GRAPHENE_BASE_DIR/urbinsightexportPYTHONPATH=.:$RESCAPE_GRAPHENE_BASE_DIR:$RESCAPE_GRAPHENE_PROJECT_DIRBuildUpdate the version in setup.py
Run to generate build:
Update the version with bumpversion, which can't seem to look it up itself but udpates setup.pygitcommit.-m"Version update"&&gitpush
bumpversion--current-version{lookinsetup.py}patchsetup.py
python3setup.pycleansdistbdist_wheelTo distribute to testpypi site:
Upload package:twineuploaddist/*All at oncegitcommit.-m"Version update"&&gitpush&&bumpversion--current-version{lookinsetup.py}patchsetup.py&&python3setup.pycleansdistbdist_wheel&&twineuploaddist/*# without commitbumpversion--current-version{lookinsetup.py}patchsetup.py&&python3setup.pycleansdistbdist_wheel&&twineuploaddist/*For setup of testpypi see ~/.pypirc or create one according to the testpypi docs:
e.g.:
[distutils]
index-servers=
pypi
testpypi[testpypi]
repository:https://test.pypi.org/legacy/username: your username for pypi.orgRunning testsCreate a postgres database rescape_grapheneLogin to psql:CREATE DATABASE rescape_graphene;
CREATE USER test_user WITH PASSWORD 'test';
GRANT ALL PRIVILEGES ON DATABASE rescape_graphene to test_user;Give Superuser permission to create test databasesALTER ROLE test_user SUPERUSER;Run the migrationsCreate a Django user test with pw testpass./manage.py createsuperuserorecho "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser('test', 'test@nowhere.man', 'testpass')" | ./manage.py shell
Package: rescape-python-helpers
rescape-python-helpersFunctional and geospatial helpersInstallationCreate a virtual environment usingmkdir~/.virtualenvs
python3-mvenv~/.virtualenvs/rescape-python-helpers
Activateitsource~/.virtualenvs/rescape-python-helpers/bin/activateInstall requirements$VIRTUAL_ENV/bin/pipinstall--no-cache-dir--upgrade-rrequirements.txtAdd the following to the bottom $VIRTUAL_ENV/bin/activate to setup the PYTHONPATH.
Replace the path with your code directoryexportRESCAPE_PYTHON_HELPERS_BASE_DIR=/Users/andy/code/rescape-python-helpersexportRESCAPE_PYTHON_HELPERS_PROJECT_DIR=$RESCAPE_HELPERS_BASE_DIR/urbinsightexportPYTHONPATH=.:$RESCAPE_PYTHON_HELPERS_BASE_DIR:$RESCAPE_PYTHON_HELPERS_PROJECT_DIRBuildUpdate the version in setup.py
Run to generate build:
Update the version with bumpversion, which can't seem to look it up itself but udpates setup.pygitcommit.-m"Version update"&&gitpush
bumpversion--current-version{lookinsetup.py}patchsetup.py
python3setup.pycleansdistbdist_wheelTo distribute to testpypi site:
Upload package:twineuploaddist/*To do everything at oncegitcommit.-m"Version update"&&gitpush&&bumpversion--current-version{lookinsetup.py}patchsetup.py&&python3setup.pycleansdistbdist_wheel&&twineuploaddist/*# Without the commitbumpversion--current-version{lookinsetup.py}patchsetup.py&&python3setup.pycleansdistbdist_wheel&&twineuploaddist/*For setup of testpypi see ~/.pypirc or create one according to the testpypi docs:
e.g.:
[distutils]
index-servers=
pypi
testpypi[testpypi]
repository:https://test.pypi.org/legacy/username: your username for pypi.org
Package: rescape-region
=====
Rescape-RegionA Django app to support limiting users by geographic regionQuick startAdd "rescape-region" to your INSTALLED_APPS setting like this::INSTALLED_APPS = [
...
'rescape-region',
]Include the polls URLconf in your project urls.py like this::path('rescape-region/', include('regional.urls')),Runpython manage.py migrateto create the rescape-region models.InstallationCreate a virtual environment usingmkdir~/.virtualenvs
python3-mvenv~/.virtualenvs/rescape-region
Activateitsource~/.virtualenvs/rescape-region/bin/activateInstall requirementsInstall requirements with latest versions# pur tries to use python 2, so use pip-upgrade insteadpur-rrequirements.txt&&$VIRTUAL_ENV/bin/pip3install--no-cache-dir--upgrade-rrequirements.txtAdd the following to the bottom $VIRTUAL_ENV/bin/activate to setup the PYTHONPATH.
Replace the path with your code directoryexportRESCAPE_REGION_BASE_DIR=/Users/andy/code/rescape-regionexportRESCAPE_REGION_PROJECT_DIR=$RESCAPE_REGION_BASE_DIR/rescape-regionexportPYTHONPATH=.:$RESCAPE_REGION_BASE_DIR:$RESCAPE_REGION_PROJECT_DIRBuildUpdate the version in setup.py
Run to generate build:
Update the version with bumpversion, which can't seem to look it up itself but updates setup.pyinstall wheel and bumpversion if neededpip3 install wheel
pip3 install bumpversiongitcommit.-m"Version update"&&gitpush
bumpversion--current-version{lookinsetup.py}patchsetup.py
python3setup.pycleansdistbdist_wheelTo distribute to pypi site:
Upload package:twineuploaddist/*All at once:gitcommit.-m"Version update"&&gitpush&&bumpversion--current-version{lookinsetup.py}patchsetup.py&&python3setup.pycleansdistbdist_wheel&&twineuploaddist/*# Without commitbumpversion--current-version{lookinsetup.py}patchsetup.py&&python3setup.pycleansdistbdist_wheel&&twineuploaddist/*For setup of testpypi see ~/.pypirc or create one according to the testpypi docs:
e.g.:
[distutils]
index-servers=
pypi
testpypi[testpypi]
repository:https://test.pypi.org/legacy/username: your username for pypi.orgRunning testsCreate a postgres database rescape_regionLogin to psql:CREATE DATABASE rescape_region;
CREATE USER test_user WITH PASSWORD 'test';
GRANT ALL PRIVILEGES ON DATABASE rescape_region to test_user;Give Superuser permission to create test databaseesALTER ROLE test_user SUPERUSER;Migrate the database./manage migrateCreate a Django user test with pw testpass./manage.py createsuperuserorecho "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser('test', 'test@nowhere.man', 'testpass')" | ./manage.py shell
Package: reschedule
RescheduleGoalI want to keep track of all my todos in aplain text filebut also automatically schedule my todos on my google calendar. When I write my todos in a todo list I often fail to allocate time for them in my calendar. When I look at my week I feel like I have tons of free time but in reality I have a full day of work to do. As an example this is what my week looks like without todos vs. with todos (in orange).This program automatically parses todos from a markdown file and schedules them on a google calendar.- [ ]task name est:10m due:2020-03-20 id:1f2a4bInstallationUsing python >3.6pip install rescheduleNow you can reschedule your todos by runningreschedulefrom the command line.
The first time you runrescheduleyou'll be prompted to authorize with google and a config file will be created for you at~/.cache/reschedule/config.json.Configuration{"work_start_time":"08:00","work_end_time":"18:00","task_file_path":"~/todo.md","task_calendar_name":"Reschedule Tasks","chunk_size":15,"default_est":"30m"}work_start_time: the earliest a task will be scheduled to start in%H:%Mformat. (i.e. military time such as 08:30 or 23:00)work_end_time: the latest a task will be scheduled to end in%H:%Mformat. (i.e. military time such as 08:30 or 23:00)task_file_path: the absolute path to your markdown file of taskstask_calendar_name: the name of the google calendar this program will create to store your tasks.Must be unique from an existing calendar.chunk_size: the minimum length of an event. 15 is a good default to keep your day from becoming too fragmented.default_est: the default time estimate for a taskTask File FormatTask are written using markdown task-list format. To create a task use a new line with- [ ]. To mark a task as complete use- [x]. Metadata is attached to tasks using akey:valuesyntax. Thekeyand thevaluecannot contain spaces or:. I call an instance of akey:valuepair a tag, for instance anidtag is akey:valuepair with akeyofid. Every task needs a uniqueidtag for exampleid:1aab7d. Tasks can have anesttag which contains a time estimate written as30mor1hfor 30 minutes or 1 hour respectively. Any number followed bymorhis acceptable as a value for theesttag. Finally tasks can have aduetag which contains a due-date formatted asYYYY-MM-dd.<!-- A task with an estimate of 30 minutes, due March 6, 2020, with id 16cfe6 -->- [ ]What you want to do est:30m due:2020-03-06 id:16cfe6VSCode SnippetsI use the following user definedVSCode Markdown Snippetsto create my tasks.// add a new task
  "task": {
    "prefix": "//task",
    "body": [
      "- [ ] ${1:What do you want to do?} est:${2:30m} id:$RANDOM_HEX"
    ]
  },
  // add a due date to a task
  "due": {
    "prefix": "//due",
    "body": "due:${1:$CURRENT_YEAR}-${2:$CURRENT_MONTH}-${3:$CURRENT_DATE}"
  },
  // create a random variable
  "random": {
    "prefix": "//random",
    "body": "$RANDOM_HEX"
  }
Package: rescheduler
rescheduleris a task scheduler built on top of redis. It stores all jobs and schedules in redis which provides
persistency (depends on redis persistent level configuration), distributed work (multiple schedulers allowed to be
run simultaneously) and fault tolerance (in case of one scheduler crash the others takes away its jobs).InstallationYou can install rescheduler with pip:$pipinstallreschedulerQuickstartServer side:importasyncioimportaioredisfromreschedulerimportScheduler,Jobdeftick():print("tick")deftack():print("tack")asyncdefcallback(job:Job):ifjob.data['method']=='tick':tick()elifjob.data['method']=='tack':tack()asyncdefmain():conn_pool=awaitaioredis.create_redis_pool(('localhost',6379))asyncwithScheduler(conn_pool=conn_pool,job_callback=callback,use_keyspace_notifications=True):awaitasyncio.sleep(30)conn_pool.close()awaitconn_pool.wait_closed()if__name__=='__main__':asyncio.run(main())Client side:importasyncioimportaioredisfromreschedulerimportScheduler,Job,CronTriggerasyncdefmain():conn_pool=awaitaioredis.create_redis_pool(('localhost',6379))scheduler=Scheduler(conn_pool=conn_pool,job_callback=lambda:None)awaitscheduler.add_job(Job(id='tick-task',trigger=CronTrigger.parse(expr='*/10 * * * * *',seconds_ext=True),data={'method':'tick'},))awaitscheduler.add_job(Job(id='tack-task',trigger=CronTrigger.parse(expr='*/10 * * * * *',seconds_ext=True),data={'method':'tack'},),delay=5.0,)conn_pool.close()awaitconn_pool.wait_closed()if__name__=='__main__':asyncio.run(main())
Package: resc-helm-wizard
Repository Scanner Helm Wizard (resc-helm-wizard)Table of contentsAbout the componentGetting startedPrerequisitesUsageRun helm-values-wizard locally from sourceTestingRun unit tests, linting and import checks locallyAbout the componentThe helm values wizard is an interactive CLI tool to generate the values yaml file which can be used for helm deployment of RESC.
On successful run, this CLI produces custom-values.yaml file in resc-helm-wizard directory.Getting startedThese instructions will help you to get a copy of the project up and running on your local machine for development and testing purposes.PrerequisitesGitPython (v3.9.0 or higher)Docker DesktopKubernetesHelmUsageInstall the package:pipinstallresc-helm-wizardRun the wizard:resc-helm-wizardRun helm-values-wizard locally from sourceRun the following commands in a Git Bash or Linux terminal.Clone the repository:gitclone-b<branch_name>https://github.com/abnamro/repository-scanner.gitcd./deployment/resc-helm-wizardCreate virtual environment (in Linux/MacOS):pipinstallvirtualenv
virtualenvvenvsourcevenv/Scripts/activateCreate virtual environment (in Windows):pipinstallvirtualenv
virtualenvvenv
venv/Scripts/activateInstall resc-helm-wizard package:pipinstall-e.Run the resc-helm-wizard CLI (DOES NOT work in git-bash):resc-helm-wizardTesting(Back to top)Run unit tests, linting and import checks locally:See below commands for running various (unit/linting) tests locally. To run these tests you need to installtox. This can be done on Linux and Windows with Git Bash.Run below commands to make sure that the unit tests are running and that the code matches quality standards:pipinstalltox# install tox locallytox-v-esort# Run this command to validate the import sortingtox-v-elint# Run this command to lint the code according to this repository's standardtox-v-epytest# Run this command to run the unit teststox-v# Run this command to run all of the above tests
Package: reschema
reschemaThis directory contains a library for parsing <rest-schema> objects
that describe a REST API.  The <rest-schema> format is described in GL4v2.LicenseCopyright (c) 2019 Riverbed Technology, Inc.Reschema is licensed under the terms and conditions of the MIT License
accompanying the software (“License”).  Reschema is distributed “AS IS” as set
forth in the License.  Reschema requires the download and usage of certain
third party software from third party websites.  All such third party software
is licensed by the applicable third party licensors under the terms and
conditions (including, without limitation, warranty and liability disclaimers)
offered by such third party licensors. You acknowledge that you are responsible
for obtaining and complying with any licenses necessary to operate any such
third party software.  Riverbed Technology, Inc. disclaims all representations,
warranties and liability relating to such third party software.
Package: res-core
This Python3-only package provides different classes and functions
which are used in various services, either proprietary or open,
such as [res-scheduler](https://github.com/AngryDevelopersLLC/res-scheduler).It supposes [asyncio](http://asyncio.org/) environment.argument_parser.pyprovides scattered argparse support.child_process_protocol.pyallows single parent - multiple
children process operation, similar to classic web servers like
Apache or (g)unicorn.configuration.pyincludesConfigclass and different helpers for
building a nice JSON-based configuration system.logger.pysuppliesLoggerclass which simplifies and colorizes
logging (other classes are supposed to inherit from it - screw
the incapsulation).systemd_watchdog.py- [systemd](https://en.wikipedia.org/wiki/Systemd)
watchdog wrapper (used in modern Debian/Ubuntu versions).utils.py- various random functions.Released under New BSD license.
Package: rescrap
ReScrapPresentationLibrary for scraping:.txt filepdf fileweb pagesModulesReScrapReScrapFilePDF and Text file scrapingReScrapWebWeb scraping from an url or html string.Examplefromrescrap.rescrapwebimportReScrapWeburl="https://example.com/"rsw=ReScrapWeb(url=url)rsw.find('h1').text>>>'Example Domain'VS BeautifulSoupkeywords="covid"date_now=datetime.now().strftime("%d/%m/%Y")url=f"https://www.lemonde.fr/recherche/?search_keywords={'+'.join(keywords.split(' '))}&start_at=19/12/1944&end_at={date_now}&search_sort=date_desc"deftest_bs4(url):r=requests.get(url)web_content=BeautifulSoup(r.text,"lxml")news_liste=web_content.findAll("section",class_="teaser teaser--inline-picture")news_title=[]fornews_iteminnews_liste:ifnews_item.find("span",class_="meta__date"):links=news_item.find("a",href=True)["href"]news=news_item.find("h3",class_="teaser__title").textdate=(news_item.find("span",class_="meta__date").text.split(",")[0].split(" - ")[0].replace("Publié ","").capitalize())news_title.append((news,links,date))returnnews_titledeftest_rescrap(url):rsw=ReScrapWeb(url=url)news_liste=rsw.find_all("section",class_="teaser--inline-picture")news_title=[]fornews_iteminnews_liste:ifnews_item.find("span",class_="meta__date"):links=news_item.find_value("a","href")news=news_item.find("h3",class_="teaser__title").textdate=(news_item.find("span",class_="meta__date").text.split(",")[0].split(" - ")[0].replace("Publié ","").capitalize())news_title.append((news,links,date))returnnews_titleBenchmark :%%timeittest_bs4(url)>>>824ms±40.5msperloop(mean±std.dev.of7runs,1loopeach)%%timeittest_rescrap(url)>>>576ms±21.4msperloop(mean±std.dev.of7runs,1loopeach)%%timetest_bs4(url)>>>CPUtimes:user565ms,sys:23.6ms,total:588msWalltime:811ms%%timetest_rescrap(url)>>>CPUtimes:user386ms,sys:79µs,total:386msWalltime:582ms
Package: rescreen
Display Manager with fractional scaling support for X11IntroductionReScreen is anopen-sourcetool that tries to simplify the per-display fractional scaling problem many users have on
Linux inside an X11-Session. You can use thegraphical display configuratorto configure your display setup to your
liking. When you are satisfied with the setup, the configuration is saved and applied to your system. Everytime the
connected display configuration changes, ReScreen automatically tries to find a matching profile and if it found one, it
gets applied. You can also manually force this behaviour using thecommand line interface.InstallationDebian/UbuntuDownload the.deb-File from theRelease Page.To install it on your system, use$sudoapt-getinstall-f<pathtothe.deb-File>A package repository for deb packages is in the making :construction:ArchDownload the.pkg.tar.zst-File from theRelease Page.To install it on your System, use$sudopacman-U<pathtothe.pkg.tar.zst-File>An easier method for installing this package on Arch is by using the AUR :arrow_down:AURWith an AUR-Helper of your choice (I will useyayin this example), install the package using$yay-SrescreenPIPThis will not embed rescreen into your system, only the command line tool gets installed. The GUI is not available
as a shortcut in the menu and the screen change watcher does not automatically run in the background.You also need to install the required system dependencies on your own, includingxrandr,xev,loginctl,whoamiandedid-decodeTo install only the command line tools on your system, you can use$pipinstallrescreenCommand Line UsageDetect and save the current display configuration$rescreensaveDetect the current display configuration, try to find a matching profile and apply it if found$rescreenloadStart the Graphical Display Configurator$rescreenguiStart the display change watcher that automatically tries to apply the matching profileNote: This command needs to be run with superuser-permissions. The preferred way of using the watcher is to have it
installed as a systemd-service(This is done in the bundled packages for the distributions)$rescreenwatcherContributingIf you are missing a feature or have new idea, go for it! That is what open-source is for! 😃AuthorTim-Luca Lagmöller(@lagmoellertim)Donations / SponsorsI'm part of the official GitHub Sponsors program where you can support me on a monthly basis.You can also contribute by buying me a coffee (this is a one-time donation).Thank you for your support!LicenseThe Code is licensed under theMIT LicenseCopyright © 2022-present,Tim-Luca LagmöllerHave fun :tada:
Package: rescriptoon
rescriptoonControl one or two Toons in Toontown Rewritten via keyboardInstallationCompatible with X Window System (X11)$sudoapt-getinstallpython3-xlib`# optional`$pip3install--user--upgraderescriptoonUsageLaunch one or two Toontown enginesRunrescriptoonrescriptoon --helpshows all available options.While in the game press`(grave) to disable key remapping.
Press`again to re-enable.$rescriptoon--toggleslashMappings(based onhttps://en.wikipedia.org/wiki/File:Qwerty.svg)MovementKeyActionTarget Engine`turn key remapping on / offwwalk forward0swalk backward0aturn left0dturn right0vlow throw0owalk forward1lwalk backward1kturn left1;turn right1/jump1nlow throw1spacejumpallGag SelectionKeyActionTarget Engineeselect elephant trunk in battle0iselect elephant trunk in battle1fselect fog in battle0jselect fog in battle1
Package: rescupybs
rescupybsTherescupybsis used for band structure plotting or isosurface file exporting fromrescupluscalculation result*.jsonand*.h5files. The code will provide two scripts,rescubsfor band structure plotting usingrescuplus*.jsonor*.datfiles, andrescuisofor isosurface file exporting inVESTAformat from*.jsonand*.h5files.rescubsTo executerescubs-hfor the parameters to use.Example:rescubs-h
rescubs-inano_bs_out_bs.dat-oband.png-lgmkg
rescubs-b-lgmkg-y-1.21.2rescuisoTo executerescuiso-hfor the parameters to use.Example:rescuiso-h
rescuiso-inano_wvf_out.json-k14-b03
Package: resdk
Resolwe SDK for Python supports interaction withResolweserver
and its extensionResolwe Bioinformatics. You can use it to upload
and inspect biomedical data sets, contribute annotations, run
analysis, and write pipelines.Docs & HelpRead the detailed description indocumentation.InstallInstall from PyPI:pip install resdkIf you would like to contribute to the SDK codebase, follow theinstallation steps for developers.NoteIf you are using Apple silicon you should use Python version 3.10 or higher.Quick StartIn this showcase we will download the aligned reads and their
index (BAM and BAI) from the server:importresdk# Create a Resolwe object to interact with the serverres=resdk.Resolwe(url='https://app.genialis.com')# Enable verbose logging to standard outputresdk.start_logging()# Get sample meta-data from the serversample=res.sample.get('resdk-example')# Download files associated with the samplesample.download()Both files (BAM and BAI) have downloaded to the working directory.
Check them out. To learn more about the Resolwe SDK continue withGetting started.If you do not have access to the Resolwe server, contact us atinfo@genialis.com.
Package: researchacademic
pymsresearchIntroductionMicrosoft Academic Research query and the entity result is very compliated with a
lot of abbrivations.This package is to parse the query and the returned result to human readable results.Usageapi_key = ""
    from researchacademic import ResearchAcademic as RA
    from researchacademic import EntityParser as EP

    ra = RA(api_key)

    result = ra.evaluate(query, timeout=5)
    print(result)TestMICROSOFT_API_KEY="" python researchacademic/test_fetcher.py