Saravanan666/pypi-org huggingface dataset:
Package: slick-webdriver
Website at:http://www.slickqa.com/webdriver/pythonExtensive documentation at:http://www.slickqa.com/webdriver/python/docsWebdriver wrapper for SlickQA ProjectDon’t let the name fool you, this wrapper can be used by any project.  It was written by the people who brought you
the slick project, hence the name.  This wrapper has the purpose of making the selenium interface more reliable
for tests with less, more readable code by:Wrapping all actions with log statements (using python’s builtin logging framework) that detail everything it’s doingProviding a nice readable api, making your tests readableWaiting for elements to exist (with customizable timeout) so that you don’t have toProviding a Page api that allows for easy organization of locatorsPage api allows for flat (Page -> locator) and nested (FrameworkElement -> Page -> Container -> Locator) apiNo need to instantiate every page class individually (avoiding boilerplate code)Event based api where you can add your own pre and post actions as part of standard calls (like taking a screenshot on click)more good tidbitsExample UsageWhat does a test using this fabulous framework look like?  Let me show you:from slickwd import BrowserType, Browser, Container, WebElementLocator, Find
from nose import with_setup
from nose.tools import assert_regexp_matches

# Page Classes --------------------------------------------------
class GoogleSearchPage(Container):
    Search_Query_Text_Field = WebElementLocator("Search Box", Find.by_name("q"))
    Search_Button = WebElementLocator("Search Button", Find.by_name("btnG"))

    def is_current_page(self, browser):
        return browser.exists(GoogleSearchPage.Search_Query_Text_Field, timeout=0, log=False)

class SearchResultsPage(Container):
    Results_Div = WebElementLocator("Results Div", Find.by_id("ires"))

    def is_current_page(self, browser):
        return browser.exists(SearchResultsPage.Results_Div, timeout=0, log=False)

# Tests ---------------------------------------------------------
browser = None


def s():
    global browser
    if browser is not None:
        browser.quit()
    browser = Browser(BrowserType.FIREFOX)

def cleanup():
    global browser
    if browser is not None:
        browser.quit()

@with_setup(s, cleanup)
def test_google_search():
    global browser
    browser.go_to('http://www.google.com')
    browser.wait_for_page(GoogleSearchPage)
    browser.click_and_type(GoogleSearchPage.Search_Query_Text_Field, "Slick Test Manager")
    browser.click(GoogleSearchPage.Search_Button)
    browser.wait_for_page(SearchResultsPage)
    assert_regexp_matches(browser.get_page_text(), '.*SlickQA:.*')The test is written so the code can be read, easily modified if something in the page is changed,
