Saravanan666/pypi-org huggingface dataset:
Package: python-coveralls
This package provides a module to interface with thehttps://coveralls.ioAPI.INSTALLING THE PKGUsing pip:$ pip install python-coveralls…Or simply add it to your requirements.CONFIGURATIONIf you’re not using Travis, Coveralls for Python uses a.coveralls.ymlfile at the root level of your repository to configure options.
The only required option isrepo_token(found on your repository’s page on Coveralls) to specify which project on Coveralls your project maps to.
Another important option is isservice_namewhich allows you to specify where Coveralls should look to find additional information about your builds. This can be any string, but using travis-ci or travis-pro will allow Coveralls to fetch branch data, comment on pull requests, and more.
A.coveralls.ymlfile configured for Travis Pro:repo_token:abcdef1234569abdcefservice_name:travis-proparallel:true# if the CI is running your build in parallelif you don’t want therepo_tokenunder source control, set it in yourcoverallscommand:COVERALLS_REPO_TOKEN=abcdef1234569abdcef coverallsTRAVIS.YMLCreate a.coveragefile and you can usecoverage,pytest-cov, ornosexcover.
Then you can add in theafter_successstep:coverallsIt should look like something like:language:pythonpython:-"2.6"-"2.7"install:-pip install -e . --use-mirrorsbefore_script:-pip install -r test_requirements.txt --use-mirrors-git clone https://github.com/z4r/python-coveralls-example.git-cd python-coveralls-example-git checkout -qf 17b8119796516195527dcb4f454a2ebd41d60244-py.test example/tests.py --cov=example-cd -script:-py.test coveralls/tests.py --doctest-modules --pep8 coveralls -v --cov coveralls --cov-report term-missingafter_success:-coverallsCOVERALLS OPTIONSYou probably don’t need to configure anything, but if you customize some option ofcoverageyou would add it tocoverallstoo:$ coveralls -h
usage: coveralls [-h] [--coveralls_url COVERALLS_URL] [--base_dir BASE_DIR]
                 [--data_file DATA_FILE] [--config_file CONFIG_FILE]
                 [--coveralls_yaml COVERALLS_YAML] [--ignore-errors]
                 [--merge_file MERGE_FILE] [--nogit]

optional arguments:
  -h, --help            show this help message and exit
  --coveralls_url COVERALLS_URL, -u COVERALLS_URL
                        coveralls.io api url
  --base_dir BASE_DIR, -b BASE_DIR
                        project root directory
  --data_file DATA_FILE, -d DATA_FILE
                        coverage file name
  --config_file CONFIG_FILE, -c CONFIG_FILE
                        coverage config file name
  --coveralls_yaml COVERALLS_YAML, -y COVERALLS_YAML
                        coveralls yaml file name
  --ignore-errors, -i   ignore errors while reading source files
  --merge_file MERGE_FILE, -m MERGE_FILE
                        json file containing coverage data to be merged (for
                        merging javascript coverage)
  --nogit               do not gather git repo info
