Saravanan666/pypi-org huggingface dataset:
Package: pyrunjvm
pyrunjvm以 debug 模式启动 jvm， 并启动常见应用服务，目前支持通过 tomcat 容器来启动 exploded war , 下一步要支持启动多个 spring boot flat jar 包原因在 intellij/Eclispe 等 IDE 里可以很方便通过 tomcat 容器来启动服务, 这样就可以很方便调试；
但这样做法有个缺点，tomcat 服务运行时间一长，就会影响到 IDE 的使用，出现 IDE 卡顿等，严重影响代码开发。所以开发了这个工具，可以在命令行里方便启动 tomcat 服务，需要调试时，可以在 IDE 里使用 remote debug 来调试使用安装要求安装 python 3.8 或以上版本使用 pip 安装pip3 install pyrunjvm配置文件配置文件.pyrunjvm.toml定义了如何运行服务以及默认环境变量,
因为每个用户的工具路径或者端口都不一样的，pyrunjvm 是通过定义环境变量来更改这些配置
可在系统的环境变量里定义，或者在当前目录下建立配置文件.env来定义具体的环境变量在项目的根目录下新建文件.pyrunjvm.toml, 下面是一个配置文件的例子app_type = "tomcat"

[build]
clear_cmds = []
build_cmds = [
  "${GRADLE_BIN} explodedWar",
]

[tomcat]
proxy.enable = true


[[projects]]
path="test-mgr"
context_path = "test-mgr"
exploded_war_path = "${WORK_DIR}/test-mgr/build/exploded"

[[projects]]
path="test-api"
context_path = "test-api"
exploded_war_path = "${WORK_DIR}/test-api/build/exploded"

# default env
[env]
JVM_DEBUG_PORT = "50899"
TOMCAT_PORT = "8080"
SHUTDOWN_PORT =  "8005"
REDIRECT_PORT = "8443"
AJP_PORT = "8009"
GRADLE_BIN = "gradle"
JAVA_BIN = "java"环境变量配置文件.env例子JVM_DEBUG_PORT = 50859
TOMCAT_PORT = 8080

GRADLE_BIN = ".\gradlew.bat"
TOMCAT_HOME="G:\\devel\\apache-tomcat-8.5.16"

