Saravanan666/pypi-org huggingface dataset:
Package: ph4-acmd2
Async extension to a famousCmd2library.Cmd2 permanently occupies the main thread which is a problem if you plan
to receive callbacks on the main thread (e.g., by Bluetooth stack Bleak)Pip installationBoolTest is available viapip:pip3 install ph4-acmd2Local installationFrom the local dir:pip3 install --upgrade --find-links=. .Usageimportasyncioimportph4acmd2classCmdLineApp(ph4acmd2.Cmd):asyncdefmain(self):awaitself.acmdloop()print("Cmdloop finished now")if__name__=='__main__':app=CmdLineApp()loop=asyncio.get_event_loop()loop.set_debug(True)loop.run_until_complete(app.main())LimitationsWe useasyncio.lool.add_readerto read from the stdin and process the commands thus it is not currently
possible to ue readline features such as auto-complete or ctrl-r,
UP-arrow for previous commands, etc…Readline occupies main thread in a blocking way, so it is not compatible
with runloop model running on the main thread and executing coroutines.In order to use readline it needs to add async support. A potential
workaround could be to access terminal in async way e.g., submit short
coroutine monitoring the terminal state to simulate readline library.
However, it is not tested.
Package: ph4-connmon
Simple tool to monitor the health of SSH tunnels.Use caseAssume you have several SSH tunnels set up from your home network to a
remote server with a public IPv4, so you can easily reach back to your
private network from the internet.This monitoring tool can periodically tests health of the SSH tunnels
and notifies you over Telegram or Email (or both) if anything changes,
e.g., tunnel is not usable (e.g., in a case of connectivity loss in your
home network or tunneled host being down / unresponsive).Setuppip-install this packagepip install-Uph4-connmonConfigureconfig.jsonaccording toassets/config-example.jsonConfigure notification channels, eitherTelegram
botor Email sender (e.g.,Gmail)
or bothRunassets/install.shto installph4connmon.servicesystemd
serviceRunsystemctl start ph4connmon.serviceNotification examplesStatus: nas-ssh @ 127.0.0.1:3022 - ssh over ssh, open: True (0x), app: SSH-2.0-OpenSSH_8.2, 0.12s
nas-web @ 127.0.0.1:2001 - https over ssh, open: True (0x), app: True, 0.02s
rpi-ssh @ 127.0.0.1:1022 - ssh over ssh, open: True (0x), app: SSH-2.0-OpenSSH_8.2, 0.03s, 2.19 s oldTelegram bot supports also several commands, e.g.,/statusand/full_status, to which it responds with current state. You can
manually request status information and to check that system is
responsive.Note that Email notifier sends only state changes, while Telegram
notifier sends also regular state updates when UPS is running on the
battery. If email user is empty, email notifier is not use. Likewise, if
bot API key is empty, telegram is not used.DependenciesThis project uses monitoring tool libraryhttps://github.com/ph4r05/ph4-monitlib
Package: ph4-moneropy
# MoneroPy - A python toolbox for Monero.Copyright (c) 2016 The MoneroPy Developers.
All rights reserved.Released under the BSD 3-Clause License. See [LICENSE](LICENSE).## AboutThis Python 2/3 package aims to be a resource for Monero actions. The package
implements basic Monero cryptography, mnemonic key derivation, and key and
address creation.Future additions and improvements include developing routines for checking if
transaction outputs belong to a Monero address, if outputs have been spent, and
creating and signing outputs. As this is a being developed under a best-effort
model, there is not a set timeline for the completion of these or other tasks.
If you would like to see progress made in a certain area, feel free to
contribute.Currently, this package is a pure Python implementation of Monero tools and
protocol. Future improvements may include using the Monero reference C and C++
libraries for some or all cryptography and other functions.## InstallationMoneroPy will be added to Python’s pip once development has somewhat stabilized.In the meantime, MoneroPy can be installed by downloading this package and then
running setup.py as follows:python setup.py install## ExampleEach module in MoneroPy can be imported and used separately. For example, to
create spend and view keys and derive a wallet address from a mnemonic seed,import moneropy.accountseed = [“vixen”, “eavesdrop”, “fuming”, “aching”, “react”, “waffle”,“nowhere”, “water”, “upon”, “scoop”, “aztec”, “sunken”, “diplomat”,
“salads”, “rift”, “inkling”, “null”, “testing”, “sixteen”, “return”,
“kitchens”, “narrate”, “moisture”, “nucleus”, “testing”]spendkey, viewkey, address = moneropy.account.account_from_seed(seed)Full documentation is under development and will be available soon.## Unit TestingUnit tests are available undertestsusing data from Monero software. To run
tests, navigate to thetestsdirectory and execute. For example,python test_mnemonic.pyTests should pass on both Python 2.x and Python 3.x. Please run tests (and write
new tests where appropriate) when submitting pull requests.Data for testing is stored intests/testdata.py.## DisclaimerThis package uses Daniel J. Bernstein’s reference ed25519 Python implementation, adapted
for Python 3 compatibility. In addition, it uses Renaud Bauvin’s reference
Keccak sponge function implementation (v3.2). Both are available in the public
domain, and both are written in pure Python. Therefore, key and address
derivation using MoneroPy should be considered vulnerable to side-channel
attacks, and should not be used on shared hardware to prevent, for example,
potential timing attacks.MoneroPy usesos.urandomto generate a secure mnemonic seed for new wallet
creation. Do not use on systems with pooros.urandomentropy sources.
Package: ph4-monitlib
# Monitoring libraryLibrary contains several utility classes that help with building monitoring scripts.Worker, synchronous, thread-backed worker processing tasks (lambdas) inserted to the queueAsyncWorker, asynchronous worker processing coroutines enqueued to the task queueFiFoComm, for client-server communication via named pipes (daemon vs notifier comm), use JWT protection (not included)TcpComm, for client-server communication via TCP, use JWT protection (not included)NotifyEmail, helper for sending notification emails via SMTP server (gmail tested)TelegramBot, helper for sending notifications via Telegram, receive messages, send messages## DevelopmentInstall pre-commit hooks defined by.pre-commit-config.yaml`shell pip3 install-Upre-commitpre-commitinstall `Auto fix`shellpre-commitrun--all-files`Plugin version update`shellpre-commitautoupdate `
Package: ph4-python-whois
Whois Python lib================This project has been forked from thehttps://bitbucket.org/richardpenman/pywhoisGoal====-  Create a simple importable Python module which will produce parsedWHOIS data for a given domain.-  Able to extract data for all the popular TLDs (com, org, net, ...)-  Query a WHOIS server directly instead of going through anintermediate web service like many others do.-  Works with Python 2 & 3Example=======.. sourcecode:: python>>> import ph4whois>>> w = ph4whois.whois('webscraping.com')>>> w.expiration_date  # dates converted to datetime objectdatetime.datetime(2013, 6, 26, 0, 0)>>> w.text  # the content downloaded from whois serveru'\nWhois Server Version 2.0\n\nDomain names in the .com and .net...'>>> print w  # print values of all found attributescreation_date: 2004-06-26 00:00:00domain_name: [u'WEBSCRAPING.COM', u'WEBSCRAPING.COM']emails: [u'WEBSCRAPING.COM@domainsbyproxy.com', u'WEBSCRAPING.COM@domainsbyproxy.com']expiration_date: 2013-06-26 00:00:00...Install=======Install from pypi:.. sourcecode:: bashpip install ph4-python-whoisOr checkout latest version from repository:.. sourcecode:: bashgit clone https://github.com/ph4r05/python-whois.gitOriginal repo of the fork.. sourcecode:: bashhg clone https://bitbucket.org/richardpenman/pywhoisNote that then you will need to manually install the futures module, which allows supporting both Python 2 & 3:.. sourcecode:: bashpip install futuresChangelog=========0.6 - 2016-03-02:* support added for python 3* updated TLD list0.5 - 2015-09-05:* added native client, which now handles whois requests by default* added pretty formatting to string representation* return None instead of raising KeyError when an attribute does not exist* new TLD's: .mobi, .io, .kg, .su, .biz0.4 - 2015-08-13:* new TLD's: .de, .nl, .ca, .be* migrated to bitbucket* added socket timeout0.3 - 2015-03-31:* improved datetime parsing with python-dateutil when available* base WhoisEntry class inherits from dict* fixed TLD's: .org, .infoContact=======You can post ideas or patches here:https://bitbucket.org/richardpenman/pywhois/issuesThanks to the many who have sent patches for additional domains!
Package: phablet-tools
AbstractThis is the modified version of phablet-tools based on Augest 06, 2013 version (phablet-tools_0.15+13.10.20130806).The original version ishttp://ppa.launchpad.net/phablet-team/tools/ubuntu/pool/main/p/phablet-tools/Phablet-tools is a tool for installing the Ubuntu Touch OS into your mobile devices (Currently, only Nexus S, Nexus 4, Nexus 7 and Nexus 10 are supported officially)MotivationNow Phablet-tools only can run on the Ubuntu, it is, somehow, inconvenient for guys who can not access Ubuntu, like me, I only can use Windows 7 in my office.So I tried to read the source code to find out whether it can be ported to other systems, like Windows. And I found it is made by Python 2.X, and it is almost platform-independent.I modified a little code in the  phabletutils/environment.py, and setup this repository, I hope it can be helpful for the guys who want to try Ubuntu Touch without Ubuntu System , I know it sounds some-kind weird, ;-).RequirementBecause Phablet-tools need some dependencies, you need install them by yourself.Python 2.X, I recommend you to install 2.7, I just test it on 2.7.5.ADB tools (including adb.exe and fastboot.exe, I think it will not be a problem for you)wget and rsync, it need to be installed on Windows, and for Mac, it seems it is out of box. (I am not sure since I installed MacPorts)USB drivers for your device, I believe it will not be another problem for you, just google it.Remember, all of them need to be added into PATH environment variable.For Python, it need requests and configobj modules, you can install them useez_setuptools.InstallPlease refer to this linkhttps://wiki.ubuntu.com/Touch/InstallFor Windows UsersAfter you install the Python (Assume you installed it on C:Python27), we need do something to make you flash your device easier.Firstly, add the Python install dir (C:Python27) and scripts dir (C:Python27Scripts) to your PATH environment variable.Second, installez_setupmodule, please follow this tutorialhttps://pypi.python.org/pypi/setuptools/0.9.8#windowsThird, runeasy_install phablet-toolsto install phablet-tools.After install phablet-tools, you could create the phablet-flash.cmd in the C:Python27Scripts directory, the contents like following. This step will make you easy when you following the Install instruction.python C:Python27Scriptsphablet-flash %1 %2 %3Fourth, download msys from herehttp://sourceforge.net/projects/mingw/files/latest/download?source=filesDo not select any options since we do not need them. After installation completed, go to install dir (assume it is C:MingGW), go to bin dir, and runmingw-get install msys-rsyncmingw-get install msys-wget-binAnd you should add msys dir (maybe C:MinGWmsys1.0bin) to your PATH variable.Fifth, download the Android SDK and unzip it, add the dir which contains adb.exe and fastboot.exe to PATH variable.And now, you can follow the Install above to install Ubuntu Touch to your device.
Package: phabricator3
============python-phabricator3============***************About***************Python3 port/fork of disqus/python-phabricator (Phabricator Conduit wrapper)***************Installation***************pip===============pip install phabricator3without pip===============Download/clone the code and then run:python setup.py install***************Usage***************See examples/ for more examples... code-block:: pythonfrom phabricator import Phabricatorphab = Phabricator()  # This will use your ~/.arcrc filephab.user.whoami()Parameters are passed as keyword arguments to the resource call:.. code-block:: pythonphab.user.find(aliases=["sugarc0de"])Documentation on all methods is located at https://secure.phabricator.com/conduit/***************Thanks****************Disqus* for python-phabricator*vilhelmk*, *lifeisstillgood*, *marcqualie* for pull requests
Package: phabricator-python
python_phabricatorA Conduit Based Python API for PhabricatorAims to be python based, no dependency onArcanistModule Based format for API Requests (Easy to extend)Session Token is Cached and takes into account expiry timeHow to UseMinimal configuration as follows# The Certificate of your phabricator installation that can be found# under settingsCERT='YOUR_CERTIFICATE_HERE'# The authorized user on behalf of which to make the callUSER='USER_NAME'# The phabricator URL without the PHABPHAB='PHABRICATOR_URL'Copysettings_sample.pyassettings.pyFill out the valuesYour certificate can be found in thesettingspage of your
phabricator installationmsk@msk-ubuntu~/projects/python_phabricator(master●)$pythonPython2.7.5+(default,Feb272014,19:37:08)[GCC4.8.1]onlinux2Type"help","copyright","credits"or"license"formoreinformation.>>>fromphabricator.paste.queryimportQueryPaste>>>p=QueryPaste()>>>p.makeRequest()loadingtokenfromdiskcachePasteId:PHID-PSTE-klpolzpskydol4lofldlPasteId:PHID-PSTE-wfankndvvhullmp2rwgjPasteId:PHID-PSTE-epwflteivngjxxu7d3ybPasteId:PHID-PSTE-wrnmkkythul4wzm5c7qd
Package: phabricator-task-links-mkdocs-plugin
Autolink References (MkDocs Plugin)Thismkdocs pluginscans articles for references toPhabricator Tasksand replaces the task number ({T0000}) with a link to the actual task.Getting startedTo install the plugin usingpip:pip install phabricator-task-links-mkdocs-pluginEdit yourmkdocs.ymlfile and configure the plugin.plugins:-phabricator_task_links:phabricator_url:https://URL_TO_PHABRICATORExampleCreate adocs/index.mdfile and references a phabricator task like this:Changelog:-{T1000} Implement functionality from taskLicenseMIT
Package: phabulous
Phabulous is an extremely simple wrapper aroundpython-phabricator,
with the aim of supporting writing more concise, and perhaps more predictable
code interacting with Phabricator’s Conduit APIs.I’m mostly using it to support writing iPython Notebooks which explore teams’
work loads and project planning, so it really only supports read operations
at this point.Simplest example:from phabulous import Phabulous