Package: python-cpl
This module can list, configure and execute CPL-based recipes from Python
(python2 and python3).  The input, calibration and output data can be
specified as FITS files or asastropy.io.fitsobjects in memory.The ESOCommon Pipeline Library(CPL) comprises a set of ISO-C libraries that provide a comprehensive,
efficient and robust software toolkit. It forms a basis for the creation of
automated astronomical data-reduction tasks. One of the features provided by
the CPL is the ability to create data-reduction algorithms that run as plugins
(dynamic libraries). These are called “recipes” and are one of the main
aspects of the CPL data-reduction development environment.
Package: pythoncpp
Welcome to PythonC++!PythonC++ is a full-scale compiler for Python.The aim of this project is to convert high-level Python code to lower-level C++ code, increasing your program's performance dramatically.In theory, PythonC++ is faster than other tools (such as PyInstaller), as it leaves no trace of a Python runtime interpreter, or libraries.The output is just plain C++ code - without any Python - so your program runs at the maximum performance!Thanks for choosing PythonC++ to simplify your projects!
Package: python-cpp-example-peresec
Python CPP ExampleTest hybrid python-cpp package (an extension module).InstructionsInstall:pip install package_nameImport the extension module:fromaesthetic_asciiimportsynthesize# initialize drive object (to generate visuals)drive=synthesize.Drive()# generate a ASCII visual (dark_mode optional)drive.generate(dark_mode=True)# save to pngdrive.to_png('aesthetic.png')Call the funk
Package: python-cptchnet
python-cptchnetБиблиотека предназначена для разрабаотчиков ПО и служит для облегчения работы с API сервиса Cptch.net.Присутствуютпримеры работы с библиотекой.Используется Python версии 3.6+.How to install? Как установить?pippipinstallpython-cptchnetSourcegithttps://github.com/AndreiDrang/python-cptch.net.gitcdpython-cptch.net
pythonsetup.pyinstallПо всем вопросам можете писать вTelegramчат.Последние обновленияv.0.1- Добавлены методы: ImageCaptcha, ReCaptchaV2.Реализованы следующие методы:1.Решение капчи-изображения.Краткий пример:frompython_cptchnetimportImageCaptcha# Введите ключ от сервиса Cptch.net, из своего аккаунтаSERVICE_KEY=""# Ссылка на изображения для расшифровкиimage_link=""# Возвращается JSON содержащий информацию для решения капчиuser_answer=ImageCaptcha.ImageCaptcha(service_key=SERVICE_KEY).captcha_handler(captcha_link=image_link)ifnotuser_answer['error']:# решение капчиprint(user_answer['captchaSolve'])print(user_answer['taskId'])elifuser_answer['error']:# Тело ошибки, если естьprint(user_answer['errorBody']['text'])print(user_answer['errorBody']['id'])2.Решение ReCaptcha v2.Краткий пример:frompython_cptchnetimportReCaptchaV2# Введите ключ от сервиса Cptch.net, из своего аккаунтаSERVICE_KEY=""# G-ReCaptcha ключ сайтаSITE_KEY=""# Ссылка на страницу с капчёйPAGE_URL=""# Возвращается JSON содержащий информацию для решения капчиuser_answer=ReCaptchaV2.ReCaptchaV2(service_key=SERVICE_KEY).captcha_handler(site_key=SITE_KEY,page_url=PAGE_URL)ifnotuser_answer['error']:# решение капчиprint(user_answer['captchaSolve'])print(user_answer['taskId'])elifuser_answer['error']:# Тело ошибки, если естьprint(user_answer['errorBody']['text'])print(user_answer['errorBody']['id'])Кроме того, для тестирования различных типов капчи предоставляетсяспециальный сайт, на котором собраны все имеющиеся типы капчи, с удобной системой тестирования ваших скриптов.Errors tableError IDОшибка-1Внутренняя ошибка (в соединении и т.п.), не относится к сервису Cptch.netError IDin.php Cptch.net код ошибки10ERROR_WRONG_USER_KEY11ERROR_KEY_DOES_NOT_EXIST12ERROR_ZERO_BALANCE13ERROR_PAGEURL14ERROR_NO_SLOT_AVAILABLE15ERROR_ZERO_CAPTCHA_FILESIZE16ERROR_TOO_BIG_CAPTCHA_FILESIZE17ERROR_WRONG_FILE_EXTENSION18ERROR_IMAGE_TYPE_NOT_SUPPORTED19ERROR_UPLOAD20ERROR_IP_NOT_ALLOWED21IP_BANNED22ERROR_BAD_TOKEN_OR_PAGEURL23ERROR_GOOGLEKEY24ERROR_CAPTCHAIMAGE_BLOCKED25MAX_USER_TURNError IDres.php Cptch.net код ошибки30CAPCHA_NOT_READY31ERROR_CAPTCHA_UNSOLVABLE32ERROR_WRONG_ID_FORMAT33ERROR_WRONG_CAPTCHA_ID34ERROR_BAD_DUPLICATES35REPORT_NOT_RECORDEDError IDNNNN Cptch.net код ошибки40ERROR: 100141ERROR: 100242ERROR: 100343ERROR: 100444ERROR: 1005
Package: python-cpuid
python-cpuidCall cpuid from Python code.This module provides C bindings to call thecpuidinstruction from Python code.
Simply pass a MSR ID and thecpuidfunction will return the result as a tuple representing
the eax, ebx, ecx and edx registers as integers.from cpuid import cpuid

