Saravanan666/pypi-org huggingface dataset:
Package: junitxml
A Python unittest TestResult that outputs JUnit compatible XML.CopyrightPyJUnitXML is Copyright (c) 2009 Robert Collins, and distributed under the
GNU Library General Public Licence version 3 (LGPL-3). Broadly, this means you
have the right to use this library in any application you want, regardless of
the licence of your application, but that if you modify this library the
modifications you make need to be released under a compatible terms if you
convey the application to other users. For exact details see the COPYING and
GPL-3 files included in the source.UsageTo use PyJUnitXML you need to specify it as yourTestResultwhen running
your tests using pyunit. One way of doing this is to invoke thetestmethod
directly on your test suite:>>> import junitxml
>>> result = junitxml.JUnitXmlResult(sys.stdout)
>>> result.startTestRun()
>>> suite.run(result)
>>> result.stopTestRun()ThestartTestRunandstopTestRunmethods are new in python 2.7 and 3.1.
If you are using older versions of python, and do not invoke the test result
directly, you may find that no output occurs at all. This is likely because thestopTestRunmethod is not being invoked, and you will need to arrange for it
to be invoked.There is a command line runner you can use:$ python -m junitxml.main discoveror$ junitxml discoverIf the package scripts have been installed.TroubleshootingMy test runs, but nothing is output? Check thatresult.stopTestRunis being
called. Due to the XML file format requiring a header containing the test
counts, nothing is output until the test run has completed, and that is
signalled by thestopTestRunmethod being called.Reporting Bugs and Asking QuestionsPyJUnitXML is hosted on Launchpad athttps://launchpad.net/pyjunitxml. Please
file bugs, ask questions and so on at will.Running PyJUnitXML’s test suiteThe function junitxml.test_suite defines the junitxml test suite, you can use
any runner you like. I personally use:$ python -m subunit.run junitxml.test_suite | subunit2gtkIf you have testrepository you can simply run testr:$ testr runEnjoy,
Rob Collins
Package: junit-xml
AboutA Python module for creating JUnit XML test result documents that can be
read by tools such as Jenkins or Bamboo. If you are ever working with test tool or
test suite written in Python and want to take advantage of Jenkins’ or Bamboo’s
pretty graphs and test reporting capabilities, this module will let you
generate the XML test reports.As there is no definitive Jenkins JUnit XSD that I could find, the XML
documents created by this module support a schema based on Google
searches and the Jenkins JUnit XML reader source code. File a bug if
something doesn’t work like you expect it to.
For Bamboo situation is the same.InstallationInstall using pip or easy_install:pip install junit-xml
or
easy_install junit-xmlYou can also clone the Git repository from Github and install it manually:git clone https://github.com/kyrus/python-junit-xml.git
python setup.py installUsingCreate a test suite, add a test case, and print it to the screen:fromjunit_xmlimportTestSuite,TestCasetest_cases=[TestCase('Test1','some.class.name',123.345,'I am stdout!','I am stderr!')]ts=TestSuite("my test suite",test_cases)# pretty printing is on by default but can be disabled using prettyprint=Falseprint(TestSuite.to_xml_string([ts]))Produces the following output<?xml version="1.0" ?><testsuites><testsuiteerrors="0"failures="0"name="my test suite"tests="1"><testcaseclassname="some.class.name"name="Test1"time="123.345000"><system-out>Iamstdout!</system-out><system-err>Iamstderr!</system-err></testcase></testsuite></testsuites>Writing XML to a file:# you can also write the XML to a file and not pretty print itwithopen('output.xml','w')asf:TestSuite.to_file(f,[ts],prettyprint=False)See the docs and unit tests for more examples.NOTE: Unicode characters identified as “illegal or discouraged” are automatically
stripped from the XML string or file.Running the tests# activate your virtualenv
pip install tox
tox
Package: junkaptor
junkaptor - Python module for sanitizing data-- Garbage in, sanitized data out...  --This module package allows to sanitize data records provided as key-values
dictionaries, allowing attribute mapping etc.Mainly this is used in meta-directory connectors.DependenciesOnly Python 3.6+ and its standard library.InstallationFrom PyPIpip install junkaptorDebian packageYou can build a Debian package by using setuptools helperstdeb. A custom configuration
filestdeb.cfgis provided.See repocontainer-stdebfor easy containerized builds.Configuration parametersThe following configuration paramaters can be optionally provided to
configure some transformation steps applied in same the order the
parameters are described herein:decompose_attrsrecode_attrsremove_valuesreplace_valuessanitizerrename_attrsfallback_attrsfixed_attrsremove_attrscompose_attrssingle_val_attrsname_suffix
Package: junkdraw
JunkdrawEasily create large numbers of arbitrary-sized random files.Usage:junkdraw<options>options:--path: Path to save the generated files (default:./junkdrawer/<desc>)--size: Size of the generated file in bytes (default: 0)--min-size: Minimum size of the generated file in bytes--max-size: Maximum size of the generated file in bytes--count: Number of files to generate (default: 1)--total-size: Cumulative size of all files generated in bytes--max-children: Create no more than this many files or directories in any one directory (default: no limit)--random: Fill files with random data (default: leave empty)
Package: junk-email-collector
Junk Email CollectorDownload raw Junk/Spam emails using IMAP.RequirementsImbox(Python 3)Usage#!/usr/bin/env python3fromjunk_email_collectorimportJunkEmailCollectorexample_junk=JunkEmailCollector("imap.example.com","email@example.com","password","Junk")example_junk.get_junk()Will download all unread emails from "Junk" folder ofemail@example.com, saving the raw emails to the folderemail_example.com/
Package: junker
An ultra-simple tool for manually culling micrographs, i.e. from cryo-EM
data sets.InstallationCreate a conda environment forjunker:conda create -n env_junker python=3.7
source activate env_junker
conda install numpy scipy skimage pyside2
pip install mrczUsageNavigate to your target directory,source activate env_junker
junkerThe tool will create PNGs from every.mrc, .mrczfile in the directory, and
shows a GUI that you can use to navigate.‘Spacebar’: moves the image to a ‘junk’ subdirectory.‘Enter’: moves the image to a ‘salvage’ subdirectory.‘Z’: undos the image move.
Package: junkie-picasso
JuNkIE-picasso: abstract functionality forJunkieJuNkIE-picassoadds onto the functionality ofJuNkIE, allowing you to not just explore your images, but also the parameter space of your image processing pipeline.InstallingJuNkIE-picassoTo installJuNkIE-picasso, type:$ python3 -m pip install junkie_picassoWe do most of the development and testing ofJuNkIE-picassoinJupyter Lab, so we recommend usingJupyter Lab.A note on the Python interpreterJuNkIE-picassorequires that you
havePython 3.10 or aboveinstalled.UsingJuNkIEFor details on how to use the basic functionality ofJuNkIE, visit theJuNkIE docs.Adding abstract functionsJuNkIE-picassoallows the user to define abstract image processing functions that will be applied to the input image. This allows you to explore the parameter space of your image processing pipeline without re-writing and re-running your code!First, import the abstract function base class:fromjunkie_picasso.functions.abstractfunctionimportAbstractFunctionNext, define a class which details the parameters you want to explore using class variables and the function which updates the image using a class method "update". You will need to know a little bit about which widgets you want to use to change the parameters in the GUI. Here is an example for a simple function that adds an offset to the image:classadd_offset():parameters={"offset":{"type":"intslider","range":[0,10000],"step":1,"value":0}}defupdate(self,image:numpy.ndarray)->numpy.ndarray:returnimage+self.parameters["offset"]["value"]Finally, create aJuNkIE-picassoinstance using your custom class as an additional parameter:ayim=junkie('/path/to/img.tiff',func=add_offset())The parameters you have defined will appear to the right of the defaultJuNkIEparameters in a tabbed box, with each tab corresponding to a different parameter. This allows for an arbitrary number of parameters to be added without reorganizing the widget layout.Possible parameter typesFor all parameter types, the dict must have:a "value" key initialized with the default valuea "type" key with one of the following widget namesany other keys required by that widget, as follows"checkbox" (bool value)"intslider" (int value)"range": a tuple of ints denoting the minimum and maximum extents of the slider"step": an int describing the step size for when the slider is moved"floatslider" (float value)"range": a tuple of floats denoting the minimum and maximum extents of the slider"step": a float describing the step size for when the slider is moved"inttext" (int value)"floattext" (float value)"radiobuttons" (str value)"options": a list of strings denoting the different options for each radio buttonCitingJuNkIE-picassoIf you useJuNkIE-picasso, please cite this repository and the repository for the originalJuNkIE. We are working on the paper!SponsorsWe are grateful for the generous support from the following agencies and institutions, which contribute to the
development and maintenance ofJuNkIEandJuNkIE-picasso:
Package: junkie-rfglab
JuNkIE(a JUpyter NotebooK Image Explorer)InstallingJuNkIETo installJuNkIE, type:$ python3 -m pip install --no-cache-dir -U junkie-rfglabJuNkIEcan also be installed withconda/minicondaormamba(keep in mind thatmambais much faster):$ mamba install -c rodrigofg junkie-rfglabWe do most of the development and testing ofJuNkIEinJupyter Lab, so we recommend usingJupyter Lab.A note on the Python interpreterJuNkIErequires that you
havePython 3.10 or aboveinstalled.UsingJuNkIETo start, open a notebook and importJuNkIE:from junkie import junkieThere are a few ways to open an image withJuNkIE:You can open an image with some other package (e.g. scikit-image, opencv, PIL, etc.) and invokeJuNkIEwith anumpy ndarrayas the parameter:import skimage.io as skio
  astack = skio.imread('cells_movie.tif')
  myim = junkie(astack)You can also specifiy the path to the image that you want to open:myim = junkie('cells_movie.tif')Or you can indicate a folder that contains an image sequence:myim = junkie('./slices')If there are image channels split into different files, you can also specify a tuple of strings to distinguish which files in the folder belong to which channel:myim = junkie('./slices', ('488', '561'))JuNkIEhas a couple of additional parameters:cmap(str) indicates the color map used to display the image. It defaults to'gray'. Checkherefor a list of color maps.myim = junkie('cells_movie.tif', cmap='viridis')figsize(Tuple[int, int]) specifies the image panel size. The image aspect ratio is maintained. It defaults to(4, 4).myim = junkie('cells_movie.tif', figsize=(8, 8)JuNkIEprovides access to the standardmatplotlibtoolbar, and also includes a second toolbar with additional functionality:iconfunctionrotate 90° clockwiseflip horizontallyflip verticallyinvert color maphide/show axescontinuous/discrete updateJuNkIEtodayAs we develop and improveJuNkIE, there may be small changes to the user interface. This is howJuNkIElooks as of today:CitingJuNkIEIf you useJuNkIE, please cite this repository. We are working on the paper!Adding functionality ontoJuNkIEIf you would like to extendJuNkIE, please check outJuNkIE-picasso, aJuNkIEfork that allows you to define arbitrary image processing pipelines and integrate them intoJuNkIE.SponsorsWe are grateful for the generous support from the following agencies and institutions, which contribute to the
development and maintenance ofJuNkIE:
Package: junk-organizer
junk-organizerRequirementspython>=3.0Installationpip install junk-organizerUsageOrganize a single folderfromJunkOrganizerimportOrganizerJunk=Organizer()Junk.organize('path/to/the/folder/')Outputfolder 'path/to/the/folder' has been organized!Organize multiple foldersPass a list of all folders that you want organize to the organize_more method.folders=['path/to/a/folder/','path/to/another/folder/','path/to/one_more/folder/']Junk.organize_more(folders)OutputOrganizing folders...
 folder 'path/to/a/folder' has been organized! 
 folder 'path/to/another/folder' has been organized! 
 folder 'path/to/one_more/folder' has been organized!Upcoming UpdatesOrganize more files with more extensions.And many more.
Package: junky
junky lib: Layers, datasets and utilities for PyTorchProvides a bunch of tools and utilities to use with PyTorch.ContentLayersDatasetsUtilitiesPlotterTrainerAutotrainInstallationpipjunkysupportsPython 3.5or later. To install it viapip, run:$pipinstalljunkyIf you currently have a previous version ofjunkyinstalled, use:$pipinstalljunky-UFrom SourceAlternatively, you can also installjunkyfrom source of thisgit
repository:$gitclonehttps://github.com/fostroll/junky.git
$cdjunky
$pipinstall-e.Licensejunkyis released under the BSD License. See theLICENSEfile for more
details.
Package: juno-mutekey
Juno: Python Web Framework built for learning purposesInstallationpipinstalljuno_mutekeyHow to use itBasic usage:frombumbo.apiimportAPIapp=API()@app.route("/home")defhome(request,response):response.text="Hello from the HOME page"@app.route("/hello/{name}")defgreeting(request,response,name):response.text=f"Hello,{name}"@app.route("/book")classBooksResource:defget(self,req,resp):resp.text="Books Page"defpost(self,req,resp):resp.text="Endpoint to create a book"@app.route("/template")deftemplate_handler(req,resp):resp.body=app.template("index.html",context={"name":"Bumbo","title":"Best Framework"}).encode()
Package: junon
JunonOverviewJunon is a Chatbot-like assistant on your jupyter notebook/lab.Two types of assistants are built in.Data Analytics AssistantWriting AssistantAnd, You can build your own assistant by using thejunon.assistantsmodule.Getting StartedInstallationYou can install this package from pypi.pip install junonSetupJunon usesOpenAIAPI orMicrosoft Azure OpenAIAPI to generate text.Depending on which one you use, the required environment variables are different.Please set the environment variables before the activation described below. (You need to set it before activation or importing junon package.)OpenAI API%env OPENAI_API_KEY XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXMicrosoft Azure OpenAI API%env AZURE_OPENAI_API_KEY XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
%env AZURE_OPENAI_ENDPOINT https://xxxxxxxxxxxxxxxxxxxxxxx.openai.azure.com/
%env AZURE_OPENAI_DEFAULT_MODEL xxxxxxnote:AZURE_OPENAI_DEFAULT_MODELis not the model name, but the deployment name of the model deployed on Azure.ActivationRun following magic command in your jupyter notebook/lab to activate the assistant you want to use.Data Analytics Assistant :%load_ext junon.assistants.data_analyticsWrtiting Assistant :%load_ext junon.assistants.writing_assistantUsageJunon is Chatbot-like assistant on your jupyter notebook/lab.You can use it by sending a message to the assistant.You can send a message to the assistant by executing the%%agentmagic command in a code cell of Jupyter Notebook/Lab.Example:%%agent
Hello, My assistant! 
I want to write a novel. 
Can you help me?The assistant will reply to your message.Managment ConversationYou can manage the conversation with the assistant by using some magic commands.To show the usage of the magic command, execute the following command in a code cell of Jupyter Notebook/Lab.%usageYou have to activate the assistant before using the magic command.
Package: junopass-py
# JunoPass Python SupportImplementation of [JunoPass Authentication](https://developers.junopass.com/junopass-api/authenticating-users) API in Python.## Installationpip install junopass-py –upgrade## Get access token and project idCreate an account for access token and project id -https://console.junopass.com## How to setup deviceNote the private_key must never be shared.from junopass import JunoPassjp = JunoPass(<Access-Token>, <JunoPass-Public-Key>, <Project-ID>)
private_key, public_key = jp.setup_device()## Authenticating user - step 1Submit authentication details to JunoPass. Verify signed challenge hash for authenticity.method = “EMAIL”
identifier = “testuser@example.com”valid_challenge, device_id, login_request = jp.authenticate(method, identifier, pubkey)## Verify account using challenge and OTP token - step 2Verify OTP message. Send back the user OTP plus a valid challenge obtained in step 1 i.e authenticate function. This function also checks the returned response for authenticity.resp = jp.verify(valid_challenge, device_id, prvtkey, otp=120104)
print(resp)## Run Testpython -m unittest
Package: junoplatform
junoplatformDescriptionThis is a library providing service runtime and package management cliQuick Startinstallpipinstalljunoplatformjunoclilogin first before every other subcommandsjunoclilogin<-uyour_op_user><-pyour_op_password><api>create a projectjunoclicreate<my_algo_project><PLANT><MODULE>test runjunoclirunpackagejunocli package <plant_name> <ALGO_MODULE_NAME>upload, deploy, list & status
Package: juno-python
Juno Python LibraryThe Juno Python library provides integration access to the Juno Gateway.InstallingThis lib can be found onpip. To install it, use:$ pip install juno-pythonDocumentationAPI GuideQuick Start Exampleimportjunojuno.init(client_id="CLIENT_ID_JUNO",client_secret="CLIENT_SECRET_JUNO",resource_token="RESOURCE_TOKEN_JUNO",sandbox=False,)result_charge=juno.charge.create({"charge":{"description":"Description","amount":"100.00","references":[""],"payment_types":["CREDIT_CARD"],},"billing":{"name":"Name Test","document":"00000000000",# Add a valid CPF},})ifresult_charge.is_success:result_payment=juno.payment.create({"charge_id":result_charge.charge.id,"billing":{"email":"name@test.com",# Add a valid email"address":{# Add a valid address"street":"","number":"","complement":"","neighborhood":"","city":"","state":"","post_code":"",},"delayed":False,# for capture delayed, use: "delayed": True},# if card is attached: "credit_card_details": {"credit_card_id": "id"}"credit_card_details":{"credit_card_hash":"hash"},})ifresult_payment.is_success:print(f"Success payment:{result_payment.payment.id}")else:print(result_payment.errors)else:print(result_charge.errors)List Chargesresponse=juno.charge.find_all(query_params={"created_on_start":"2022-02-13","created_on_end":"2022-02-14","order_asc":False})# You can pass the argument with keyword or not# ... charge.find_all({"created_on_start": "2022-02-13", ...})forchargeinresponse.charges:print(charge)Detail Chargeresponse=juno.charge.find_by_id("chr_1EECDF55648943D78BDFC6D852E19266")print(response.charge)Cancel Chargeresponse=juno.charge.cancelation("chr_1EECDF55648943D78BDFC6D852E19266")print(response)Capture Delayed# ...juno.payment.capture(result_payment.payment.id,{"charge_id":result_charge.charge.id})Partial Capture Delayed# ...juno.payment.capture(result_payment.payment.id,{"charge_id":result_charge.charge.id,"amount":"100.00"})Refund Paymentresponse=juno.payment.refund("pay_879D6006555C3309E4504C63B743BF59")print(response)Partial Refund Paymentresponse=juno.payment.refund("pay_879D6006555C3309E4504C63B743BF59",{"amount":"10.00"})print(response)SupportIf you have any problem or suggestion please open an issuehere.LicenseCheckhere.
Package: juno-python-nfr
Juno Python LibraryThe Juno Python library provides integration access to the Juno Gateway.InstallingThis lib can be found onpip. To install it, use:$ pip install juno-python-nfrDocumentationAPI GuideQuick Start Exampleimportjunojuno.init(client_id="CLIENT_ID_JUNO",client_secret="CLIENT_SECRET_JUNO",resource_token="RESOURCE_TOKEN_JUNO",idempotency_key="IDEMPOTENCY_KEY",# only for create pix routessandbox=False,)result_charge=juno.charge.create({"charge":{"description":"Description","amount":"100.00","references":[""],"payment_types":["CREDIT_CARD"],},"billing":{"name":"Name Test","document":"00000000000",# Add a valid CPF},})ifresult_charge.is_success:result_payment=juno.payment.create({"charge_id":result_charge.charge.id,"billing":{"email":"name@test.com",# Add a valid email"address":{# Add a valid address"street":"","number":"","complement":"","neighborhood":"","city":"","state":"","post_code":"",},"delayed":False,# for capture delayed, use: "delayed": True},# if card is attached: "credit_card_details": {"credit_card_id": "id"}"credit_card_details":{"credit_card_hash":"hash"},})ifresult_payment.is_success:print(f"Success payment:{result_payment.payment.id}")else:print(result_payment.errors)else:print(result_charge.errors)Tokenize Cardresult_card=juno.card.tokenization({"credit_card_hash":"39612e90-ae60-4fdd-a437-fcff56c41bea"})ifresult_card.is_success:print(f"Attached card id:{result_card.credit_card_id}")print(f"....{result_card.last4_card_number}({result_card.expiration_month}/{result_card.expiration_year})")else:print(result_card.errors)List Chargesresponse=juno.charge.find_all(query_params={"created_on_start":"2022-02-13","created_on_end":"2022-02-14","order_asc":False})# You can pass the argument with keyword or not# ... charge.find_all({"created_on_start": "2022-02-13", ...})forchargeinresponse.charges:print(charge)Detail Chargeresponse=juno.charge.find_by_id("chr_1EECDF55648943D78BDFC6D852E19266")print(response.charge)Cancel Chargeresponse=juno.charge.cancelation("chr_1EECDF55648943D78BDFC6D852E19266")print(response)Capture Delayed# ...juno.payment.capture(result_payment.payment.id,{"charge_id":result_charge.charge.id})Partial Capture Delayed# ...juno.payment.capture(result_payment.payment.id,{"charge_id":result_charge.charge.id,"amount":"100.00"})Refund Paymentresponse=juno.payment.refund("pay_879D6006555C3309E4504C63B743BF59")print(response)Partial Refund Paymentresponse=juno.payment.refund("pay_879D6006555C3309E4504C63B743BF59",{"amount":"10.00"})print(response)SupportIf you have any problem or suggestion please open an issuehere.LicenseCheckhere.