JAVA_BIN="C:\\Users\\riag\\.jabba\\jdk\\zulu@1.8\\bin\\java.exe"运行在命令行里 cd 到项目的根目录下，然后直接执行pyrunjvm命令就可以
Package: pyrunnable
why?i just can’t be bothered to write the same boilerplate code over and
over again. so i wrote it into a little library. it has the ‘android’
lifecycle in mind:on_start (before the loop gets called)work (in the loop)on_stop (when the loop has finished)also it has a useful function called ‘stop’how to…… installpip3installgit+https://github.com/smthnspcl/pyrunnable… use itfromrunnableimportRunnablefromtimeimportsleepclassThreadedObject(Runnable):def__init__(self,**kwargs):# not necessary but included for the sake of completenessRunnable.__init__(self,**kwargs)# gotta super to Runnable as you would with Threaddefon_start(self):print("we are going to run in a loop")defwork(self):print("working")sleep(0.42)# be nice to the cpudefon_stop(self):print("we finished working. time for beer")o=ThreadedObject()try:o.start()o.join()# Runnable inherits threading.ThreadexceptKeyboardInterrupt:o.stop()
Package: pyrunner
pyrunnerA simple Python task runner. Use it as a CLI, or wrap your own scripts with
the python interface.FeaturesPrevent a task to be running twice simultaneously.Prevent a task to be launched again when it is already completed.It implements this by writing token files.doneand.runningin a
specified task directory. One directory = One task.Example use casesCrash recoverySay you launched multiple tasks for all subdirectories:ls | xargs -I % command %,
and the command crashes in the middle. Now how do you run only the unfinished tasks ?You can use pyrunner to run the your tasks, and then the second run will only start
unfinished tasks.ParallelIt can also be used as a poor man's parallel library.
Instead ofls | xargs -P 2 -I % command %you can runls | xargs -I % pyrunner %/.tokens command %in two shells.
Each shell will pick up the pending tasks.Installationpip install pyrunnerCLI usageYou can use it as a cli, like this :pyrunner<tokens-folder><command>For examplepyrunner.tokens/touchfile.txtWill create a file called file.txt.Another example :pyrunner.tokens/bash-c"date > date.txt"This command will save the current date in the filedate.txt.
If you run it again it will not run.Python UsageYou can also wrap your script in a python class.
The advantage is that you can define your own arguments, and use them to define the tokens folder.  (and avoid duplicating it as an argument like with thepyrunnercli).For this, you need to wrap your script in a python class.A basic task that creates a filefrompyrunnerimportTaskclassTouchTask(Task):defcommand(self):return"touch"defexperiment_folder(self,args):return"."# return current folderif__name__=="__main__":TouchTask().run()More complex examples are in the examples/ directory.
Package: pyrunning
pyrunningOverviewA python library to run and live-logOS commands,functions,scripts, andbatch jobseither immedietly, or to be queued for later execution.Warning: This package is still in the Beta stage. It is not ready for production use. Please do not use for any critical softwareCloningIn order to download the source code to your local computer for testing, or for development, you can clone from the remote repository using either SSH, or HTTPS. Below are instructions on how to do so using GitHub hosted code as remote.HTTPSgitclonehttps://github.com/shivanandvp/pyrunning.gitORSSHgitclonegit@github.com:shivanandvp/pyrunning.gitPackagingChange to the project directory (cd pyrunning) and run any of the below scripts:sh packaging/setup.sh <MODE>: Builds and installs a packagesh packaging/build-package.sh <MODE>: Just builds a package without installing it locallysh packaging/install-package.sh <MODE>: Just installs a package locally, except if no built package is detected, a package is built.ORsh packaging_iso/setup.sh <MODE>: Builds and installs a packagesh packaging_iso/build-package.sh <MODE>: Just builds a package without installing it locallysh packaging_iso/install-package.sh <MODE>: Just installs a package locally, except if no built package is detected, a package is built.where<MODE>can be one of the below
1.local: Selectspyrunning-localfrom the local project that you have cloned already.
2.git: Selectspyrunning-gitfrom the latest git commit.
3.stable: Selectspyrunningfrom the git tag corresponding to thepkgverspecified in the PKGBUILD. Ifpkgver=0.1.2, then the git tagv0.1.2is used for packaging.Note: Any additional parameters passed to the above scripts are automatically sent tomakepkgorpacman(whichever is applicable).
Package: pyrunp
runp exports Python functions from files to the command line.
You don’t need to change your existing code.If you have a file named myfile.py with:def foo():
    """beeps a lot"""
    print "beep beep"

def bar(text):
    """Prints things

    Args:
        text (str): The text to print
    """
    print textAnd you want to run it in the command line just do:$ runp myfile.py foo
beep beepYou can also pass arguments to your functions:$ runp myfile.py bar:"this is sweet!"
this is sweet!Functions with names starting with _ are hidden.You can list available functions with:$ runp myfile.py -l
Available functions:
foo    beeps a lot
bar    Prints thingsAnd get info on a specific function:$ runp myfile.py -d bar
Displaying docstring for function bar in module myfile

bar(text)
    Prints things

    Args:
        text (str): The text to printSyntax for calling functions is:$ runp myfile.py function_name:arg1value,arg2=arg2valueThe concept, syntax for commands and initial code are heavily inspired by fabric’s task system.