msr = 0x80000000    # example value
eax, ebx, ecx, edx = cpuid(msr)CPU featuresIn addition to the rawcpuidfunctionality, this library provides helpers for commonly used
CPUID registers.from cpuid.features import prcessor_features, secure_encryption_info, vendor

vendor()   # returns the result of cpuid(0) as bytes, ex: b"GenuineIntel"
features = processor_features()    # A class with all the fields of cpuid(1)
secure_encryption_features = secure_encryption_info()   # AMD secure encryption featuresFeel free to add more CPUID registers! You can find the specification in official Intel
and AMD docs like this one:https://www.amd.com/system/files/TechDocs/24594.pdf.Why?Other projects already provide this functionality. To the best of our knowledge:PyCPUID <https://github.com/ngnpope/pycpuid>_is not compatible with Python 3.
Anopen PR <https://github.com/ngnpope/pycpuid/pull/4>_from 2015 proposes an upgrade.cpuid.py <https://github.com/flababah/cpuid.py>_looks fun, but ultimately is machine
code injection. We wanted something more auditable.NotesWe do not (yet) provide binary wheel distributions for this package, because of the added
complexity of shipping compiled libraries for Linux. You will require GCC to compile
the package for your system.This project has been set up using PyScaffold 4.3. For details and usage
information on PyScaffold seehttps://pyscaffold.org/.
Package: python-crabber
python-crabberA Python client for the Crabber.net REST API.Installationpipinstallpython-crabberDocumentationYou can find the full documentation atReadTheDocs.Usage>>>importcrabber>>>help(crabber.API)Authentication is done with developer/api keys and access tokens. You can get
both of these athttps://crabber.net/developer/. Only an API key is needed to
access Crabber's API.>>>api=crabber.API(api_key=YOUR_DEVELOPER_KEY)>>>jake=api.get_crab_by_username('jake')>>>jake<Crab@jake[1]>>>>jake.display_name'Jake L.'If you want to make actions on a user's behalf you'll need to authenticate with
an access token. Access tokens are tied to specific accounts, so if you create
an access token while logged in as '@thedude' then all applications
authenticated with that access token will act as if they are logged in as
'@thedude'.This is why it is imperative that access tokens are kept private
and not shared withanyone.>>>jake=api.get_crab_by_username('jake')>>>jake.follow()Traceback(mostrecentcalllast):File"<stdin>",line1,in<module>File"/Users/jake/code/python-crabber/crabber/models.py",line342,infollowraiseRequiresAuthenticationError(crabber.exceptions.RequiresAuthenticationError:Youarenotproperlyauthenticatedforthisrequest.>>>api.authenticate(YOUR_ACCESS_TOKEN)>>>jake.follow()True>>>api.get_current_user()injake.followersTrue>>>api.post_molt('Hello, world!')<Molt[683]>It is also possible to authenticate while intializing the API object rather than
afterwards.>>>api=crabber.API(api_key=YOUR_DEVELOPER_KEY,access_token=YOUR_ACCESS_TOKEN)>>>api.get_current_user()<Crab@thedude[85]>
Package: python-craigslist-meta
Streamline your Craigslist queries with an API that traverses url endpoints.
This library serves as an addition topycraigslistandpython-craigslist.Installationpip install python-craigslist-metaExamplesLet’s find every car and truck for sale around the world.pycraigslistis required for this example.importpycraigslistfromcraigslist_metaimportSiteforsiteinSite.all():ifsite.has_area():forareainsite:all_autos=pycraigslist.forsale.cta(site=site.key,area=area.key)forautoinall_autos.search():print(auto)else:all_autos=pycraigslist.forsale.cta(site=site.key)forautoinall_autos.search():print(auto)We could run the same search usingpython-craigslist.fromcraigslistimportCraigslistForSalefromcraigslist_metaimportSiteforsiteinSite.all():ifsite.has_area():forareainsite:all_autos=CraigslistForSale(site=site.key,area=area.key,category='cta')forautoinall_autos.get_results():print(auto)else:all_autos=CraigslistForSale(site=site.key,category='cta')forautoinall_autos.get_results():print(auto)Let’s get Craigslist urls of areas in the San Francisco Bay Area.fromcraigslist_metaimportSitesfbay=Site("sfbay")forareainsfbay:print(area.url)# https://sfbay.craigslist.org/eby/# https://sfbay.craigslist.org/nby/# https://sfbay.craigslist.org/pen/# https://sfbay.craigslist.org/sby/# ...We can also work with countries. Let’s get site keys in Germany.fromcraigslist_metaimportCountrygermany=Country("germany")forsiteingermany:print(site.key)# berlin# bremen# cologne# dresden# ...Let’s get titles of sites in Japan.fromcraigslist_metaimportCountryjapan=Country("japan")forsiteinjapan:print(site.title)# 福岡# 広島# 名古屋# 沖縄# ...Finally, we can go a step further and work with regions.fromcraigslist_metaimportRegionafrica=Region("africa")forcountryinafrica:print(country.title)# Egypt# Ethiopia# Ghana# Kenya# ...Get a list of valid keys for Region, Country, and Site by using thekeysclass attribute.fromcraigslist_metaimportSiteprint(Site.keys)# ['abbotsford', 'aberdeen', 'abilene', ... ]Similarly, get a list of children keys for Region, Country, and Site instances by using thechildrenattribute.The children heirarchy is as follows: Region –> Country –> Site –> Areafromcraigslist_metaimportCountryindia=Country("india")# print site keys in Indiaprint(india.children)# ['ahmedabad', 'bangalore', 'bhubaneswar', ... ]ContributeIssue TrackerSource CodeSupportIf you are having issues or would like to propose a new feature, please use theissues tracker.LicenseThe project is licensed under the MIT license.
Package: pythoncrc
Python libraries for CRC calculations (it supports CRC-16, CRC-32, CRC-CCITT, etc)Free software: GPLv3 licenseDocumentation:https://pycrc.readthedocs.org.FeaturesDifferent modules supported (CRC16, CRC32, CCITT, CRC16DNP, CRC16Kermit, CRC16SICK)Supports strings and hexadecimal as inputDemo file provided100% coverage by unittestsHistory1.2 (2015-03-10)Cosmetic Refactoring1.1 (2014-05-01)Migration to python 31.0 (2011-10-10)Initial launch
Package: python-crfsuite
python-crfsuite is a python binding toCRFsuite.InstallationUsingpip:pip install python-crfsuiteUsingconda:conda install -c conda-forge python-crfsuiteUsageSeedocsand anexample.See Alsosklearn-crfsuiteis a python-crfsuite wrapper which provides
API similar to scikit-learn.ContributingSource code:https://github.com/scrapinghub/python-crfsuiteIssue tracker:https://github.com/scrapinghub/python-crfsuite/issuesFeel free to submit ideas, bugs reports, pull requests or regular patches.In order to run tests, installCython(> 0.24.1)  andtox, then type./update_cpp.sh; toxfrom the source checkout.Please don’t commit generated cpp files in the same commit as other files.Authors and ContributorsOriginal authors are Terry Peng <pengtaoo@gmail.com> and
Mikhail Korobov <kmike84@gmail.com>. Many other people contributed;
some of them can be found at githubContributorspage.BundledCRFSuiteC/C++ library is by Naoaki Okazaki & contributors.Licensepython-crfsuite is licensed under MIT license.CRFsuitelibrary is licensed under BSD license.Alternativeshttps://github.com/chokkan/crfsuite/tree/master/swig/python- official
Python wrapper, exposes C++ API using SWIG.https://github.com/jakevdp/pyCRFsuite- uses C API instead of C++ API;
allows to use scipy sparse matrices as an input. At the time of writing
it is unmaintained.https://github.com/bosondata/crfsuite-rs- uses a Rust wrapper with CFFI instead of C++ API;
allows to tag with GIL released for better performance.This package (python-crfsuite) wraps CRFsuite C++ API using Cython.
It is faster than official SWIG wrapper and has a simpler codebase than
a more advanced pyCRFsuite. python-crfsuite works in Python 2 and Python 3,
doesn’t have external dependencies (CRFsuite is bundled, numpy/scipy stack
is not needed) and workarounds some of the issues with C++ CRFsuite library.
Package: python-crfsuite-extension
python-crfsuite is a python binding toCRFsuite.InstallationUsingpip:pip install python-crfsuiteUsingconda:conda install -c conda-forge python-crfsuiteUsageSeedocsand anexample.See Alsosklearn-crfsuiteis a python-crfsuite wrapper which provides
API similar to scikit-learn.ContributingSource code:https://github.com/scrapinghub/python-crfsuiteIssue tracker:https://github.com/scrapinghub/python-crfsuite/issuesFeel free to submit ideas, bugs reports, pull requests or regular patches.In order to run tests, installCython(> 0.24.1)  andtox, then type./update_cpp.sh; toxfrom the source checkout.Please don’t commit generated cpp files in the same commit as other files.Authors and ContributorsOriginal authors are Terry Peng <pengtaoo@gmail.com> and
Mikhail Korobov <kmike84@gmail.com>. Many other people contributed;
some of them can be found at githubContributorspage.BundledCRFSuiteC/C++ library is by Naoaki Okazaki & contributors.Licensepython-crfsuite is licensed under MIT license.CRFsuitelibrary is licensed under BSD license.Alternativeshttps://github.com/chokkan/crfsuite/tree/master/swig/python- official
Python wrapper, exposes C++ API using SWIG.https://github.com/jakevdp/pyCRFsuite- uses C API instead of C++ API;
allows to use scipy sparse matrices as an input. At the time of writing
it is unmaintained.This package (python-crfsuite) wraps CRFsuite C++ API using Cython.
It is faster than official SWIG wrapper and has a simpler codebase than
a more advanced pyCRFsuite. python-crfsuite works in Python 2 and Python 3,
doesn’t have external dependencies (CRFsuite is bundled, numpy/scipy stack
is not needed) and workarounds some of the issues with C++ CRFsuite library.
Package: python-crfsuite-openmp
python-crfsuite-open is fork of python-crfsuite with OpenMP support enabled, a (Even more) FAST sequential taggerChangeLog1.0.1 - Heavly penalize Unseen transitions1.0.0 - OpenMP support. Utilize all CPU cores during trainingInstallationUsingpip:pip install python-crfsuite-openmpUsageSeedocsand anexample.See Alsosklearn-crfsuiteis a python-crfsuite wrapper which provides
API similar to scikit-learn.ContributingSource code:https://github.com/scrapinghub/python-crfsuiteIssue tracker:https://github.com/scrapinghub/python-crfsuite/issuesFeel free to submit ideas, bugs reports, pull requests or regular patches.In order to run tests, installCython(> 0.24.1)  andtox, then type./update_cpp.sh; toxfrom the source checkout.Please don’t commit generated cpp files in the same commit as other files.Authors and ContributorsOriginal authors are Terry Peng <pengtaoo@gmail.com> and
Mikhail Korobov <kmike84@gmail.com>. Many other people contributed;
some of them can be found at githubContributorspage.BundledCRFSuiteC/C++ library is by Naoaki Okazaki & contributors.Licensepython-crfsuite-openmp is licensed under MIT license.CRFsuitelibrary is licensed under BSD license.
Package: python-cricket-scraper
python-cricket-scraperpython-cricket-scraper is built to get cricket data fromCricsheetandESPNCricInfoInstallationUse the package managerpipto install python-cricket-scraper.pip3installpython-cricket-scraperUsageCricSheet files1. using single filefromcricscraper.cricsheetimportCricSheetsheet=CricSheet(files=["647261.yaml"])sheet.save()2. using multiple filesfromcricscraper.cricsheetimportCricSheetsheets=CricSheet(files=["647261.yaml","792295.yaml","1122727.yaml"])sheets.save()3. using files in a folderfromcricscraper.cricsheetimportCricSheetsheets=CricSheet(folder="folder/")sheets.save()save()method saves the CSV file, containing columns(mentioned ahead).Notice thatfilesparameter takes list, whereasfoldertakes name of folder as a string.Using CricInfo classCricInfo class takes match id to scrape the data.Q.Where can I get match id?A.Google any cricket match you want. Visit Espncricinfo and get match id from url(highlighted number).647261in this casefromcricscraper.cricinfoimportCricInfomatch=CricInfo("647261")match.match_name()match.match_dates()match.playing11()match.summary()match.scorecard()There are many more methods in CricInfo class. I'll encourage you to check other methods usinghelp(CricInfo)Using CricSheet & CricInfo class togetherfromcricscraper.cricsheetimportCricSheetsheet=CricSheet(files=["647261.yaml","792295.yaml"])data=sheet.get_more_info()get_more_info()returns dictionary ofCricInfoobject, match id as keyColumns of CSV filematch id- match id of the match as per ESPNCricInfo records.inning- Inning number.delivery- delivery number.over- Over number.batsman- batsman on strike.non striker- batsman on non-strike.bowler- Bowler.runs off bat- runs scored by batsman on particular delivery.extras- Extra runs of particular delivery.total- team total until particular delivery.extra kind- extra kind (byes, legbyes, widea or no ball)wicket kind- wicket kind (caught, bowled or lbw etc)player out- Player dismissed.fielders- Fielders involved in the wicket(caught, stumping etc).team1- Playing team1.team2- Playing team2.outcome- Match outcome type (normal - team1 or team2 won, draw - Match Drawn etc)winner- Match winnerby- win by runs, wickets or innings (India won by 6 wickets, then by = wickets)win amount- Margin of victory (India won by 6 wickets, then win amount = 6)player of match- Player of match.toss winner- Toss winner.toss decision- Chosen bat or bowl.match type- Match format(ODI, ODM, TEST etc)venue- Venue.city- City of venue.gender- Male or female.umpire1- Standing umpire 1umpire2- Standing umpire 2ContributingPull requestsare welcome. For major changes, please open an issue first to discuss what you would like to change.LicenseMIT
Package: python-crisp
python-crisp-api🐍 Crisp API Python Wrapper.Unofficial Crisp API Python wrapper. Use Python code to authenticate, send messages, get conversations, and access your proxy account.😘 Official Repository:python-crisp-api📝 Implements:Crisp Platform - API ~ v1at reference revision: 12/31/2017UsageInstall the library:pipinstallpython-crispThen, import it:frompython_crispimportCrispConstruct a new authenticated Crisp client with youridentifierandkeytokens.client=Crisp()client.authenticate(identifier,key)Then, your client is ready to be consumed!AuthenticationTo authenticate against the API, generate your session identifier and session keyonceusing theCrisp token generation utility. You'll get a token keypair made of 2 values.Keep your token keypair values private, and store them safely for long-term use.Then, add authentication parameters to yourclientinstance right after you create it:client=Crisp()# Make sure to use the correct tier if you are authenticating a plugin# eg. with a permanent token generated from Crisp Marketplaceclient.set_tier("plugin")# Authenticate to API (identifier, key)# eg. client.authenticate("13937834-f6ce-4556-ae4f-9e0c54faf038", "eb6c3623245521d7a6c35f5b29f3fa756e893f034ed551d84518961c5ff16dec")client.authenticate(identifier,key)# Now, you can use authenticated API sections.🔴 Important: Make sure to generate your token once, and use the same token keys in all your subsequent requests to the API. Do not generate too many tokens, as we may invalidate your older tokens to make room for newer tokens.Resource MethodsMost useful available Crisp API resources are implemented.Programmatic methods names are named after their label name in theAPI Reference.Thus, it is straightforward to look for them in the library while reading theAPI Reference.In the following method prototypes,crispis to be replaced with your Crisp API instance. For example, instanciateclient = Crisp()and then call eg:client.website.list_conversations(website_id, 1).When calling a method that writes data to the API (eg. send a message with:client.website.send_message_in_conversation()), you need to submit it this way:website_id="88972681-a00c-4b3b-a383-cab281636484"session_id="session_9df2a21e-f113-41d4-8ed2-bad8b49cafd1"client.website.send_message_in_conversation(website_id,session_id,{"type":"text","content":"This message was sent from python-crisp-api! :)","from":"operator","origin":"chat"})