project = Phabulous().project(id=481)
for task in project.tasks():
    print task.title, task.owner.nameSee onGithub, or onPyPi.InstallationThe simplest way to install is via PyPi:pip install phabulousIf you want to develop extraction, you can install from GitHub:git clone git@github.com:lethain/phabulous.git
# or
git clone https://github.com/lethain/phabulous.git
cd phabulous
virtualenv env
. ./env/bin/activate
pip install -r requirements.txt
pip install -e .Then you can run the tests:python tests/tests.pyAll of which should pass in a sane installation.UsageYou should be able to explore from any starting object across
the graph of Phabricator stuff. Let’s look at some examples.Note that authentication is handled by the underlyingpython-phabricatorlibrary, which by default uses your~/.arcrcfiles.First, let’s start with a project:import phabulous
phab = phabulous.Phabulous()
project = phab.project(id=481)
for task in project.tasks[:5]:
    print "[%s] %s:\t%s" % (task.is_open, task.owner.name, task.title)But maybe you want to start with a user instead:import phabulous
user = phabulous.Phabulous().user(username='wlarson')
print "Name: \t%s" % user.name
print "Email: \t%s" % user.email
for task in user.tasks[:10]:
    deps = ",".join([x.title for x in task.dependencies])
    print "\t%s" % task.title
    print "\tDependencies: %s" % deps
    for project in task.projects:
        print "\t\t%s" % project.nameSee more examples in./examples.