and allow for code reuse (page classes).  Normally page classes would be held in a different module
for better organization.  This is what is referred to in the documentation as the “static page class
model”.  There is also a different way to structure page classes that allows for nesting of containers
(page classes) to make a hierarchy and enable code completion in IDEs.
Package: slict
Dictionary that supports slices.Slict implements Mapping and accepts the[start]:[stop]index to slice tuple-keys along one or more of their dimensions.Slict can wrap any other Python Mapping and is lightweight (O(1) in space).  Try it with achest, for example.Example>>>fromslictimportSlict>>>weather=Slict({("12pm","Temperature"):15.,("12pm","Wind Speed"):12.5,...("1pm","Temperature"):15.5,("1pm","Wind Speed"):9.2})>>>temps=weather[:,"Temperature"]>>>forkintemps:...print("The temperature at{:4s}is{:f}".format(k,temps[k]))Thetemperatureat12pmis15.000000Thetemperatureat1pmis15.500000>>>noon_weather=weather["12pm",:]>>>forkinnoon_weather:...print("The{:s}is{:f}".format(k,noon_weather[k]))TheTemperatureis15.000000TheWindSpeedis12.500000Installslictis on the Python Package Index (PyPI):pip install slict
Package: slide2pdf
# slide2pdfslide2pdf is a command line tool to convert html slide presenation to portabledocument format (pdf).### Installation1. `git clone git@github.com:vengatlnx/slide2pdf.git`2. `cd slide2pdf`3. `python setup.py install`or```$ pip install slide2pdf```**Note**: Before installing this package please make sure that you have alreadyinstalled **xdotool** _else_ install xdotool using `apt-get install xdotool`.### Usage```$ slide2pdf (-u <url>) [--height=<n>] [--width=<n>]Options:-h --help                show help-u --url URL             file-url path--height=<n>             window height [default: 1600]--width=<n>              window width [default: 1200]$ slide2pdf -u "file:///path/to/file.html" -n 10```Watch Video:https://youtu.be/0KQcBa7X7zI
Package: slide-api-client
Slide API clientPython API client to utilise the lide Open Cloud or local API.UsageCloud APIimportasynciofromslideimportSlideCloud,get_slidesslide=SlideCloud(username="email@address.com",password="some-password")slides=asyncio.run(get_slides(slide=slide))print(f"Found slides:{','.join([s.device_nameforsinslides])}")Local APIimportasynciofromslideimportSlideCloud,get_slide_stateslide=SlideCloud(base_url="http://192.168.1.10",device_code="some-device-code")slide_state=asyncio.run(get_slide_state(slide=slide))print(f"Got slide state:{slide_state}")Environment variablesInstead of providing explicit values for username/password or device code, you could also set environment variables. The used environment variables are listed and described below.KeyDescriptionSLIDE_API_USERNAMEUsername when using the Slide Cloud APISLIDE_API_PASSWORDPassword when using the Slide Cloud APISLIDE_API_DEVICE_CODEDevice code when using the local Slide APIInstallationpipinstallslide-api-client
Package: slidebook-python
Work in progressslidebook-pythonOpen slidebook .sldy files in PythonTo installslidebook-pythonrequires Python >= 3.9pipinstallslidebook-pythonTo usefromsldimportSlideBooksld=SlideBook("/path/to/file.sldy")# How many acquisitionsprint(sld.number_acquisitions)# 4# How many channels in first acquisitionprint(sld.images[0].num_channels)# Get data from channel 0 of the second acquisitiondata=sld.images[1].data["ch_0"]To visualise in napariN.B. napari plugin is in developmentimportnapariimportnumpyasnpfromsldimportSlideBooksld=SlideBook("/path/to/file.sldy")viewer=napari.Viewer()viewer.add_image((np.squeeze(sld.images[0].data["ch_0"])),name="Channel 0")viewer.add_image((np.squeeze(sld.images[0].data["ch_1"])),name="Channel 1")napari.run()By default,Slidebookwill not load image data into memory. To force this, usemmap_mode=None:sld=SlideBook("/path/to/file.sldy",mmap_mode=None)
Package: slide-captcha
slide captcha介绍一个尝试使用opencv识别滑动验证码缺口的python库免责声明本算法仅供学术和研究目的使用。作者和发布者明确禁止使用此算法进行任何非法活动或违反任何网站、服务或应用的服务条款或政策。使用此算法的任何人都应自行确保他们的行为是合法的，并遵循所有相关的法律和道德标准。作者和发布者对因使用此算法而造成的任何直接或间接损害或后果不承担任何责任。用户自行承担所有风险。本免责声明的解释权归作者和发布者所有。安装pipinstallslide-captcha```·
Package: slideception
slideceptionA Python library for creating interactive presentations in Linux terminals.RequirementsPython 3.8 or newerLinux (unless you avoid the Linux-specific stuff)UsageHere's a quick example:#!/usr/bin/env python3fromslideceptionimportdisplay_slides,ipython,slide@slidedefcontext_managers():"""Context ManagersA **context manager** is a thing that can be used in a `with` block.```python3with record_time() as timer:stuff()print(f"stuff took {timer.elapsed} seconds")```It lets you factor out pieces of code that *surround* other code."""# Now jump into an intepreter for a quick demoipython()display_slides()Presentation BoilerplateAt a minimum, you'll need to importdisplay_slidesandslideand calldisplay_slides()at the bottom of your script.#!/usr/bin/env python3fromslideceptionimportdisplay_slides,slide…display_slides()Defining Slides@slideThis decorator registers a function as a slide. The docstring of the function
becomes the slide's content, and the body of the function is executed after the
content is displayed. The docstring is parsed as CommonMark and then rendered
for display in a terminal.Helpersbash(history=None, init=None)This function starts a Bash shell which can be used to demo shell scripting
and command-line programs.Thehistoryparameter accepts a list of commands which will be preloaded
into the shell's history; this lets you simply pressUpto recall those
commands instead of typing them from scratch.Theinitparameter accepts a list of commands which will be executed
after the shell loads your.bashrcfile. This can be used tocdto a
specific directory, create files, etc.ipython()This function starts an iPython interpreter which can be used to demo Python
code.python()This function starts a Python interpreter which can be used to demo Python
code. You should definitely prefer to useipython()if possible.
Package: slidedeck
This is a repackaging of the google io 2012 slidedeck,
to be a little easier to use and more suitable for scientific
presentations.Example slides:http://cdn.rawgit.com/rmcgibbo/slidedeck-example/master/index.htmlYou edit and author your entire presentation in markdown. All the metadata
about your presentation is set within the markdown file, including things
like the title and author. You runslidedeck createto make a new deck.
This will create a new directory with your project. In particular, there will
be a fine in there called slides.md that contains the markdown source for
your slides.slidedeck renderwill render your deck from markdown to html5.slidedeck watchwill watch your project and rerender the slides whenever
you change the content (useful for iterative development).
Package: slidedown
SlidedownDo you ✍️ Slides?Do you 😠 PowerPoint?Do you ❤️ Markdown?You're in Luck!Turn markdown like this:# Step 1Create an awesome slide deck.# Step 2Present it to awesome people.# Step 3Profit?Into slides like this:How?InstallslidedownwithpippipinstallslidedownStart presenting your markdown filesslidedownREADME.mdOpen up your browserhttp://localhost:5678/client/index.htmlInteractive ElementsYou can embed interactive views into your slides usingIDOM,
by adding an HTML element into your markup with an attribute of the formdata-idom="your_script.py"whereyour_script.pyshould be placed in the same
directory thatslidedownwas invoked and must contains a functionMain()ormain()that returns an IDOM element or a VDOM dict. All otherdata-attributes will be
interpreted as parameters to pass to that function.IDOM in Slidedown ExampleThe following markup:# Hello IDOM!<span data-idom="hello" data-greeting="hello" />and a scripthello.pycontaining:importidom@idom.componentdefMain(greeting:str):hi_count,set_hi_count=idom.hooks.use_state(1)returnidom.html.button({"onClick":lambdaevent:set_hi_count(hi_count+1)},f"IDOM said{greeting}{hi_count}time(s)",)Should produce the following output:Config FileSlidedown supports aslidedown.jsonconfig file that can be placed adjacent to your
Markdown in order to configure the options used when running. The available options
match those seen in the help message (slidedown --help) except with all usages of-replaced with_. For example:{"host":"127.0.0.1","no_browser":true,"no_reload":false,"port":5678,"reload_delay":3.0,"reload_ignore":["ignore-dir/*"],"reload_watch":["watch-dir/*"],"show_options":false,"start_slide":0}
Package: slide-extractor
slide-extractorAn easy tool to extract slides from presentations ( lectures ðŸ˜‰ )Usageslide-extractor -p <path> -s <number> -d <number>orslide-extractor -u <youtube url> -s <number> -d <number>Flags-p or --path: Provides the path for the video file( * required)-u or --url: Specifies the url of youtube video you want to get the slides of (Note :Use either -p or -u. If both are given, -p will be preferred)-c or --coor: Specifies the coordinates you want to compare before capturing slides. (Useful when the speaker is also in the frame), See here for how to pass this parameter-s or --skip: Provides the skip seconds for the video.( Captures the video's frames at interval of specified value )-d or --diff: Specifies the difference level between current and previous slide ( a slide is included iff the difference is higher than the specified value)-h or --help: Help MenuTry adjusting thediffvalue if you think all slides aren't being captured or too many slides are being captured.Too Lowdiffvalue will make the extractor captures slides even with slight difference.Too  Highdiffvalue might make the extractor skip certain slides.How to pass-cor--coorImagine this situation where you want to compare only the area (x1,y1),(x2,y2) pass it as-c [[x1,y1],[x2,y2]].You will also be shown a sample image which is being considered for the evaluation. Use it as a reference o decide the coordinates.(0,0)
-------------------------------------------
|                                         | 
|    (x1, y1)                             |
|      ------------------------           |
|      |                      |           |
|      |                      |           | 
|      |         ROI          |           |  
|      |                      |           |   
|      |                      |           |   
|      |                      |           |       
|      ------------------------           |   
|                           (x2, y2)      |    
|                                         |             
|                                         |             
|                                         |             
-------------------------------------------(frame max width,frame max height)```
Package: slidefit
slidefitFit images into slides.slidefitis a command (callable from a
terminal) to fit (a lot of) images into a deck of slides. A template
deck of slides can be used to base the fitting on.python-pptxlibrary is used to do the zipped xml hacking and the file
format typically named with the extension.pptxis what is
supported.InstallationOne could just copy the fileslidefit.pyand put it somewhere in
the PATH and manually install the dependenciespython-pptxanddocopt, but otherwise those standard methods should do,Typical install:pip install slidefitInstall from cloned repo:pip install .After the standard way of installation,slidefitshould be available
as a command:slidefit --helpslidefitwas written in python and therefore python is required.ExamplesExample1One image per slide as big as possible (7 images, 7 slides)Assuming 7 images is required:slidefit img0[1-7].pngProduced slides are saved with a default name
(slidefit-output.pptx). Use-oto name it something
different:slidefit -o example1.pptx img0[1-7].pngExisting files are not over-written.Example2Three images per slide in a row (7 images, 3 slides)Use the--matrixoption (-m1,3) to specify layout asrows,cols:slidefit -m 1,3 -o example2.pptx img0[1-7].pngExample3Three images per slide in one column on the left sideUse the--hspace(-x) to reserve some horizontal space on the
left and/or right side asleft,right:slidefit -m 3,1 -x 5,80 -o example3.pptx img0[1-7].pngThe space is given as a percentage of available space.Example4Template with a title slide and 3 more slides with headingsUse the--templateoption to specify a template slide deck. Put 4
images in a row on each slide but not the first:slidefit -t resources/pen-slides.pptx -m 1,4 -y 20,10 -p 2-4 -o example4.pptx img*.pngThe--pagesoption (-p) is used to specify what pages to put
images on.Example5Template as above, use different layout on slidesFor example a matrix 2,2 squeezed to the right on pages 2 and 4 and a
matrix 1,3 on page 3. More than one pass is required to have different
layouts on slides:slidefit -t resources/pen-slides.pptx -m 2,2 -x 65,5 -y 20,10 -p 2,4 -o tmp.pptx img0[1-4].png img0[8-9].png img1[0-1].png
slidefit -t tmp.pptx -m 1,3 -y 20,10 -p 3 -o example5.pptx img0[5-7].png
rm tmp.pptxExample6As example5 but using--forceto skip special temp filesUse the target output fileexample6.pptxas target in all passes
and as template file as necessary (once created):slidefit -t resources/pen-slides.pptx -m 2,2 -x 65,5 -y 20,10 -p 2,4 -o example6.pptx img0[1-4].png img0[8-9].png img1[0-1].png
slidefit -f -t example6.pptx -m 1,3 -y 20,10 -p 3 -o example6.pptx img0[5-7].pngUsing--forceone can overwrite an existing file.Other than adding images to slides,slidefitis not supposed to do
anything with the slides. A blank slide layout is chosen when no
template is given.Use the--helpoption to see help.
Package: slide-gpt
SlideGPTCLI tool that can be used to generate a video using ChatGPT, DALLE-2 and
FakeYou.DependenciesffmpegQuickstartTo run the cli application locally you will needffmpeginstalled. Also make
sure to export your api key.sudo apt install ffmpegcurl -sSL https://install.python-poetry.org | python3 -export OPENAI_API_KEY=sk-...export FAKEYOU_USERNAME=...export FAKEYOU_PASSWORD=...poetry installecho "Please create a presentation about sunflowers." | poetry run slide-gptmpv videos/0/video.mp4You can also change the speaker of the video using the--speakerflag with a
string taken from theFakeYouwebsite.
Package: slidercracker
slidercracker介绍滑块验证码识别软件架构软件架构说明安装教程pip安装pipinstallslidercrackerpip安装（使用阿里镜像加速）pipinstallslidercracker-ihttps://mirrors.aliyun.com/pypi/simple使用说明demoimportslidercrackertest_res=slidercracker.identify_gap_locations(background_img_url='background_img_url',slider_img_url='slider_img_url',retain=False)point_n说明这个表中每个格子的数字代表n，0代表point_0123804765注意：如果不设置图片保存位置参数，图片将保存在依赖所在位置
Package: sliders
### Installation:$ pip install sliders## text2table### Description:
Command-line tool to convert structured text data into CSV format. Currently includes built-in support for fastqc and samtools flagstat files. You can also provide a custom JSON file with instructions for parsing your text files. Text2table is a front-end tool for using the flextableparser python module.### Usage:# Convert a fastqc file into CSV format
$ text2table –schema=fastqc fastqc.data
# Write parsed CSV data to a file (1)
$ text2table –schema=fastqc fastqc.data 2>&1 > fastqc.csv
# Write parsed CSV data to a file (2)
$ text2table –schema=fastqc –output_file=out.csv fastqc.data
# Parse multiple input files
$ text2table –schema=fastqc 1_fastqc.data 2_fastqc.data
# Provide static values to be added as columns
$ text2table –schema=fastqc –output_file=out.csv –static_values=series=test,sample=A fastqc.data
# For debugging, only write log messages to the console
$ text2table –schema=fastqc 1_fastqc.data 2_fastqc.data 2>&1 >/dev/null## flextableparser### Description:
Python module for converting structred text data to CSV format.### Usage:>>> from sliders import flextableparser
>>> parser = flextableparser.FlexTableParser()
>>> parser.configure(json_file)
>>> parser.add_static_value(key, value)
>>> parser.parse_file(input_file)
>>> output = parser.parse_file(input_file)
Package: slider-task
# oTree Slider TaskAn easy to configure, ready to use slider task for oTree.This is a beta version, you can help to enhance it by submitting issues and pull requests.## Installation```bashpip3 install slider_task```In `settings.py` add `slider_task` to `INSTALLED_APPS````pythonINSTALLED_APPS = ['otree', 'slider_task']```For installing on your server, your `requirements_base.txt` should include `slider_task`.## Integrating with your experiment### `models.py`Add these two import statements at the top:```pythonfrom otree.db.models import ForeignKeyfrom slider_task.models import BaseSlider, SliderPlayer```If you want to show your sliders in multiple columns, add `slider_columns` to your `Constants````pythonclass Constants(BaseConstants):slider_columns = 3# ...```Make sure your `Player` class inherits from `SliderPlayer````pythonclass Player(SliderPlayer):pass```Add the `Slider` class, which inherits from `BaseSlider`.The foreign key assignemnt is required.```pythonclass Slider(BaseSlider):player = ForeignKey(Player)```Finally, make sure to call `prepare_sliders()` for each player when creating the session.Here you can also specify how many sliders you want to show to players as well as their minimum and maximum values which. (The defaults are num=1, min=0, max=100.)```pythonclass Subsession(BaseSubsession):def creating_session(self):for p in self.get_players():p.prepare_sliders(num=20, min=0, max=4)```### `views.py`Add these two import statements at the top:```pythonfrom .models import Sliderfrom slider_task.pages import SliderTaskPage```Let the page, which is supposed to show the slider task inherit from `SliderTaskPage` and assign the Constants and Slider objects. Don't forget to include it in the `page_sequence`.```pythonclass Sliders(SliderTaskPage):Constants = ConstantsSlider = Slider# ...page_sequence = [Sliders]```
Package: slidescore-sdk
Slide Score Python SDKThis SDK contains the client library for using API ofSlide ScoreSee thedocumentationfor moreExamplesBasic usageImport the modulesetup tokensetup URL of the Slide Score servercreate an instance of the API Clientfrom slidescore import *token="eyJ........"
url="https://slidescore.example.com/"client = APIClient(url, token)Downloading a slideDownloads a slide to the current directory ("."). Check the URL of the slide for image ID and study ID, or click Export cases button on study overview to get a list of slide IDs.studyid=1
imageid=2