Package: pyrus-decision-tree
pyrus-decision-treeDecision Tree written in Rust, with Python bindingsExtremelyslowDecision Tree written in RustHave you found yourself yerning for aslowerversion of Scikit-Learn'sDecisionTreeClassifierwith less features?You've come to the right place.This was a weekend project and I've botched the implementation somewhere,
probably in the splitter logic for tree nodes, so while it's written
entirely in Rust and requires no dependencies; it manages to do a lot
of inefficient logic, very quickly.On a handful of testing data, with equivelent parameters, it yields
the same results, only much, much slower.This is currently the first release and the tree only implements
thescikit-learnAPI'sfit(X, y)andpredict(X)methods as of now,
and only as a classifier (no regression tree yet)Maybe I'll get back to fixing it, maybe not.Install:pip install --upgrade pyrus-decision-treeUninstall:pip uninstall pyrus-decision-treeUse:frompyrus_decision_treeimportPyrusDecisionTreedataset=[[2.771244718,1.7847839292],[1.728571309,1.1697614132],[3.678319846,2.812813571],[3.961043357,2.619950321],[2.999208922,2.209014212],[7.497545867,3.162953546],[9.00220326,3.339047188],[7.444542326,0.476683375],[10.12493903,3.234550982],[6.642287351,3.319983761]]targets=[0,0,0,0,0,1,1,1,1,1]clf=PyrusDecisionTree(5)clf.fit(dataset,targets)predictions=clf.predict(dataset)
Package: pyrusgeom
PyrusGeomGeom2D | Soccer MathPyrusGeom is a Python library for dealing with math and geometry in SS2D.InstallationUse pip or build to install PyrusGeom.x.x.x = release versiontest pypirelease:pipinstall-ihttps://test.pypi.org/simple/pyrusgeom==x.x.xpypirelease:pipinstallpyrusgeom==x.x.xdownload and use the released tar file:python-mpipinstallpyrusgeom-x.x.x.tar.gzor use the git repositorygitclonehttps://github.com/Cyrus2D/PyrusGeom.git
python-mbuild
python-mpipinstalldist/pyrusgeom-x.x.x.tar.gzUsagefor importing you can use this optionsimport the desired classfrompyrusgeom.vector_2dimportVector2D# for Vector2Dfrompyrusgeom.polygon_2dimportPolygon2D# for Polygon2DOr use a Wildcard import likefrompyrusgeom.soccer_mathimport*frompyrusgeom.geom_2dimport*Examplesvec_1=Vector2D()# create Vector with default value.vec_2=Vector2D(20,30)# create Vector with 20 , 30 value directly.line_1=Line2D(vec1,vec2)# create line from 2 points.circle_1=Circle2D(3,3,5)# create circle with center point and radius value.print(circle_1.intersection(line_1))#  calculate the intersection with straight line.ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.TODOtriangulation |
delaunay_triangulation |
composite_region_2d |
voronoi_diagram |
circluar import |
remaining eq,hash,reverse |
etc
Package: pyrus-nn
# pyrus-nn[![Build Status](https://milesgranger.visualstudio.com/builds/_apis/build/status/pyrus-nn?branchName=master)](https://milesgranger.visualstudio.com/builds/_build/latest?definitionId=1&branchName=master)[![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=milesgranger/black-jack)](https://dependabot.com)[![crates.io](http://meritbadge.herokuapp.com/pyrus-nn)](https://crates.io/crates/pyrus-nn)[Rust API Documentation](https://docs.rs/pyrus-nn)Lightweight neural network framework written in Rust, with _thin_ python bindings.- Features:- Serialize networks into/from YAML & JSON!- Rust -> serde compatible- Python -> `network.to_dict()` & `Sequential.from_dict()`- Python install requires _zero_ dependencies- No external system libs to install- Draw backs:- Only supports generic gradient descent.- Fully connected (Dense) layers only so far- Activation functions limited to linear, tanh, sigmoid and softmax- Cost functions limited to MSE, MAE, Cross Entropy and Accuracy### Install:Python:```pip install pyrus-nn  # Has ZERO dependencies!```Rust:```toml[dependencies]pyrus-nn = "0.2.1"```### From Python```pythonfrom pyrus_nn.models import Sequentialfrom pyrus_nn.layers import Densemodel = Sequential(lr=0.001, n_epochs=10)model.add(Dense(n_input=12, n_output=24, activation='sigmoid'))model.add(Dense(n_input=24, n_output=1, activation='sigmoid'))# Create some X and y, each of which must be 2dX = [list(range(12)) for _ in range(10)]y = [[i] for i in range(10)]model.fit(X, y)out = model.predict(X)```---### From Rust```rustuse ndarray::Array2;use pyrus_nn::{network::Sequential, layers::Dense};// Network with 4 inputs and 1 output.fn main() {let mut network = Sequential::new(0.001, 100, 32, CostFunc::CrossEntropy);assert!(network.add(Dense::new(4, 5)).is_ok());assert!(network.add(Dense::new(5, 6)).is_ok());assert!(network.add(Dense::new(6, 4)).is_ok());assert!(network.add(Dense::new(4, 1)).is_ok());let X: Array2<f32> = ...let y: Array2<f32> = ...network.fit(X.view(), y.view());let yhat: Array2<f32> = network.predict(another_x.view());}```
Package: pyrustic
DiogenesbyJean-Léon Gérôme-Walters Art Museum:Home pageInfo about artwork, Public Domain,LinkHe owned a cup which served also as a bowl for food but threw it away when he saw a boy drinking water from his hands and realized one did not even need a cup to sustain oneself.--Mark, J. J. (2014, August 02).Diogenes of Sinope. World History Encyclopedia. Retrieved fromhttps://www.worldhistory.org/Diogenes_of_Sinope/Pyrustic Open EcosystemPyrusticis a collection of lightweightPythonprojects that share thesame policy.The goal is to build and maintain a reliable, consistent, easy-to-use and relevant Python codebase for tech enthusiasts.These projects cover various topics: automation, data persistence and exchange, GUI, themes, widgets, multithreading, markup, utilities, project management, et cetera.ProjectsNameDescriptionExonoteWrite and render rich, scriptable, and interactive notesBackstageThree-speed scripting language and automation toolSharedTriptych for data exchange and persistenceHookingGeneric Hooking Mechanism for PythonGaspiumReference framework to buildGASPappsTkStyleLibrary to create styles and themes for Python appsSubrunProcesses spawning in PythonJesthJust Extract Sections Then Hack !SetupinitInitialize Python projectsBuildverTool to build Python packages with built-in intuitive versioning mechanismLitemarkLightweight Markdown dialect for Python appsMegawidgetCollection of megawidgets to build graphical user interfaces for Python appsViewablePython library to implement a GUI view with lifecycleThreadomTkinter-compatible multithreadingOscanScanner for hacking computer languagesSuggestionDemocratizing auto-complete(suggest) for Python desktop applicationsCyberpunk-ThemeA moderndark themefor Python appsWinter-ThemeA modernlight themefor Python appsKurlKonnection URL: HTTP requests in Python with an implementation of conditional request and a responses caching systemProbedProbed collections for PythonCodegamePython app to create, distribute, discover, and runcodegamesHubstoreDistribute, promote, discover, install, and run Python desktop applicationsJupitestGraphical test runnerRustiqlGraphical SQL editorInstallationEach package listed above can be installed individually fromPyPI.
Package: py-rust-odbc-csv
RUST ODBC 2 CSVExtracting data from ODBC Source to CSV using Rust, made to be memory eficient and fast!importos,jsonfrompy_rust_odbc_csvimportodbc_csvREQUIRED PARAMETERSthe required parameters are the ODBC connection string and the query to be executed, but you can also pass the bach size and the desired filenameconn=f"Driver={{ODBC Driver NAME}};System=host;Uid={os.environ['USERNAME']};Pwd={os.environ['PASS']}"query="SELECT * FROM\"DB\".\"TABLE\""EXCUTIONTo execute we call the odbc_csv function and pass the list of arguments:\1st ODBC Connection String;2nd Query String;3rd Bach Size, Number of rows to load at a time (Optional);4rd Required File Name, if not the csv file will be generate with a UUIDv4 name (Optional);The result will be in JSON format (json {success: bool, msg: str, fname: str (path)})res=odbc_csv([conn,query])r=json.loads(res)BUILD FROM SOURCEmaturinbuild--release-ipython
Package: py-rust-search
A package for searching files in a target directory.This package provides python bindings for the rust crateRust_Searchby building
a native Python extension usingPyO3.UsageTo installpipinstallpy-rust-searchBuilding from source requires the nightly version of the rust compiler.This module exposes a single function that transforms C++ linker symbols to a human readable
representation.frompy_rust_searchimportget_similar_filesprint(get_similar_files('png','~/Desktop'))Released under the MIT License
Package: pyrustymd
PyRustyMDWIP! Markdown Parser written in Rust for the PixelCampus.space Wiki to support custom tags and other features.FeaturesParse MarkdownParse HTML-Style TagsAllow only certain TagsAllow only certain Attributes per Tagmarkdown like additions specific to PixelCampus.space WikiReturns a JSON Object like:[{"content":["test",{"content":["test2"],"tag":"span","attributes":{"id":"spn","class":[]}}],"tag":"div","attributes":{"style":"left: 10px;","class":["test","abc"]}}]from this HTML:<divstyle="left: 10px;"class="test abc">test<spanid="spn">test2</span></div>Usagefrompyrustymdimportparsejson=parse("<your html here>")Development setup# Create virtualenvpython3-mvenv.env# Activate virtualenvsource.env/bin/activate# Install maturinpipinstallmaturin# BuildmaturindevelopThen just import it in your python script having the same virtualenv activated.Release History0.1.2Add License and Readme0.1.1Changed package name and published to PyPi0.1.0Basic functionality for parsing HTML-Style TagsMetaFrederik Beimgraben –Website|GitHubDistributed under the GPL-3.0 license. SeeLICENSEfor more information.PixelCampus –Website|GitHub
Package: pyruter
pyruterPython package to interact with the local API of Google Home devices.InstallpipinstallpyruterThis package also include a CLI tool, runpyruter --helpto see what it can do.Example usage"""Example usage of pyruter."""importasyncioimportaiohttpfrompyruter.apiimportDeparturesasyncdeftest_pyruter():"""Example usage of pyruter."""stopid=2190400destination='Drammen'custom_session=aiohttp.ClientSession()data=Departures(LOOP,stopid,destination,custom_session)awaitdata.get_departures()print("Departures:",data.departures)LOOP=asyncio.get_event_loop()LOOP.run_until_complete(test_pyruter())**NB!: Thedestinationhas to be the final destination, and not where you are hopping off.
Package: pyruTorrent
esutilsThis was used for personal use, consider it experimental and use at own risk.Installpip install pyruTorrentUsageIncomplete docsCreate Instancert=rTorrent(host='xxxxxxxxxx',port=123456,username='xxxxxxxxxx',password='xxxxxxxxxx',rpc_path='/rutorrent/plugins/httprpc/action.php')# orrt=rTorrent(uri='https://<username>:<password>@<host>:<port>/rutorrent/plugins/httprpc/action.php',)Add Torrent# :torrent_item: accepts multiple formats# 	Ex: <bytes>     | [<bytes>]     | [<bytes>, <bytes>, <bytes>...]# 	Ex: <magnet>    | [<magnet>]    | [<magnet>, <magnet>, <magnet>...]# 	Ex: <path>      | [<path>]      | [<path>, <path>, <path>]# 	Ex: [<magnet>, [<path>], [<bytes>], <magnet>]# 		<magnet>    the magnet url# 		<path>      local filepath to .torrent file# 		<bytes>     byte contents of a .torrent file#	Not recommended to send more than 80 torrents at a time.#	Failiure happens when sending around 100 torrents at once.## :kwargs: Client defaults used if not setrt.add_torrent(torrent_item,download_path=None,label=None,ratio_group=None,add_stopped=False,add_name_to_path=True,save_uploaded_torrent=False)Get Torrent# Returns single torrentrt.get_torrent('<torrent-hash>',include_trackers=False,include_files=False,include_peers=False)Get Torrents# Note:# 	With include_trackers, include_files & include_peers enabled,# 	response sent from RPC will be double or more in size, depending on# 	number of files, peers and trackers.# Test:# 	Test with 1,125 torrents, 1-3 trackers & 0-4 peers per torrent:# 	- 1.48MB w/ include_trackers, include_files & include_peers disabled# 	- 3.25MB w/ include_trackers, include_files & include_peers enabled# Returns all torrents if no hashes or ratio_group specifiedrt.get_torrents(hashes=None,ratio_group=None,include_trackers=False,include_files=False,include_peers=False)# Returns torrents matching hashesrt.get_torrents(['<torrent-hash>','<torrent-hash>','<torrent-hash>'])Startrt.start('<torrent-hash>')Stoprt.stop('<torrent-hash>')Pausert.pause('<torrent-hash>')Start Allrt.start_all(view='default',ratio_group=None)Stop Allrt.stop_all(view='default',ratio_group=None)Pause Allrt.pause_all(view='default',ratio_group=None)Removert.remove('<torrent-hash>')Remove and Delete Filesrt.remove_and_delete('<torrent-hash>')Remove Allrt.remove_all(view='default',ratio_group=None)Remove All and Delete Filesrt.remove_and_delete_all(view='default',ratio_group=None)Check Hashrt.check_hash('<torrent-hash>')Check Hash Allrt.check_hash_all(view='default',ratio_group=None)Remote Ratio Grouprt.remove_ratio_group(['<torrent-hash>','<torrent-hash>','<torrent-hash>'])Set Ratio Grouprt.set_ratio_group(['<torrent-hash>','<torrent-hash>','<torrent-hash>'],2)Get Settingsrt.get_settings()Set Settingsrt.set_settings({'min_peers':1,'max_peers':200})Get Download Directory# Returns default download directoryrt.get_download_directory()Get Torrent Views# Returns default download directoryrt.get_views()
Package: pyrvea
READMEThe python version reference vector guided evolutionary algorithm.Currently supported: Multi-objective minimization with visualization and interaction support. Preference is accepted as a reference point.To test the code, open thebinder linkand read example.ipynb.Read the documentationhereRequirements:Python 3.6 or upPoetry dependency manager: Only for developersInstallation process for normal users:Run:pip install pyrveaInstallation process for developers:Download and extract the codeCreate a new virtual environment for the projectIf you want to take part in the development process, runpoetry installinstead.See the details of RVEA in the following paperR. Cheng, Y. Jin, M. Olhofer and B. Sendhoff,
A Reference Vector Guided Evolutionary Algorithm for Many-objective
Optimization, IEEE Transactions on Evolutionary Computation, 2016The source code of pyrvea is implemented by Bhupinder SainiIf you have any questions about the code, please contact:Bhupinder Saini:bhupinder.s.saini@jyu.fiProject researcher at University of Jyväskylä.
Package: pyrvsignal
Thread Safe SignalThread safe signal to generate and receive eventsInstallation:pipinstallpyrvsignalExample code:importtimefromthreadingimportThreadfrompyrvsignalimportSignalclassMyThread(Thread):started=Signal()finished=Signal()def__init__(self,target,args):self.target=targetself.args=argsThread.__init__(self)defrun(self)->None:self.started.emit()self.target(*self.args)self.finished.emit()defdo_my_work(details):print(f"Doing work:{details}")time.sleep(10)defstarted_work():print("Started work")deffinished_work():print("Work finished")thread=MyThread(target=do_my_work,args=("testing",))thread.started.connect(started_work)thread.finished.connect(finished_work)thread.start()ContactIf any suggestions mail toravikiranb36@gmail.com
Package: pyRVT
A Python library and command-line application for using random vibration theory
to transform between acceleration Fourier amplitude spectrum and acceleration
response spectrum.Information on the installation and usage can be found in thedocumentation.FeaturesPeak factor implementations:Vanmarcke (1975)Davenport (1964)Der Kiureghian (1985)Toro & McGuire (1987)Cartwright & Longuet-Higgins (1956)Boore & Joyner (1984)Liu & Pezeshk (1999)CitationPlease cite this software using theDOI.History0.7.2 (2020-01-29)Change to no python JIT compliation for Vanmarcke integration.Added pre-commit back.0.7.1 (2018-11-30)Linked requirements file to fix rtfd builds.0.7.0 (2018-10-20)Added Boore & Thompson (2015)Added Wang & Rathje (2018)Re-factored peak factor calculators0.6.3 (2017-10-10)Add scripts for profilingAdd numba to the requirements0.6.2 (2017-05-07)Fixed PEP8 issues in docstrings.0.6.1 (2017-05-05)Removed pyprind require and progress bars.0.6.0 (2017-05-05)Improved performance with multiprocessing and numba.Changed CLI name fromrvt_operatortopyrvt0.5.8 (2016-11-16)Fixed: osc_freqs typo in tools.pyAdded: test cases for tools.py0.5.7 (2016-07-14)Fixed version numbering.0.5.6 (2016-07-14)Fixed manifest to include data directory.0.5.5 (2016-07-11)Updated Travis build scripts.0.5.4 (2016-07-09)Fixed building the documentation on RTFD0.5.1 (2016-07-06)Fixed Travis deployment0.5.0 (2016-07-06)Added ability to pass transfer function to PSA calculation.Removed extraneous files.Cleaned up documentation to use NumPy style.Fixed PEP8 issues.0.1.0 (2016-03-04)First release on PyPI.