Saravanan666/pypi-org huggingface dataset:
Package: reportlab-pdf-table-builder
reportlab-pdf-table-builderA simple pdf table builder using the ReportLab ToolkitExample usageYou can run the example.py file to see the resultpython example.pyimportdatetimefromreportlab.libimportcolorsfromreportlab.lib.enumsimportTA_RIGHT,TA_CENTER,TA_LEFTfromreportlab.platypusimportSpacerfrompdf_table_builder.builderimportRow,Column,Grid,pfd_table_builder,ReportLabPDFBuilderdata=[Row(columns=[Column(content='<font size=10>{}</font>'.format(datetime.date.today().strftime("%d/%m/%Y")))]),Spacer(1,1),Row(columns=[Column(content='Title')]),Spacer(1,1),# Image(buff1, width=150, height=300),Row(columns=[Column(content='Panel color outside:'),Column(content='7012 Matt'),Column(content='$100',align=TA_RIGHT),Column(content='test'),Column(content='test2',grid=Grid(line_color=colors.yellow,line_width=2)),],grid=Grid(line_color=colors.blue,line_width=1),# text_color=colors.red),Row(columns=[Column(content='test2',align=TA_CENTER,background_color=colors.red,text_color=colors.blue),Column(content='Panel color outside:'),Column(content='7012 Matt'),Column(content='$100',align=TA_RIGHT,grid=Grid(line_color=colors.yellow,line_width=2)),Column(content='test',align=TA_CENTER,background_color=colors.aqua),Column(content='test2',align=TA_CENTER,background_color=colors.red,text_color=colors.white),Column(content='test2',align=TA_CENTER,background_color=colors.purple,text_color=colors.red),],align=TA_LEFT,background_color=colors.green,text_color=colors.red,),Row(columns=[Column(content='test2',align=TA_CENTER,background_color=colors.red,text_color=colors.blue),Column(content='Panel color outside:'),Column(content='7012 Matt'),Column(content='$100',align=TA_RIGHT),Column(content='test1',background_color=colors.purple),Column(content='test',align=TA_CENTER,background_color=colors.aqua,text_color=colors.yellow),Column(content='test2',align=TA_CENTER,background_color=colors.red,text_color=colors.white),],background_color=colors.green,text_color=colors.blue,grid=Grid(),),]table=pfd_table_builder(data)pdfbuilder=ReportLabPDFBuilder()pdfbuilder.add_to_story(table)pdfbuilder.save_pdf_file('a.pdf')
Package: reportlab-qrcode
reportlab-qrcodereportlab-qrcode implements a QR code flowable for the ReportLab PDF library
using theqrcode package.Installationreportlab-qrcode can be installed via pip:pip install reportlab-qrcodeUsageSimply use theQRCodeImageclass with your data. All non-recognized keyword
arguments will be passed to theqrcode.QRCodeclass from the qrcode package.from reportlab.lib.units import mm
from reportlab.pdfgen.canvas import Canvas
from reportlab_qrcode import QRCodeImage

doc = Canvas('simple.pdf')
qr = QRCodeImage('Some data here', size=30 * mm)
qr.drawOn(doc, 0, 0)
doc.showPage()
doc.save()For further examples, including setting fill and back colors, QR code size,
error correction level, as well as using the QR code as ReportLab Flowable
object, see theexamples directory.Maintenance noteThis package is considered completed. So please do not wonder if you see no
further commits. Despite the lack of new commits, this package is still
maintained, i. e., I plan to keep this package compatible with the newest
Python, qrcode and ReportLab version. If you find a bug, please open an issue
in the issue tracker.Licensereportlab-qrcode is licensed under the MIT license. See LICENSE file for
details.
Package: reportlogging
temporary logging data store, inmemory.how to usein application codefromreportloggingimportmanagerimportlogginglogger=logging.getLogger(__name__)report_logger=manager.getlogger(logger)defdo_something():report_logger("report info:%s",data)in batch scriptdefmain():fromreportloggingimportmanagermanager.activate(logging.DEBUG,format="%(message)s")do_something()manager.getvalue()# => "report info: xxxx"
Package: report-manager
Report ManagerVersion: 0.8.0Manage your reportsMerge reports based off specified columnsGenerate analysis on data setPandas profilingUsage:Short FlagLong FlagDescription-h--helpSee Usage-f--filesFile(s) to be read (Comma separated)-n--nameName of report-j--join-keysFile(s) to be read (Pipe Separated for files, Comma separated for each column)-t--typeSave as the following formats: <CSV/csv/XLSX/xlsx>-m--mergeMerge two datasets: <inner/outer/left/right/append>-p--pandas-profilingGenerate a pandas profiling report-r--reportGenerate a custom report with plotsExample:Report and Pandas Profilingreport-manager--pandas-profiling--report--files"/home/Users/Fred/usa_weather.csv"--name"USA Weather"--type"XLSX"--save-directory"/home/Users/Fred/Downloads"Mergereport-manager--merge"append"--files"/home/Users/Fred/usa_weather.csv,/home/Users/Fred/mexico_weather.csv"--name"North America Weather"--type"csv"--save-directory"/home/Users/Fred/Downloads"--join-keys"column1,column2,column3"Install InstructionsInstall Python Packagepython-mpipinstallreport-managerBuild InstructionsBuild Python Packagesudochmod+x./*.py
sudopipinstall.
pythonsetup.pybdist_wheel--universal# Test Pypitwineupload--repository-urlhttps://test.pypi.org/legacy/dist/*--verbose-u"Username"-p"Password"# Prod Pypitwineuploaddist/*--verbose-u"Username"-p"Password"
Package: report-monaco-road
Report of Monaco 2018 RacingThis module read data from 3 files, order racers by time and print report that shows the top 15 racers and the rest after underline.abbreviations.txt ->SVF_Sebastian Vettel_FERRARI
LHM_Lewis Hamilton_MERCEDES
KRF_Kimi Räikkönen_FERRARIend.log ->SVF2018-05-24_12:04:03.332
LHM2018-05-24_12:11:32.585
KRF2018-05-24_12:04:13.889start.log ->SVF2018-05-24_12:02:58.917
LHM2018-05-24_12:18:20.125
KRF2018-05-24_12:03:01.250Examples:Shows list of drivers and by asc:python3.8-mreport_monaco--filesroad_data/--ascReturn:1. Sebastian Vettel  | FERRARI  | 0:01:04.415000
2. Valtteri Bottas  | MERCEDES  | 0:01:12.434000
3. Stoffel Vandoorne  | MCLAREN RENAULT  | 0:01:12.463000
.......Shows list of drivers order by desc:python3.8-mreport_monaco--filesroad_data/--descReturn:1. Kevin Magnussen  | HAAS FERRARI  | 0:01:13.393000
2. Lance Stroll  | WILLIAMS MERCEDES  | 0:01:13.323000
3. Marcus Ericsson  | SAUBER FERRARI  | 0:01:13.265000
.......Shows statistic about driver:python3.8-mreport_monaco--filesroad_data/--driver"Kevin Magnussen"Return:1. Kevin Magnussen  | HAAS FERRARI  | 0:01:13.393000
Package: report-of-monaco-race-shinumerde
Report of Monaco 2018 RacingReport is a command-line tool that show statistic of race.UsageTo use Report, follow the instructions below:InstallationDownload package fromPyPiby following command:pip install report_of_monaco_race_shinumerde==2024.2.22Make sure you have Python installed on your machine.Running the Application:Navigate to theappdirectory:cd appRun the application using the following command:python report.py --file "data folder"python report.py --file <race_data> --ascfor ascendant sort orpython report.py --file <race_data> --descfor descendant sortAlso you can see statistic for the driver by the command belowpython report.py --file <race_data> --driver "name of driver"Examplepython report.py --file race_data "Lance Stroll"This will output:Lance Stroll │ WILLIAMS MERCEDES │ 1:13.323There are name of driver, car team and final time of race.LicenseThis project is licensed under the GNU Public License - see the LICENSE file for details.
Package: reportportal-behave-client
DescriptionThis library is Report Portal connector that allows you to integrate Report Portal with your Python Behave BDD testing frameworkYour automation framework will run just as it does now unless you choose to run with Report Portal IntegrationThe library was updated to work with Report Portal API v5+ and the reportportal-client lib v5InstallationManualClone the repositoryEnter the folder and runpip install .Using pip and pypi.orgpipinstallreportportal-behave-clientNOTE: Use version >= 1.0.3 for ReportPortal v5Sending reports to Report PortalIn order to enable the Report Portal Integration add the-D rp_enable=True:behave-Drp_enable=TrueFor step based reporting you need to also add the step based flag-D step_based=True:behave-Drp_enable=True-Dstep_based=TrueIntegrating the lib in your frameworkIn your environments.py file add the service in each method. For e.g.:defbefore_all(context):tags=', '.join([tagfortagsincontext.config.tags.andsfortagintags])attributes={# Used to label launches in Report Portal"environment":context.config.userdata.get('environment',"staging"),"version":context.config.userdata.get('version',"unknown"),}rp_enable=context.config.userdata.getbool('rp_enable',False)step_based=context.config.userdata.getbool('step_based',True)context.requested_browser=context.config.userdata.get('browser',"chrome")rp_token=os.environ.get("RP_TOKEN")add_screenshot=context.config.userdata.getbool('add_screenshot',False)launch_name=f"Execution using tags:{tags}"launch_description=f"BDD Tests for:{tags}"context.behave_integration_service=BehaveIntegrationService(rp_endpoint=rp_endpoint,rp_project=rp_project,rp_token=rp_token,rp_launch_name=launch_name,rp_launch_description=launch_description,rp_enable=rp_enable,step_based=step_based,add_screenshot=add_screenshot,verify_ssl=False)context.launch_id=context.behave_integration_service.launch_service(attributes=attributes,tags=tags)defbefore_feature(context,feature):context.feature_id=context.behave_integration_service.before_feature(feature)defbefore_scenario(context,scenario):context.scenario_id=context.behave_integration_service.before_scenario(scenario,feature_id=context.feature_id)defbefore_step(context,step):context.step_id=context.behave_integration_service.before_step(step,scenario_id=context.scenario_id)defafter_step(context,step):context.behave_integration_service.after_step(step,context.step_id)defafter_scenario(context,scenario):context.behave_integration_service.after_scenario(scenario,context.scenario_id)defafter_feature(context,feature):context.behave_integration_service.after_feature(feature,context.feature_id)defafter_all(context):context.behave_integration_service.after_all(context.launch_id)
Package: reportportal-behave-client-custom
DescriptionThis library is Report Portal connector that allows you to integrate Report Portal with your Python Behave BDD testing frameworkYour automation framework will run just as it does now unless you choose to run with Report Portal IntegrationThe library was updated to work with Report Portal API v5+ and the reportportal-client lib v5InstallationManualClone the repositoryEnter the folder and runpip install .Using pip and pypi.orgpipinstallreportportal-behave-clientNOTE: Use version >= 1.0.3 for ReportPortal v5Sending reports to Report PortalIn order to enable the Report Portal Integration add the-D rp_enable=True:behave-Drp_enable=TrueFor step based reporting you need to also add the step based flag-D step_based=True:behave-Drp_enable=True-Dstep_based=TrueIntegrating the lib in your frameworkIn your environments.py file add the service in each method. For e.g.:defbefore_all(context):tags=', '.join([tagfortagsincontext.config.tags.andsfortagintags])rp_enable=context.config.userdata.getbool('rp_enable',False)step_based=context.config.userdata.getbool('step_based',True)context.requested_browser=context.config.userdata.get('browser',"chrome")rp_token=os.environ.get("RP_TOKEN")add_screenshot=context.config.userdata.getbool('add_screenshot',False)launch_name=f"Execution using tags:{tags}"launch_description=f"BDD Tests for:{tags}"context.behave_integration_service=BehaveIntegrationService(rp_endpoint=rp_endpoint,rp_project=rp_project,rp_token=rp_token,rp_launch_name=launch_name,rp_launch_description=launch_description,rp_enable=rp_enable,step_based=step_based,add_screenshot=add_screenshot,verify_ssl=False)context.launch_id=context.behave_integration_service.launch_service(tags=tags)defbefore_feature(context,feature):context.feature_id=context.behave_integration_service.before_feature(feature)defbefore_scenario(context,scenario):context.scenario_id=context.behave_integration_service.before_scenario(scenario,feature_id=context.feature_id)defbefore_step(context,step):context.step_id=context.behave_integration_service.before_step(step,scenario_id=context.scenario_id)defafter_step(context,step):context.behave_integration_service.after_step(step,context.step_id)defafter_scenario(context,scenario):context.behave_integration_service.after_scenario(scenario,context.scenario_id)defafter_feature(context,feature):context.behave_integration_service.after_feature(feature,context.feature_id)defafter_all(context):context.behave_integration_service.after_all(context.launch_id)
Package: reportportal-client
ReportPortal python clientLibrary used only for implementors of custom listeners for ReportPortalAlready implemented listeners:PyTest FrameworkRobot FrameworkBehave FrameworkNose Framework (archived)InstallationThe latest stable version is available on PyPI:pip install reportportal-clientUsageBasic usage example:importosimportsubprocessfrommimetypesimportguess_typefromreportportal_clientimportRPClientfromreportportal_client.helpersimporttimestampendpoint="http://docker.local:8080"project="default"# You can get UUID from user profile page in the ReportPortal.api_key="1adf271d-505f-44a8-ad71-0afbdf8c83bd"launch_name="Test launch"launch_doc="Testing logging with attachment."client=RPClient(endpoint=endpoint,project=project,api_key=api_key)# Start log upload threadclient.start()# Start launch.launch=client.start_launch(name=launch_name,start_time=timestamp(),description=launch_doc)item_id=client.start_test_item(name="Test Case",description="First Test Case",start_time=timestamp(),attributes=[{"key":"key","value":"value"},{"value","tag"}],item_type="STEP",parameters={"key1":"val1","key2":"val2"})# Create text log message with INFO level.client.log(time=timestamp(),message="Hello World!",level="INFO")# Create log message with attached text output and WARN level.client.log(time=timestamp(),message="Too high memory usage!",level="WARN",attachment={"name":"free_memory.txt","data":subprocess.check_output("free -h".split()),"mime":"text/plain"})# Create log message with binary file, INFO level and custom mimetype.image="/tmp/image.png"withopen(image,"rb")asfh:attachment={"name":os.path.basename(image),"data":fh.read(),"mime":guess_type(image)[0]or"application/octet-stream"}client.log(timestamp(),"Screen shot of issue.","INFO",attachment)client.finish_test_item(item_id=item_id,end_time=timestamp(),status="PASSED")# Finish launch.client.finish_launch(end_time=timestamp())# Due to async nature of the service we need to call terminate() method which# ensures all pending requests to server are processed.# Failure to call terminate() may result in lost data.client.terminate()Send attachment (screenshots)The client usesrequestslibrary for working with RP and the same semantics
to work with attachments (data).To log an attachment you need to pass file content and metadata to ``importloggingfromreportportal_clientimportRPLogger,RPLogHandlerlogging.setLoggerClass(RPLogger)rp_logger=logging.getLogger(__name__)rp_logger.setLevel(logging.DEBUG)rp_logger.addHandler(RPLogHandler())screenshot_file_path='path/to/file.png'withopen(screenshot_file_path,"rb")asimage_file:file_data=image_file.read()# noinspection PyArgumentListrp_logger.info("Some Text Here",attachment={"name":"test_name_screenshot.png","data":file_data,"mime":"image/png"})Copyright NoticeLicensed under theApache 2.0license (see the LICENSE.txt file).
Package: report-race
OverviewThe report package provides command-line interface to get
information about Monaco Race 2019:date of the race ;start time of the race;number of the racers;report of the race;information about driver;list of all racers in the race;list of all teams in the race;list of all racers in specific team;System Requirementsreport is written for Python 3. The following
sub-versions are supported:Python 3.9Python 3.10Installpip install reportCLI Usage ExampleFor all reports--filesargument is required.--filesargument is path of directory where report files are located.
Example of the report files:abbreviations.txt(contains information about racer in a formSVF_Sebastian Vettel_FERRARI)start.log(contains Q1 start time of racers in a formSVF2018-05-24_12:02:58.917)end.log(contains Q1 finish time of racers in a formSVF2018-05-24_12:04:03.332)NOTE:Name of the files and content form should be exactly as in example.More information about usagepyhton -m report.report -hDate of the race:python -m report.report -f <path> --dateStart time of the race:python -m report.report -f <path> --timeNumber of the racers:python -m report.report -f <path> --racers-numberReport of the race:python -m report.report -f <path> --reportInformation about driver:python -m report.report -f <path> --driver <full name>List of the racers:python -m report.report -f <path> --racers <[asc, desc]>List of the teams:python -m report.report -f <path> --teams <[asc, desc]>List of the racers from specific team:python -m report.report -f <path> --team-racers <team name>NOTE:More than one argument can be passed in one time. Example:python -m report.report -f <path> --report -d -t --racers ascPackage can be used in your project:fromreport_raceimportracerace_valid=race.LogFilesValidator("path/to/directory")race=race_valid.init_race()Ande then you can use it like that:race.get_racer("name_of_the_racer")race.get_number_of_racers()
Package: report-racing
Report of Monaco 2018 RacingThis package accepts data files as input and forms the standings of the ridersGetting startedThe program receives files as input, processes them and passes them to the script.Files that the program acceptsstart = list(arguments.files.glob('start.log')).pop()
    end = list(arguments.files.glob('end.log')).pop() 
    abbreviations = list(arguments.files.glob('abbreviations.txt')).pop()Arguments for working with a scriptparser.add_argument('--files', type=pathlib.Path, required=True)
    parser.add_argument('--asc', action='store_true')
    parser.add_argument('--desc', action='store_true')
    parser.add_argument('--driver', type=str)Function parse_filesThe function reads input files, adds data to a dictionarystart, end, abbreviations - object witch is the result of parser.parse_args()Returns a dictionary with ordered data about the ridersFunction build_reportThe function reads out the lap time and sorts the riders according to it. The default is ascending time.pilots - driver data dictionaryreverse=False - default sort valueReturns an ordered list with member abbreviationsFunction print_reportForms the standings, taking into account the conditions of the problemabbr_racer - list with riders abbreviationsReturns standings with racers
Package: reportracingtable
reportracingtable Package- package for build Monaco Racing report- usereportcommand from command lineInstallationUsing PIPpipinstallreportracingtableUsage in scriptsscript_name.pyfromreportracingtableimportmainif__name__=='__main__':data=main()Usage from command line$pythonscript_name.py--folder"/path/to/file"$pythonscript_name.py--driver"Driver Name"$pythonscript_name.py--decsTrueUsage from command line without imports$report--folder"/path/to/file"$report--driver"Driver Name"$report--string--decsTrueLicensereportracingtableis licensed (MIT license).
Package: report-racing-vasiliy
Report of Monaco 2018 RacingThis project creates a Monaco 2018 race report by processing data from
the start and finish log files,as well as the drivers' abbreviation file.
The report can be sorted by drivers, and also allows you to print the data of a particular driver.SetupYou needpython>3.10to run this script.Install this package:pip install report-racing-vasiliy==0.0.1UsageTo generate a report, run the following command:pythonreport.py--files<folder_path>--desc(--asc,defaul)--driver<driver_name>The--filesoption is required and should be followed by the path to the folder containing the data files.The--descoption is optional for descending order, and the default value is--asc.The--driveroption is optional and accepts a specific driver name to print data for.Data filesThe data files  format:Start log file  format:<driver abbreviation><YYYY-MM-DD_HH:MM:SS.sss>.
End log file  format:<driver abbreviation> <YYYY-MM-DD_HH:MM:SS.sss>.
The abbreviations file format:<driver abbreviation> <driver_name>_<team_name>.OutputThe report will be printed in the  format:<driver_name>|<team_name>|<race_time>ExampleFor example, to  report sorted in descending order for a specific driver 'Hamilton', you would run:pythonreport.py--files"C:\data"--desc--driver'Sebastian Vettel'
Package: reportree
ReporTree: Nested HTML reports for MatplotlibReporTree produces nested static HTML reports with buttons to navigate through many matplotlib plots.
The package can easily produce reports with many nested levels and hundreds of Matplotlib plots.WarningThe selection of pages in nested reports works correctly only when served from the webserver (even the Python one
works fine for local development,python -m http.server).The selection is done via Javascript and the targets are loaded on the fly. When the reports are
displayed locally, different files are considered as Cross-Origin access and the loading is blocked
by the browser. Single page reports (i.e. Leaves) work fine.This issue can be solved by using Mozilla Firefox for local browsing with changingsecurity.fileuri.strict_origin_policytofalse(inabout:config).Basic exampleimportreportreeasrtimportseabornassnsimportmatplotlib.pyplotaspltimportnumpyasnpfig1,ax1=plt.subplots()sns.lineplot(x=np.arange(10),y=np.arange(10),marker='o',ax=ax1,color='red')ax1.set_title('Upward')fig2,ax2=plt.subplots()sns.lineplot(x=np.arange(10),y=np.arange(10,0,-1),marker='o',ax=ax2,color='blue')ax2.set_title('Downward')l1=rt.Leaf([fig1,fig2],title='Leaf example')l1.save('/tmp/example1')l2=rt.Leaf(fig1,title='Only upward')l3=rt.Leaf(fig2,title='Only downward')b1=rt.Branch([l1,l2,l3],title='Branch example')b1.save('/tmp/example2')b2=rt.Branch([rt.Branch([b1,l1]),l2,l3,b1],title='Nested example')b2.save('/tmp/example3')The code produces following reports:Leaf exampleBranch exampleNested example