Package: phacts
PHACTSA simple program to classify the lifestyle of phages.IntroductionPhage Classification Tool Set (PHACTS) utilizes a novel similarity algorithm and
a supervised Random Forest classifier to make a prediction whether the lifestyle
of a phage, described by its proteome, is virulent or temperate. The similarity
algorithm creates a training set from phages with known lifestyles and along with
the lifestyle annotation, trains a Random Forest to classify the lifestyle of a
phage. PHACTS predictions are shown to have a 99% precision rate.To installPHACTS,pip install phactsorgitclonehttps://github.com/deprekate/PHACTS.gitpipinstallPHACTS/--userThis is the new python based recoding of my original perl code, and is in an alpha state for now.I have included fasta35 binaries for Linux and OSX, that should install automatically.  For
Windows, you will need to download a windows fasta35 binary, and make it visible on the PATHI have tried to replicate exactly the functionality of the original published version.PHACTS ExampleRun on included sample data, the output is the predicted lifestyle and the class probabilities:$phacts.pytests/NC_001416.faaClassprobabilitystandarddeviation
Temperate0.6262737260.101584648
Package: phage-commander
Phage CommanderA graphical utility for querying various gene prediction tools for FASTA formatted DNA sequences.OverviewPhage Commander provides utilities to query various gene-encoding prediction tools and results in various formats.The following gene-encoding prediction tools are currently supported:GlimmerGenemarkGenemark HmmGenemarkSGenemarkS2Genemark HeuristicProdigalRASTMetageneSupported exporting formats:GenbankExcelGetting StartedPrerequisitesPython 3.6+InstallingInstall via pippip install phage-commanderInstall via pip and gitpip install git+https://github.com/mlazeroff/PhageCommanderRunning# on Windowsphagecom.exe# on MacOS/LinuxphagecomNote:The pip "Scripts" directory should be included your PATH variable.AuthorMatthew LazeroffLicenseThis project is licensed under the GNU GPLv3
Package: phalski-ledshim
phalski-ledshimA basic application framework for the Pimoroni LED SHIM.Features:Easy animation developmentFlexible pixel segmentingRunning multiple animations simultaneouslyBasic charting supported out of the boxExamplesBasic usage:fromphalski_ledshimimportapp,animationapplication=app.App()application.configure_worker(0.1,animation.Rainbow(application.pixels[0:13],60))application.configure_worker(0.2,animation.LedTest(application.pixels[13:27]))application.exec()Running multiple sources in a single worker:fromphalski_ledshimimportapp,animationapplication=app.App()application.configure_worker(0.1,animation.Rainbow(application.pixels[0:13],60),animation.LedTest(application.pixels[13:27]))application.exec()Using charts (requirespsutil):importpsutilfromphalski_ledshimimportapp,chartapplication=app.App()source=chart.Factory.bar_chart_source(application.pixels,lambda:psutil.cpu_percent())application.configure_worker(0.1,source)application.exec()
Package: phanas-pydantic-helpers
Phana's Pydantic HelpersA collection of helper functions/classes for Pydantic.Table of ContentsInstallUsageChangelogDevelopersLicenseInstallPrerequisitesPoetry– dependency managerInstall Phana's Pydantic HelpersTo get started, install the package with Poetry.poetryaddphanas-pydantic-helpersUsageFactoryFactory(...)is simply an alias forpydantic.Field(default_factory=...).frompydanticimportBaseModelfromphanas_pydantic_helpersimportFactoryclassConfig(BaseModel):token:strclass_ExtraInfo(BaseModel):name:str="Unnamed"description:str="Empty description"extra_info:_ExtraInfo=Factory(_ExtraInfo)model=Config(token="bleh")assertmodel.extra_info.name=="Unnamed"model.extra_info.description="A more detailed description"FieldConverterEasily create custom fields with one or more type converters. Make sure the
first superclass is the type you want to represent, as this is considered
the main base class and will take precedence over FieldConverter, offering
better code completion.fromphanas_pydantic_helpersimportFieldConverterfrompydanticimportBaseModelclassToInt(int,FieldConverter):@classmethoddef_pyd_convert_str(cls,value:str)->int:returnint(value)@classmethoddef_pyd_convert_bytes(cls,value:bytes)->int:returnint.from_bytes(value,"big")classContainer(BaseModel):value:ToIntcontainer_from_str=Container(value="5")assertcontainer_from_str.value==5container_from_bytes=Container(value=b"\x00\xFF")assertcontainer_from_bytes.value==0xFFcreate_template_from_modelCreate a dict from a model with required fields. This function fills in required
fields with placeholders.fromtypingimportDict,ListfrompydanticimportBaseModelfromphanas_pydantic_helpersimportFactory,create_template_from_modelclassPlayer(BaseModel):name:stradmin=Falsehighest_score:float=1.0extra_data:Dict[str,str]classPlayerDatabase(BaseModel):version:intplayers:List[Player]classGameSystem(BaseModel):system_name="PhanaBox"games:List[str]player_database:PlayerDatabase=Factory(PlayerDatabase)assertcreate_template_from_model(GameSystem)=={"system_name":"PhanaBox","games":["GAMES"],"player_database":{"version":0,"players":[{"name":"NAME","admin":False,"highest_score":1.0,"extra_data":{"KEY_NAME":"EXTRA_DATA"},}],},}ChangelogSeeCHANGELOG.md.DevelopersInstallationFollow the installation steps ininstalland use Poetry to
install the development dependencies:poetryinstallLicenseMIT © Phanabani.
Package: phandler
phandler is a package to fully control printing in Python. You can delete any line with just one command.First of all, you need to create prints handler object that will handle all the prints:ph = phandler.prints_handler(False)   # <- Set argument to True if you want to ignore errorsNow, you can print something:ph.print('Hello world!')If you want to delete any line, just use this command and specify target line number (counting from bottom):ph.delete_line(1)   # <- This will delete last printed lineYou can use use inputs also:name = ph.input('Enter your name: ')   # <- Now, prompt and input value are removable with delete_line commandTo clear saved prints you can use:ph.clear(True)   # <- Set argument to True if you want to clear all visible lines too