client.download_slide(studyid, imageid, ".")Uploading and adding a slide to a studylocalFilePath="C:/file_to_upload.tiff"
uploadFolder="UploadTest"
serverFileName="renamedSlide.tiff"

client.upload_file(localFilePath, uploadFolder, serverFileName)
client.add_slide(studyid, uploadFolder+"/"+serverFileName)Upload answers - study resultsResults are uploaded in the same format as the download.resultsFilePath="c:/Users/User/Downloads/Study_23_06_21_11.txt"
with open(resultsFilePath, "r") as f:
    res = f.read()
client.upload_results(studyid, res)Set slide descriptionYou can use (limited) set of HTML tags in slide, case, study and module descriptions:client.update_slide_description(studyid, imageid, 'Carina Nebula: Cosmic Cliffs, Glittering Landscape of Star Birth. Image Credit: NASA, ESA, CSA, and STScI <a href="https://esawebb.org/news/weic2205/">Original</a>');Make a request directlyThe SDK doesn't include methods for all possible calls, sometimes you need to make the API request yourself:response=clientlocal.perform_request("UpdateSlideName", {"imageId":imageid, "newName":'renamedSlide'}, method="POST")
rjson = response.json()
if 'success' not in rjson or rjson['success'] != True:
    raise SlideScoreErrorException("Failed updating slide name: " + response.text);
