Saravanan666/pypi-org huggingface dataset:
Package: camus-chat
Camus is a group video chat app that usesWebRTCfor direct peer-to-peer
communication. Users can create and join rooms, stream audio and video with
a microphone and webcam, share their screen, and send text messages.
You can try a demo athttps://camus.chat, or run your own server usingSnap,pip,Docker, orHeroku.FeaturesCreate public or private rooms, optionally with a password and guest limitStream audio & videoShare your desktopSend text messagesControl video feeds – set your camera resolution, toggle fullscreen or picture-in-picture, disable incoming videoConfigure custom STUN and TURN serversResponsive user interface that works on large or small screensInstallationSnapMake sure you havesnapdinstalled. InstallCamus:$ sudo snap install camusOnce installed, Camus runs automatically as a Snap service. See the Snapservice managementdocumentation for details on starting and stopping
services.Go tolocalhost:5000in your browser. For local testing, you can visit the
same room in multiple tabs and each tab will act as a separate client.PipCamus requiresPython 3.7or higher since it makes use ofQuartand async
syntax. As usual, it’s best to use avirtual environment.Install Camus:$ pip install camus-chatRun Camus:$ camusGo tolocalhost:5000in your browser. For local testing, you can visit the
same room in multiple tabs and each tab will act as a separate client.DockerYou can find apre-built Docker imageon Docker Hub. Use the following
command to pull the image and run a container:$ docker run -d -p 5000:5000 mrgnr/camusGo tolocalhost:5000in your browser. For local testing, you can visit the
same room in multiple tabs and each tab will act as a separate client.HerokuSimply click the button above or see thedeployment documentationfor
detailed instructions.DocumentationSee the official documentation athttps://docs.camus.chatfor more information
about configuring and running Camus.ContributingIf you want to make a contribution, please read theContributingguidelines
first.
Package: cam-viewer
Cam-viewerLibrary installation:pip install cam-viewerFunctions:To use the functions, import cam-viewer:import cam_viewerCamera playback function:cam_viewer.playback(command, parameters, cams_json, cam_name, cam_number, use_text, fontfile)The output shows this list: [cam_proc, response]:cam_proc- thesubprocess.Popen()class (Popen)responce- a line with the result of starting camera playback (string)Input parameters:command- main FFMPEG command [ffmpeg,ffplay,ffprobe] (string)parameters- FFMPEG flags (string)cams_json- json file containing cameras and their settings,example(json data)cam_name- camera name (string)cam_number- camera number (integer)use_text- show camers name and number in video output (boolean True/False)font_file- font file path (string)Get camera data function:cam_viewer.cam_data(cams_json, cam_name, cam_number)The output shows this list: [cam_url, enabled, response]:cam_url- camera URL (string)enabled- is the camera enabled (boolean True/False)responce- a line with the result of getting camera data (string)Input parameters:cams_json- json file containing cameras and their settings,example(json data)cam_name- camera name (string)cam_number- camera number (integer)Checking camera URL for availability:cam_viewer.url_available(cam_url)The output shows this:available- is the camera available (boolean True/False)Input parameters:cam_url- camera URL (string)Get current time:cam_viewer.current_time()The output shows this:time_str- current time in%H:%M:%Sformat (string)Examples of using:streetcat-console(simple usage)streetcat-youtube
Package: canaa-model-furlan
Canaã Model Creator[]CSV LAYOUTThe file must be an CSV (separated by ; fields), UTF-8 without BOM encodingThe first line defines the model names:Promax namespacePromax model nameMicroservice namespaceMicroservice model nameThe next lines defines the fields:Promax field namePromax field type (int, bool, string, date, datetime, time, float or classes)Microservice field nameMicroservice field typeExtra informations: 'pk' for Primary Key, 'required' for required fieldpromax_namespace.promax_model;microservice_namespace.microservice_model
codigo_modelo;int;model_id;int;pk
nome_pessoa;string;person_name;string;required
data_nascimento;date;birth_date;date;
ativo;bool;active;bool;
cadastro;datetime;register;datetime
taxa;float;rate;float
descricao;DescricaoModel;description;DescriptionModelYou can use Excel files, with one model per sheet.
Package: can-ada
can_adaPython bindings forAda, a fast and spec-compliant URL parser.Installationpipinstallcan_adaBinary wheels are available for most platforms. If not available, a
C++17-or-greater compiler will be required to build the underlying Ada library.UsageParsing is simple:fromcan_adaimportparseurl=parse("https://tkte.ch/search?q=canada")print(url.protocol)# https:print(url.host)# tkte.chprint(url.pathname)# /searchprint(url.search)# ?q=canadaYou can also modify URLs:fromcan_adaimportparseurl=parse("https://tkte.ch/search?q=canada")url.host="google.com"url.search="?q=canada&safe=off"print(url)# https://google.com/search?q=canada&safe=off
Package: canada-holiday
canada-holidaya Python package for retrieving Canadian holidays information for all provinces for any given year.InstallationWith pip:pipinstallcanada-holidayWith poetry:poetryaddcanada-holidayUsageimportdatetimeimportcanada_holidayon_holidays_2023=canada_holiday.get_holidays("Ontario",2023)# prints "Getting holiday information of Ontario province..."print(on_holidays_2023)# [CanadaHoliday(New Year's Day, 2023-01-01, Sunday, all), CanadaHoliday(Family Day, 2023-02-20, Monday, Ontario), ...]manitoba_holidays_2023_june=canada_holiday.get_holidays("MB",2023,2)# prints "Getting holiday information of Manitoba province..."print(manitoba_holidays_2023_june)# [CanadaHoliday(Louis Riel Day, 2023-02-20, Monday, Manitoba)]louis_riel_day=manitoba_holidays_2023_june[0]print(louis_riel_day.name)# Louis Riel Dayprint(louis_riel_day.month)# 2print(louis_riel_day.day)# 20print(louis_riel_day.date)# 2023-02-20print(louis_riel_day.province)# Manitobaprint(louis_riel_day.day_of_the_week)# Mondaydate=datetime.date(2023,8,7)result=canada_holiday.is_holiday(date,"British Columbia")# prints "2023-08-07 is a holiday, B.C. Day in British Columbia province(s) in Canada"print(result)# Truedate=datetime.date(2023,4,5)result=canada_holiday.is_holiday(date,"Nova Scotia")# prints "2023-04-05 is not a holiday in Nova Scotia province."print(result)# False
Package: canadian-ham-exam
Canadian Ham Exam uses the official question bank from Industry Canada
and allows aspiring hams to practice the section of their choice as
they are learning the material for the exam.It requires a copy of the question bank, which can be downloaded
free of charge from the Industry Canada website:https://www.ic.gc.ca/eic/site/025.nsf/eng/h_00004.htmlBoth the basic and the advanced exams are supported, in English and
French.
Package: canalplus
Canal+ est un script Python permettant de
parcourir/visionner/télécharger les vidéos mises en ligne par la chaine
Canal+ (Guignols de l’info, Groland, etc.).FonctionnalitésPermet de rechercher une vidéoPermet de télécharger/visionner toutes les vidéos d’un programmePermet de télécharger/visionner la dernière vidéo d’un programmePermet de visionner une vidéo dans un lecteur externe (MPV, VLC…)Fonctionne en mode interactif ou nonSélectionne automatiquement la meilleure qualité vidéo disponibleFonctionne en ligne de commande sur n’importe quel système (Linux,
Mac, Windows, serveur sans interface graphique…)InstallationPython>= 3.3 requis.A partir de PyPI (avec PIP)Si pas déjà fait,installer
PIPpour
Python 3Installer canalplus :pip3 install canalplusA partir des sourceSi pas déjà fait,installer
setuptoolspour Python 3Cloner ce dépot :git clonehttps://github.com/desbma/canalplusInstaller canalplus :python3 setup.py installLigne de commandeExécutercanalplus-hpour obtenir une liste complète des options
disponibles.Les vidéos téléchargées sont le plus souvent au formatMPEG-TS,
lisible parMPVouVLC.Si FFMpeg ou LibAV est detecté sur le système, les vidéos sont
automatiquement “remuxées” au formatMP4, plus couramment
supporté.ExemplesLister toutes les vidéos des Guignols, et visionner la sélection avec
VLC :canalplus-p'?guignols'player:vlcTélécharger la dernière vidéo de Groland dans~/Bureau:canalplus-p'?groland'-mlast ~/BureauNaviguer dans les programmes et vidéos interactivement, et visionner
la sélection avec VLC :canalplus player:vlcTélécharger toutes les bandes annonces sur le bureau :canalplus-p'Dernieres Bandes Annonces'-mauto ~/BureauLicenceGPLv3
Package: canal-py2
canal-py2First, canal-py2 is fork byhttps://github.com/haozi3156666/canal-pythonthx.一.canal-py2 简介canal-py2 是阿里巴巴开源项目Canal是阿里巴巴mysql数据库binlog的增量订阅&消费组件 的 python 客户端。为 python 开发者提供一个更友好的使用 Canal 的方式。Canal 是mysql数据库binlog的增量订阅&消费组件。基于日志增量订阅&消费支持的业务：数据库镜像数据库实时备份多级索引 (卖家和买家各自分库索引)search build业务cache刷新价格变化等重要业务消息关于 Canal 的更多信息请访问https://github.com/alibaba/canal/wiki二.工作原理canal-py2  是 Canal 的 python 客户端，它与 Canal 是采用的Socket来进行通信的，传输协议是TCP，交互协议采用的是 Google Protocol Buffer 3.0。三.工作流程1.Canal连接到mysql数据库，模拟slave2.canal-py2 与 Canal 建立连接2.数据库发生变更写入到binlog5.Canal向数据库发送dump请求，获取binlog并解析4.canal-py2 向 Canal 请求数据库变更4.Canal 发送解析后的数据给canal-py25.canal-py2 收到数据，消费成功，发送回执。（可选）6.Canal记录消费位置。四.快速启动安装CanalCanal 的安装以及配置使用请查看https://github.com/alibaba/canal/wiki/QuickStart环境要求python 2.7 （canal-python支持python3）构建canal python客户端pipinstallcanal-py2建立与Canal的连接importtimefromcanal.clientimportClientfromcanal.protocolimportEntryProtocol_pb2fromcanal.protocolimportCanalProtocol_pb2client=Client()client.connect(host='127.0.0.1',port=11111)client.check_valid(username='canal',password='canal')client.subscribe(client_id='1001',destination='example',filter='.*\\..*')whileTrue:message=client.get(100)entries=message['entries']forentryinentries:entry_type=entry.entryTypeifentry_typein[EntryProtocol_pb2.EntryType.TRANSACTIONBEGIN,EntryProtocol_pb2.EntryType.TRANSACTIONEND]:continuerow_change=EntryProtocol_pb2.RowChange()row_change.MergeFromString(entry.storeValue)event_type=row_change.eventTypeheader=entry.headerdatabase=header.schemaNametable=header.tableNameevent_type=header.eventTypeforrowinrow_change.rowDatas:format_data=dict()ifevent_type==EntryProtocol_pb2.EventType.DELETE:forcolumninrow.beforeColumns:format_data={column.name:column.value}elifevent_type==EntryProtocol_pb2.EventType.INSERT:forcolumninrow.afterColumns:format_data={column.name:column.value}else:format_data['before']=format_data['after']=dict()forcolumninrow.beforeColumns:format_data['before'][column.name]=column.valueforcolumninrow.afterColumns:format_data['after'][column.name]=column.valuedata=dict(db=database,table=table,event_type=event_type,data=format_data,)print(data)time.sleep(1)client.disconnect()
Package: canals
CanalsCanals is acomponent orchestration engine. Components are Python objects that can execute a task, like reading a file, performing calculations, or making API calls. Canals connects these objects together: it builds a graph of components and takes care of managing their execution order, making sure that each object receives the input it expects from the other components of the pipeline.Canals powers version 2.0 of theHaystack framework.InstallationTo install Canals, run:pip install canalsTo be able to draw pipelines (Pipeline.draw()method), please make sure you have either an internet connection (to reach the Mermaid graph renderer athttps://mermaid.ink) orgraphviz(version 2.49.0) installed. If you
plan to use Mermaid there is no additional steps to take, while for graphviz
you need to do:GraphVizsudo apt install graphviz  # You may need `graphviz-dev` toopip install pygraphviz
Package: canalyse
CanalyseAnalyseCURPresult.InstallCanalyse require python 3.6 or more upper version.pip install canalyseUsageas a CLIVerify statistical quantity of dataThe variance should be grater than:canalyse conductivity --quantity=variance --grater-than 2.0e-5 conductivity.dotThe variance should be less than:canalyse conductivity --quantity=variance --less-than 2.0e-4 conductivity.dotYou can use--quantityoption:Optiondescriptionvariancevariance of dataaverageaverage of datastdstandard deviation of dataas a Python packagefromcanalyse.parserimport(ConductivityParser,ConductivityFormatter)conductivity_file="conductivity.dot"parser=ConductivityParser()df=parser.run(conductivity_file)formatter=ConductivityFormatter()new_df=formatter.run(df)and you can see the frame ofnew_df:source     target  conductivity  source_number source_residue  target_number target_residue0  00001_MET  00036_PHE      0.017448              1            MET             36            PHE1  00001_MET  00005_GLU      0.021499              1            MET              5            GLU2  00001_MET  00004_ASP      0.012439              1            MET              4            ASP
Package: canalysis
Calcium Imaging Data Analysis*Images from poster presented at AChems 2022[1].This project takes.csvfiles gathered from Inscopix Data Processing software for processing:Syncing traces with externally captured GPIO events.Generalbased statistics.Plotting: animated, 2D and 3D scatter, regression, skree, heatmap and correlation matrix.Dimensionality reduction with variance filters and principal component analysis.Support Vector Machine Learning for classification tasks.Supported OSLinux (list ofPOSIX API), Windows 7 and higher.Directory StructureFor data loading, directories should be formatted a particular way that can be easily
modified by configuringdata.data_utils.file_handler../data/
├──Animal1│├──Day1││├──*Events.csv
││└──*Traces.csv
│└──Day2│├──*Events.csv
│└──*Traces.csv
├──Animal2│└──Day1│├──*Events.csv
│└──*Traces.csv
└──Animal3└──Day1├──*Events.csv└──*Traces.csvParameters and DirectoriesA configuration fileconfig.yamlcontains defaults that can be set in a single top-level file.DIRS:- directories for loading and saving dataDIRS:data_dir:'/Users/me/mydata'# os is internally handledsave_stats:'~./home'# save statistical outputsave_figs:'~/graphs'# can have multiple sub-dirssave_nn:'~/svm'# train/test/eval scores from neural networkSESSION:- session instance informationSESSION:animal:'animal_ID'# must include char + numdate:'123456'# must include all nundir:'/my/data'# must include / or \COLORS:- event : color pairingCOLORS:Event1:'color'Event2:'color'Event3:'color'# from matplotlib.colors APIDECODER:- Decode GPIO signals into eventsDECODER:Event1:1, 2, 3, 4Event2:1, 3, 4Event3:1, 2, 3Event4:1, 4# see data/data_utils/gpio_data.py for implementationTO DO:Additional layers to neural network for additional feature extractionLayer for additional outlier/anomaly detectionLayer for linear trend normalizationAny additional feature extraction layers i.e. temporal coding[2], latency, duration, etc.Incorperate dataflow-based modeling design i.e. mapping actors to threads and the vectorization of actors (see[3])Format all docstrings to NumPy styleReferences[1]Long Term In-Vivo One-Photon Ca2+ Imaging of Taste-Responsive Cells In The Parabrachial Pons In The Freely Licking Rat.
Flynn P. O'Connell1, Joshua D. Sammons2, Patricia M. Di Lorenzo1. 1Binghamton University, Binghamton, NY, USA. 2University of Alabama at Birmingham, Birmingham, AL, USA.Achems.org[2]Hallock R. M., Di Lorenzo P. M. (2006). Temporal coding in the gustatory system. Neurosci. Biobehav. Rev. 30, 1145–1160.10.1016/j.neubiorev.2006.07.005[3]Kyunghun Lee, Xiaomin Wu, Yaesop Lee, Da-Ting Lin, Shuvra S. Bhattacharyya & Rong Chen (2021) Neural decoding on imbalanced calcium imaging data with a network of support vector machines, Advanced Robotics, 35:7, 459-470,DOI: 10.1080/01691864.2020.1863259
Package: canano
cananoPython library for Canano Raspberry Pi add-on board.InstallationUsepipto install package on Raspberry PipipinstallcananoCopy/scriptsusingsvnor by cloning the reposudosvncheckouthttps://github.com/Tbruno25/canano/trunk/scriptsRunrpi_setup.pyto modify/boot/configand/etc/network/interfacesfor use with the canano boardsudopython3scripts/rpi_setup.py
sudorebootUsageThe api currently gives you control over the components on the boardfromcananoimportred_led,green_led,relay,buttonred_led.on()# activategreen_led.off()# deactivatebutton.state# returns statecanano controls the socketcan interface allowing you to easily adjust on the flyfromcananoimportcananocanano.baud=250000# sets bus baudrate to 250kcanano.reset()# clears buffercanano.bus# python-can bus objectcanano.bus.recv()# returns next messagePlay around with it to find interesting use cases!ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Package: canapi
CanAPIA universal client api generator. To learn more about the design and how to use please read ourdocumentationInstallationInstallcanapifrom PyPi using:pipinstallcanapiMaking a ClientAPIYou can get started by using one of the client apis in our registry. Before running the following code, you must go topolygonand obtain a free api key.importcanapiascppolygon=cp.api("polygon",params={"apiKey":POLYGON_API_KEY})data=polygon.reference.news(url_params={"symbol":"AAPL"})[0]print(data){'symbols':['AAPL'],'timestamp':'2020-03-26T23:52:51.000Z','title':'Apple (AAPL): Despite Likely iPhone 12 Delays, the Risk-Reward Remains Compelling, Says Analyst','url':'https://finance.yahoo.com/news/apple-aapl-despite-likely-iphone-235251688.html','source':'finance yahoo','summary':'When considering the fortunes of the FAANG family since the viral outbreak, it appears Apple (AAPL) has most to lose. Amazon and Netflix can count their internet driven models as particularly well set up for a hibernation period. And while Google and Facebook stand to lose significant advertising revenue','image':'https://s.yimg.com/uu/api/res/1.2/Su.8VniRbi_GL2B3BruK5w--~B/aD0zMzc7dz0xMDI0O3NtPTE7YXBwaWQ9eXRhY2h5b24-/https://media.zenfs.com/en-US/smarteranalyst_347/6909df17d6ef3af25ac79e2e6c0078d5','keywords':['aapl']}You can also practice making your own client by finding a rest api and trying to make a configuration for it. For example, usinghttpbinthe following client can be made.httpbin=cp.from_config({"name":"httpbin","uri":"https://httpbin.org","endpoints":{"anything":{"get":{"method":"get","path":"/anything"},"post":{"method":"post","path":"/anything"},"put":{"method":"put","path":"/anything"}}}})print(httpbin.anything.get(params={"p0":0}))ContributorsHere are some good ideas for contributions to the library:Adding more configuration files to the registryBuilding tools for converting OpenAPI yaml files into usable json filesBuilding tools for scraping api documentation and generating configuration filesIf you can think of more, then create a new issue!
Package: canari
Welcome to the Canari 3 repository - the next generation Maltego rapid
transform development framework which allows you to rapidly prototype,
package, and distribute Maltego local and remote transforms. Please
visit thedocumentationsite for a quick how-to and more in-depth information on the framework
itself.Sneak PeekThe following is an example of how easy it is to write a quick Maltego
transform in Canari 3:fromcanari.maltego.entitiesimportPhrase,PersonclassHelloWorld(Transform):"""This transform says hello to a person entity."""# The transform input entity type.input_type=Persondefdo_transform(self,request,response,config):returnresponse+Phrase("Hello "+request.entity.value)Canari DockerYou can now dockerize your remote transform packages usingcanaridockerize-package. This will create a Docker container that
runs Canari Plume fully configured with your remote transforms. You can
easily distribute this container to your Docker swarm. Check out the
documentation on Dockerwebsitefor more
information on how containers work.Bug Reports & QuestionsPlease use the issues page to log any bugs or questions regarding the
Canari Framework.KudosKudos to our user community for making this release happen. A special
thanks to those of you who have supported the development of Canari 3 by
donating money at our crowd-funding pages. If you like this project,
please consider donating money to help accelerate development.
Package: canaries
Python library for choosing and loading dynamic library files compatible with the operating environment.PurposeThis tool can be used to automatically choose and load a dynamic library file that is compatible with the current operating environment.Package Installation and UsageThe package is available on PyPI:python -m pip install canariesThe library can be imported in the usual way:import canaries
from canaries import canariesTesting and ConventionsAll unit tests are executed and their coverage is measured when usingnose(seesetup.cfgfor configution details):nosetestsStyle conventions are enforced usingPylint:pylint canariesContributionsIn order to contribute to the source code, open an issue or submit a pull request on the GitHub page for this library.VersioningThe version number format for this library and the changes to the library associated with version number increments conform withSemantic Versioning 2.0.0.
Package: canaro
A Computer Vision library in Python with powerful image processing operations, including support for Deep Learning models built using the Keras frameworkInstallationTo install the current release:$pipinstallcanaroOptionally, Canaro can also installcaerif you install it withpip install canaro[caer]Installing from SourceFirst, clone the repo on your machine and then install withpip:gitclonehttps://github.com/jasmcaus/canaro.gitcdcanaro
pipinstall-e.You can run the following to verify things installed correctly:importcanaroprint(f'Canaro version{canaro.__version__}')ResourcesHomepage:https://github.com/jasmcaus/canaro/Docs:https://github.com/jasmcaus/canaro/blob/master/DOCS.mdIssue tracking:https://github.com/jasmcaus/canaro/issuesAll Canaro wheels on PyPi are MIT-licensed
Package: canary
canaryis a small library for recording and shipping exceptions from Python tologstashviaZeroMQ.Example UsageAssuminglogstashis running and bound to a0mqsocket attcp://0.0.0.0:2120:$ cat logstash.conf
input {
    zeromq {
        type => 'python-exception'
        mode => 'server'
        topology => 'pushpull'
        address => 'tcp://0.0.0.0:2120'
        charset => 'UTF-8'
    }
}
output {
    debug => true
}…to report exceptions thrown by your WSGI application, wrap your WSGI app
withcanary.middleware.LogStashMiddleware:fromlogging.configimportdictConfigasload_logging_configfromwsgiref.simple_serverimportmake_serverfromwsgiref.utilimportsetup_testing_defaultsfromcanary.middlewareimportLogStashMiddlewaredefapp(environ,start_response):setup_testing_defaults(environ)assertTrueisFalseif__name__=='__main__':load_logging_config({'version':1,'loggers':{'canary':{'level':'ERROR','handlers':['zeromq']}},'handlers':{'zeromq':{'level':'ERROR','class':'canary.handler.ZeroMQHandler','address':'tcp://127.0.0.1:2120','formatter':'logstash'}},'formatters':{'logstash':{'()':'canary.format.LogstashFormatter'}}})httpd=make_server('',8080,LogStashMiddleware(app))print"Serving on port 8080..."httpd.serve_forever()Excluding Certain ExceptionsYou may want to preventcanaryfrom logging certain types of exceptions.
To do so, pass a list of exceptions into theLogStashMiddlewareconstructor:app=LogStashMiddleware(app,ignored_exceptions=[SomePrivateException])Filtering Sensitive Datacanaryautomatically populates exception logs with contextual data from the
WSGIenviron.  Sometimes, though, this data can contain sensitive details,
like customer’s login credentials.canarymakes it easy to filter certain
request arguments from the logs it produces:app=LogStashMiddleware(app,sensitive_keys=['password','cc_number'])DevelopmentSource hosted atGitHub.
Report issues and feature requests onGitHub
Issues.To fix bugs or add features tocanary, a GitHub account is required.The general practice for contributing is tofork canaryand make changes in thenextbranch. When you’re finished,send a pull requestand your patch will
be reviewed.Tests requiretoxand can be run with$ pip install tox && tox.All contributions must:Include accompanying tests.Include API documentation if new features or API methods are changed/added.Be (generally) compliant with PEP8.Not break the tests or build. Before issuing a pull request, ensure that all
tests still pass across multiple versions of Python.