Saravanan666/pypi-org huggingface dataset:
Package: cap-from-youtube-opts
cap_from_youtubeGet an OpenCV video capture from an YouTube video URL + ydl_optsWhypafy is widely used to get the video URL from a YouTube video URL, but since it uses youtube-dl which has not been updated recently, it suffers from some issues (dislike_count not found...).This repository is a simplified version of what pafy does, by just getting the url of the video and creating an OpenCV video capture from it.It uses YT-DLP (https://github.com/yt-dlp/yt-dlp), which is a fork of youtube-dl that is updated frequently.RequirementYT-DLPOpenCVNumPyInstallationThe easiest way is to install it with pip:pipinstallcap_from_youtubeYou can also install it from GitHub:pipinstallgit+https://github.com/ibaiGorordo/cap_from_youtubeUsagecap_from_youtube()cap_from_youtube()is the main function to obtain a video capture from a YouTube video URL.It requires the video URL as input and returns acv2.VideoCaptureobject.By default, it returns the video with the highest resolution available.You can specify the resolution you want to get with theresolutionparameter.Resolution examples: '144p', '240p', '360p', '480p', '720p', '1080p', '1440p', '2160p', 'best'Example:importcv2fromcap_from_youtubeimportcap_from_youtubeyoutube_url='https://youtu.be/LXb3EKWsInQ'cap=cap_from_youtube(youtube_url,'1440p60')cv2.namedWindow('video',cv2.WINDOW_NORMAL)whileTrue:ret,frame=cap.read()ifnotret:breakcv2.imshow('video',frame)ifcv2.waitKey(1)&0xFF==ord('q'):breaklist_video_streams()You can also use thelist_video_streams()function to get the list of available video streams.It requires the video URL as input and returns two values:streams: a list of VideoStream with the information of the available video streams.resolutions: a NumPy array with the available resolutions.Example:fromcap_from_youtubeimportlist_video_streamsyoutube_url='https://youtu.be/LXb3EKWsInQ'streams,resolutions=list_video_streams(youtube_url)forstreaminstreams:print(stream)Referencespafy:https://github.com/mps-youtube/pafyyt-dlp:https://github.com/yt-dlp/yt-dlpimread_from_url:https://github.com/Kazuhito00/imread_from_url
Package: c-apidocs
c-apidocsAPI Documentation UtilitiesThis project provides utilities to generate API documentation for C libraries,
as well as project documentation.ProjectWebsite:https://c-util.github.io/c-apidocsBug Tracker:https://github.com/c-util/c-apidocs/issuesRequirementsThe requirements for this project are:hawkmoth >= 0.7python >= 3.8Repository:web:https://github.com/c-util/c-apidocshttps:https://github.com/c-util/c-apidocs.gitssh:git@github.com:c-util/c-apidocs.gitLicense:Apache-2.0ORLGPL-2.1-or-laterSee AUTHORS file for details.
Package: capisce
capisce: The Open-Source API Testing Toolcapisceis an easy-to-use testing platform for APIs. For now we have the following features:Make GET, HEAD, POST, PUT, DELETE, OPTIONS and PATCH requestsDisplay response/request dataCreate previews for response body with content types such as text, image, video, audio, etc.See your history of requestsSwitch between requests from the history and show up their dataDownload response body according to the associated MIME typesPyPIhttps://pypi.org/project/capisce/Installationpip install capisceQuickstartThe package provides a command-line tool namedcapisce, which runs a local web server athttp://127.0.0.1:5000/. Normally, the tool is configured to open up the webpage automatically.However, if you want to use an online instance, check out the following website:https://capisce.buzl.uk/Screenshots
Package: capital
CAPITALAlignment of single-cell trajectory treesLast updated: 2022-03-22We present CAPITAL, a computational method for comparing pseudotime trajectories with tree alignment whereby trajectories including branches can be automatically compared.InstallationCAPITAL (ver. 1.1.1) in PythonRequirementsPython>=3.8 (Minicondais recommended)anndata>=0.7.4graphtoolsgraphvizh5py>=2.10leidenalgmagic-imputematplotlib==3.5.2networkx<=2.8.3pandas>=0.21pydotscanpy==1.9.1scikit-learnscipy>=1.4scpreptslearnInstall on Linux, Windows (WSL) and macOSCreate a new environment for CAPITAL (recommended):conda create -n capital python=3.9 graphvizNext, activate the environment and pull CAPITAL from PyPI:conda activate capitalpip install capitalUsageRead thedocumentation. CAPITAL uses a single-cell analysis toolkitScanpyin its implementation so that one can also use Scanpy's useful functions including preprocessing, plotting and datasets in the CAPITAL environment.Code OceanWe also provide a Code Oceancompute capsuleto reproduce our results.ReferenceReiichi Sugihara, Yuki Kato, Tomoya Mori and Yukio Kawahara,Alignment of single-cell trajectory trees with CAPITAL,Nature Communications, vol. 13, 5972, 2022.[Link]If you have any questions, please contactYuki Kato.Graduate School of Medicine, Osaka University, Japan.
Package: capitalcom-python
Welcome to unofficial Python wrapper for the Capital.com exchange REST API v1. Use at your own risk.The Capital.com API allows direct access to the latest version of our trading engine.--- General informationBase URL:https://api-capital.backend-capital.com/Base demo URL:https://demo-api-capital.backend-capital.com/In order to use the endpoints a session should be launched. This can be done using the POST /session endpoint. Session is active for 10 minutes. In case your inactivity is longer than this period then an error will occur upon next request. The API covers the full range of available instruments, licences and trading functionality. Getting started--- To use the API the following simple steps should be taken:Create a trading account Note that a demo account can be used. Turn on Two-Factor Authentication (2FA) 2FA should be turned on prior to API key generation. Instruction for 2FA enabling. Generate an API key To generate the API key, go to Settings > API integrations > Generate new key. There you will need to enter the label of the key, set an optional expiration date, enter the 2FA code and that’s it. You are all set! Authentication--- How to start new session?There are 2 ways to start the session:Using your API key, login and password details.
Using your API key, login and encrypted password details.
-- Using your API key, login and password detailsHere you should simply use the POST /session endpoint and mention the received in the platform’s Settings API key in the X-CAP-API-KEY header, login and password info in the identifier and password parameters. The value of the encryptionKey parameter should be false.-- Using your API key, login and encrypted password detailsFirst of all you should use the GET /session/encryptionKey and mention the generated in the platform’s Settings API key in the X-CAP-API-KEY header. As a response you will receive the encryptionKey and timeStamp parameters; Using the received encryptionKey and timeStamp parameters you should encrypt your password using the AES encryption method.Go to the POST /session endpoint, set true value for the encryptionKey parameter and mention the received in the platform’s Settings API key in the X-CAP-API-KEY header, login and prior encrypted password info in the identifier and password parameters--- After starting the sessionOn starting the session you will receive the CST and X-SECURITY-TOKEN parameters in the response headers. CST is an authorization token, X-SECURITY-TOKEN shows which financial account is used for the trades. These headers should be passed on subsequent requests to the API. Both tokens are valid for 10 minutes after the last use.
Package: capital-gains
capital-gainsCapital gains calculator.This transforms transaction histories into a format suitable forIRS form
8949, taking care of wash sale
adjustments.Note: The logic is ignorant of share type, and cannot account for e.g. bargain
elements for ESPP, ISO, and NSO. You must enter the appropriate cost basis
depending on your situation, e.g. the fair market value on exercise date for
ESPP disqualifying dispositions.See alsonkouevda/estimated-taxes.Installationpip install capital-gainsOr:brew install nkouevda/nkouevda/capital-gainsUsageusage: capital-gains [<options>] [--] <input file>

Capital gains calculator

optional arguments:
  -h, --help            show this help message and exit
  -d <n>, --decimal-places <n>
                        round $ to <n> decimal places (default: 0)
  -s <n>, --shares-decimal-places <n>
                        round shares to <n> decimal places (default: 0)
  -t, --totals          output totals
  -v, --verbose         verbose output
  -V, --version         show program's version number and exit
  -w, --wash-sales, --no-wash-sales
                        identify wash sales and adjust cost basis (default: True)Input FormatSeeinput/example.csv.Each entry has the following format:date,symbol,name,shares,price,feeBuys have positiveshares; sells have negativeshares.priceandfeeare
always positive.feeandnameare optional. A sell without anamewill
sell all open lots FIFO; a sell with anamewill only sell lots with the samename. Thusnamecan be used to specify sell orders other than FIFO.Examplescapital-gains -t input/example.csv > output/example.txtTODOSTCG vs. LTCGLicenseMIT License
Package: capitalise-delimit
capitalise-delimitA python library to capitalise words in a string based on a list of given delimiters. This is quite a niche solution butis useful when capitalising proper nouns that contain multiple different delimiting characters. An example might bedouble barreled names, e.g. wherejim-bob joeneeds to becomeJim-Bob JoePyPI build can be foundhere.InstallationInstall this library usingpip install capitalise-delimitor via PyPI, which is linked above.Get startedTo use the library, simply import and create an instance of theCapitaliseDelimitobject, which can be used to accessthis library's functionality. You will need to instantiate this class with a list of delimiters that strings using thisclass will be split by when being capitalised. Currently, the only supported functionality is thecapitalisefunction.>>>fromcapitalise_delimitimportCapitaliseDelimit>>>my_str='a sample string'>>>capitalise_space=CapitaliseDelimit([' '])>>>capitalise_space.capitalise(my_str)'A Sample String'Another example:>>>name='jim-bob joe'>>>CD_space_hyphen=CapitaliseDelimit([' ','-'])>>>CD_space_hyphen.capitalise(name)'Jim-Bob Joe'Ignore syncategorematic wordsThe library provides a defined list of words that can be ignored when capitalising the string. The current list of wordsis:uponattheoninThese words are useful mostly when capitalising place names, such asStratford-upon-Avon. Capitalising this normallywould look like>>>capitalise_hyphen=CapitaliseDelimit(['-'])>>>capitalise_hyphen.capitalise('stratford-upon-avon')'Stratford-Upon-Avon'However, if we don't want 'upon' to be capitalised, we can supplyTrueas theignore_wordsnamed parameter>>>capitalise_hyphen.capitalise('stratford-upon-avon',ignore_words=True)'Stratford-upon-Avon'If the predefined list of words does not fully suit your needs, you can add a custom list of words usingthecustom_ignore_wordsparameter. Note that this can be used on its own to define a purely custom list, or inconjunction withignore_wordsif you simply want to add some extra words on top of the existing list.Please also note that when passing a custom list of words, this is saved and used for future capitalisations called onthat instance. The custom list must therefore be kept attention of, and can be updated upon every call ofcapitalise(). To reset the custom list, simply pass in an empty list or set when you next call.capitalise(). Thevalue provided forignore_wordsis also remembered, so if you supply the valueTruewhen invoking.capitalise(),all following capitalisation using the same class instance will run withignore_words=Trueuntil it is manuallyset back toFalse.FootnoteThis is my first publicly available python package, so please forgive any naïve mistakes. In fact, if you can bebothered taking the time to let me know, I am more than happy to take on any constructive criticism.I do plan on adding features once I think of some that may be relevant. Any feature suggestions are more than welcome.Thanks for checking out my package :)
Package: capitalizr
capitalizr- It’s a utility that lets you change the case(lowercase to
uppercase the letter of the words)words in a file, leaving the words which
have 3 or less letters. The file looks pretty if it has all words in
capitalcase in it.why not sed?because capitalizr is easy to use, just damn simplesed doesn’t takes input from stdin, it just works on piping.InstallThe one and only requirement is Python, if you are on any variant of UNIX(e.g. Linux, *BSD, Mac etc)then you have a good luck, elsedownloadit.
The simplest installation (for UNIX) isdownload/clone the archive, extract
itcdto it and run the setup:$ pip install capitalizrRefer toINSTALLfile for more instruction related to installation.UsagesAfter following the instructions inINSTALLfile, you should be able
to typecapitalizrin terminal. Type capitalizr followed by the filename
and the output will be on the screen:$ capitalizr inputfile.txtPipe input to it:$ cat inputfile.txt | capitalizr -Input fromstdin:$ capitalizr -
the quick brown fox jumps over the lazy dog
^D
the Quick Brown fox Jumps Over the Lazy dogYou can write the output into file by passing-ofollowed by output filename,
and the output will be on a file named outputfile.txt:$ capitalizr inputfile.txt -o outputfile.txtOverride the default length of words to be escaped. The default it 3:$ capitalizr -t 1 inputfile.txtBugs? Suggestions? Questions?Questions approaching in your mind? Found any bugs? Have any suggestions?
Don’t hesitate to post it at:https://github.com/santosh/capitalizr/issuesTo doThese might seem silly ;) Here are implementation I want, priority wise:Android AppImplement GUIPut it in repository list of Ubuntu, Fedora etc.Deployment with Debian package and Windows installer.~~Manual page (And the installation of it)~~ ✔See also thesandboxbranch of the repository.ContributorsFeel free to contribute, just fork, clone, do your changes, push and send me
a pull request.Here are the contributors:santosh
Package: capivara
Capivara.py (not available for use yet)Generates & Obtain DOM (Document Object Model)Capivara is a library that allows your python obtain the DOM from webpages. Being a excelent tool to test client-side behavior.InstallationCustom Requirement: [Phantomjs binary package installed](http://phantomjs.org/download.html)To install Capivara, simply run:$pipinstallcapivaraUsage<divclass="container main">You shall not pass!!</div>importcapivaradocument=capivara.init(port=8012)# default = 8000element=document.querySelector('.container')assert.equal(element.className,"container main")# trueassert.equal(element.textContext,"You shall not pass!!")# trueAvailable MethodsquerySelectorReturns the first element that is a descendant of the element on which it is invoked that matches the specified group of selectors.element=document.querySelector('.container')NotesThe capivara is unable to deliver all the properties of the element.However he can deliver the following properties:style,classList,textContext,baseURI,className,clientHeight,clientLeft,clientTop,clientWidth,firstChild,title,string,tagName,tabIndex,outerHTML,localeString,localName,dir,scrollLeft,scrollHeight,scrollWidth,scrollTopRoadmapRead element propeties after a specified eventSupportaddEventListenermethodSupport elements methods (likeelement.classList.add,element.innerHTML)ContributingWant to contribute? Read the CONTRIBUTING.md.License
Package: caplena
Caplena Python LibraryThe Caplena Python library provides convenient access to the Caplena REST API from applications written in the Python programming language.DocumentationTo learn more about what you can use Caplena for and for how to create your own API key, please seeour main website.To learn more about the REST API that constitutes the basis for this project, take a look at ourREST API docs.To view the Python API docs and refernces, head over to ourSDK documentation.InstallationMinimum VersionWe recommend using the latest version of Python. Caplena supports Python 3.8 and newer.DependenciesThe following distributions will be installed automatically when installing Caplena.Requestsis an elegant and simple HTTP library for Python.Typing Extensionsenables use of new type system features on older Python versions.Installing CaplenaWithin your Python environment of choice, use the following command to install Caplena:$pipinstallcaplenaCaplena is now installed.DevelopmentTo usecaplena-pythonin a development environment, we recommend you to set up a development virtualenv. Once done, you
can run the following command to install all required dependencies:makeinstallRun all tests:maketestRun all tests in watch mode:maketest-watchRun the formatter:makefmtRun the linter:makelintBuild the Sphinx SDK docs:makebuild-docsThe Sphinx generated documentation is automatically generated and uploaded to ourdeveloper documentation portal, using Github Actions.Build the Python package:makebuild-sdkPublish the Python package:makepublish-sdkShow all supported commands:makehelp
Package: caplit-cl-nt
coreapps-compatibility-layer介绍CoreApps 多平台兼容层，包括CoreApps Platform的主要API，以及部分软件包的API软件架构主软件包名为live_api.安装教程!如果您已安装CoreApps Platform 2022 LTS(而非DEV版！),那么您的Python中应该已自动安装了caplit-cl.可用pip list(不同平台可能不同)检查.

打开终端,在检查好已安装pip后,使用pip安装caplit-cl-[平台名称*]

*windows请输入nt,linux/macOS请输入linux参与贡献如果您的软件需要使用capilt-cl进行不同平台兼容，请将api(而非主程序)提交Puul Request,通过后方可上架MoraStore.
Package: caplot
# Cohort Analysis Plot (caplot)caplotis built to facilitate the visualisation of cohort analysis results.
caplot is built on top of [bokeh](https://bokeh.org/) and utilise all its interactive features.
caplot offers the following feature:
- Easily connect to various data sources including SQL, tabular files and pandas data frame.
- Explore data and customising the plot without coding and through a web form.
- Filter and highlight data using SQL queries as well as user-defined forms.
- Connect to variant annotation database and extract annotation for significant variants in manhattan plot.Currently, caplot offer PCA and Manhattan plot.
The examples folder include sample data as well as example Jupyter notebooks to show how these plots.
Looking at these examples is perhaps the easiest way to learn about caplot and all its features.To learn more about provided sample data see [SampleData.md](examples/data/SampleData.md)
[pca.ipynb](exmpales/pca.ipynb) is our PCA example notebook.
[manhattan.ipynb](exmpales/manhattan.ipynb) is our Manhattan example notebook## Installation`bash pip install caplot `In case you install caplot in the conda environemtn you may need to install requiered packages (and jupyter notebook) using conda.
Othere wise theSaveAsfunction may not work.
Package: capmoe
CapMoe======.. image:: https://pypip.in/v/capmoe/badge.png:target: https://pypi.python.org/pypi/capmoe:alt: Latest PyPI versionCapMoe - Cap Beer cap image search, CLI tools and APIs.. contents:: :local:Installation------------.. code-block:: bash$ pip install capmoeRequirements############Packages required to invoke `capmoe.api` functions areautomatically installed via `pip`.Following packages are required run CLI tools.- scipy- numpy- cv2Author------Sho Nakatani <lay.sakura@gmail.com>License-------Not determined yet.
Package: capmonstercloudclient
Zennolab.CapMonsterCloud.ClientOfficial python client library forcapmonster.cloudcaptcha recognition serviceInstallationpython3 -m pip install capmonstercloudclientUsageimport asyncio

from capmonstercloudclient import CapMonsterClient, ClientOptions
from capmonstercloudclient.requests import RecaptchaV2ProxylessRequest

client_options = ClientOptions(api_key=<YOUR_API_KEY>)
cap_monster_client = CapMonsterClient(options=client_options)

async def solve_captcha():
    return await cap_monster_client.solve_captcha(recaptcha2request)

recaptcha2request = RecaptchaV2ProxylessRequest(websiteUrl="https://lessons.zennolab.com/captchas/recaptcha/v2_simple.php?level=high",
                                                websiteKey="6Lcg7CMUAAAAANphynKgn9YAgA4tQ2KI_iqRyTwd")

responses = asyncio.run(solve_captcha())
print(responses)Supported captcha recognition requests:FunCaptchaProxylessRequestFunCaptchaRequestGeeTestProxylessRequestGeeTestRequestHCaptchaProxylessRequestHCaptchaRequestImageToTextRequestRecaptchaV2ProxylessRequestRecaptchaV2RequestRecaptchaV3ProxylessRequestRecaptchaV2EnterpriseProxylessRequestRecaptchaV2EnterpriseRequestTurnstileProxylessRequestTurnstileRequestRecaptchaComplexImageTaskRequestHcaptchaComplexImageTaskRequestFunCaptchaComplexImageTaskRequest
Package: capmonster-python
Capmonster.cloud for PythonCapmonster.cloudpackage for Python3If you have any problem with usage,read the documentationorcreate an issueAt least 2x cheaper, up to 30x faster than manual recognition services.Installationpip install capmonster_pythonSupported captcha typesImage to textRecaptcha v2Recaptcha v2 EnterpriseRecaptcha v3Fun CaptchaHCaptchaGeeTestTurnstile TaskData DomeUsage examplesImageToTextfromcapmonster_pythonimportImageToTextTaskcapmonster=ImageToTextTask("API_KEY")task_id=capmonster.create_task(image_path="img.png")result=capmonster.join_task_result(task_id)print(result.get("text"))Recaptcha v2fromcapmonster_pythonimportRecaptchaV2Taskcapmonster=RecaptchaV2Task("API_KEY")task_id=capmonster.create_task("website_url","website_key")result=capmonster.join_task_result(task_id)print(result.get("gRecaptchaResponse"))Recaptcha v2 enterprisefromcapmonster_pythonimportRecaptchaV2EnterpriseTaskcapmonster=RecaptchaV2EnterpriseTask("API_KEY")task_id=capmonster.create_task("website_url","website_key",{"s":"payload value"},"api_domain")result=capmonster.join_task_result(task_id)print(result.get("gRecaptchaResponse"))GeeTestfromcapmonster_pythonimportGeeTestTaskcapmonster=GeeTestTask("API_KEY")task_id=capmonster.create_task("website_url","gt","challenge")result=capmonster.join_task_result(task_id)print(result.get("challenge"))print(result.get("seccode"))print(result.get("validate"))Report incorrect captchasfromcapmonster_pythonimportRecaptchaV2Taskcapmonster=RecaptchaV2Task("API_KEY")task_id=capmonster.create_task("website_url","website_key")result=capmonster.join_task_result(task_id)report_result=capmonster.report_incorrect_captcha("token",task_id)print(report_result)For other examples and api documentation please visitwiki