Package: slideshare
Introduction=============Lean and complete SlideShare_ API Implementation.Usage----->>> import slideshare>>> API_KEY = 'ABC' #You have to provide your own valid key here>>> SHARED_SECRET = 'DEFG' #You have to provide your own valid secret here>>> api = slideshare.SlideshareAPI(API_KEY,SHARED_SECRET)>>> help(slideshare.SlideshareAPI)>>> sl_id = '21834196'>>> api.get_slideshow(slideshow_id=sl_id)For more examples please refer to the tests_Methods--------- add_favorite- check_favorite- delete_slideshow- edit_slideshow- get_slideshow- get_slideshow_by_group (untested)- get_slideshows_by_tag- get_slideshows_by_user- get_user_campaign_leads (untested)- get_user_campaigns- get_user_contacts- get_user_favorites- get_user_groups (raises HTTPError: HTTP Error 500: Internal Server Error)- get_user_leads- get_user_tags- search_slideshows- upload_slideshowTesting--------You need to create a file secret.py which has the content::# DO NOT check these into gitAPI_KEY = 'your api key'SHARED_SECRET = 'your shared secret'USERNAME = 'your username'PASSWORD = 'your password'You have to fill in the values of your slideshare account. Then you canrun the tests with::python setup.py testSome tests assume a slideshow_id you have to be able to edit or delete,you will have to change these values otherwise the tests will fail.Links------ Code repository: https://github.com/cleder/slideshare- Report bugs at: https://github.com/cleder/slideshare/issues- Questions and comments to: http://groups.google.com/group/slideshare-developers.. _tests: https://github.com/cleder/slideshare/blob/master/slideshare/test_main.py.. _SlideShare: http://www.slideshare.net/