Saravanan666/pypi-org huggingface dataset:
Package: crosshair-tool
CrossHairAn analysis tool for Python that blurs the line between testing and
type systems.THE LATEST NEWS:The new CrossHair VSCode extension can work in the background and provide in-line
errors when it finds a counterexample, just like a linter or type-checker.Try it outand tell me what you think!If you have a function withtype annotationsand add a
contractin a supported syntax,
CrossHair will attempt to find counterexamples for you:CrossHair works by repeatedly calling your functions with symbolic inputs.
It uses anSMT solver(a kind of theorem prover) to explore viable
execution paths and find counterexamples for you.
This is not a new idea; a Python approach was first described inthis paper.
However, to my knowledge, CrossHair is the most complete implementation:
it can use symbolic reasoning for the built-in types, user-defined classes, and much
of the standard library.Try CrossHair right now, in your browser, atcrosshair-web.org!CrossHair hasIDE integrationsforVS Code,PyCharm, and more.Finally, CrossHair can do more than check contracts. It can alsogenerate unit testsandfind behavioral differencesbetween functions.Want to help?
Sign up foremailorRSSupdates.
Star ⭐️ the repository.
There areother ways to helptoo.DocumentationIntroductionGet StartedThe Details: ContractsThe Details: coverThe Details: diffbehaviorKinds of ContractsHints for Your ClassesIDE IntegrationsCase StudiesLimitationsPluginsHow Does It Work?How Can I Help?Related WorkContributingChangelog
Package: crosshash
crosshashStable, cross-platform JSON serialization and hashing for Python and JavaScript.MotivationTo make it possible to compare and hash JSON objects in a stable way across platforms.InstallationPythonpipinstallcrosshashJavaScriptnpminstallcrosshashFeaturesAPIThe following functions are implemented in both Python and JavaScript and the output is guaranteed to be the same:crossjson(obj) → strSort keys alphabeticallyEnsure no unsafe numbers are presentSerialize using the same format asJSON.stringify()(lowest common denominator)crosshash(obj) → strSerialize the object withcrossjson()Hash the resulting string with MD5CLIBoth Python and JavaScript implementations come with a CLI that can be used to generate stable JSON and hashes.JSON='{"B":2,"C":[1,2,3],"A":1}'[$(crosshash-js--hash"$JSON")==$(crosshash-py--hash"$JSON")]&&echo'It’s a match!'[$(crosshash-js--json"$JSON")==$(crosshash-py--json"$JSON")]&&echo'It’s a match!'UsagePythonAPIfromcrosshashimportcrossjson,crosshash,CrossHashError,MAX_SAFE_INTEGERobj={'B':2,'C':[1,2,3],'A':1}# Generate stable JSON:assertcrossjson(obj)=='{"A":1,"B":2,"C":[1,2,3]}'# Generate stable hash:assertcrosshash(obj)=='12982c60a9a8829ea4eeb2e1e7e1e04e'# Throws `CrossHashError`:crosshash({'A':MAX_SAFE_INTEGER+1})CLIYou can invokecrosshash.pydirectly or usepython -m crosshash. The package also installs an executable calledcrosshash-py.$crosshash-py--json'{"B": 2, "C": [1, 2, 3], "A": 1}'{"A":1,"B":2,"C":[1,2,3]}$crosshash-py--hash'{"B": 2, "C": [1, 2, 3], "A": 1}'12982c60a9a8829ea4eeb2e1e7e1e04eJavaScriptAPIThe library runs in the browser and Node.js and comes withTypeScript definitions.const{crossjson,crosshash,CrossHashError}=require('crosshash')constobj={B:2,C:[1,2,3],A:1}// Generate stable JSON:assert(crossjson(obj)==='{"A":1,"B":2,"C":[1,2,3]}')// Generate stable hash:assert(crosshash(obj)==='12982c60a9a8829ea4eeb2e1e7e1e04e')// Throws `CrossHashError`:crosshash({A:Number.MAX_SAFE_INTEGER+1})CLIYou can invokecrosshash.jsdirectly or usingnpx. The package also installs an executable calledcrosshash-js.$crosshash-js--json'{"B": 2, "C": [1, 2, 3], "A": 1}'{"A":1,"B":2,"C":[1,2,3]}$crosshash-js--hash'{"B": 2, "C": [1, 2, 3], "A": 1}'12982c60a9a8829ea4eeb2e1e7e1e04eTest suiteTo ensure consistency, thetest suiteinvokes the Python and JavaScript implementations ofcrossjson()andcrosshash()on thesame dataand compares the results.DevelopmentIt should be fairly straightforward to add support for other languages.gitclonegit@github.com:httpie/crosshash.gitcd./crosshash
makeinstall
maketest
Package: crosshatch
CrosshatchEver wanted to useVyxal, but found that the default REPL was lacking in features and that the online interpreter wasn't interactive enough? Well now there's a solution to all your read-execute-print-loop needs! Crosshatch is designed to be easy to use, visually appealing and highly interoperatable with the Vyxal programming language.InstallationIf you want to work on Crosshatch, you can also use poetry. First, download this repository and unzip it. Alternatively, you can open it with Github Desktop or clone it via git.Then, you'll need to installPoetry, which is the packing tool used for Crosshatch.pip install poetryFinally, run:poetry installand it will take care of installing all the required dependencies.UsageTo run Crosshatch:crosshatchOr if you want to do development work on it:poetry run crosshatchAfter starting Crosshatch, you'll see something like the following:Vyxal 2.19.0 using Python 3.10.9 (tags/v3.10.9:1dd9be6, Dec  6 2022, 20:01:21) [MSC v.1934 64 bit (AMD64)] on win32.
Type ##help for more information.
EOF or ##exit to exit.

[0] vyxal>Enter your expressions after the>and they will be evaluated. The[0]indicates that this is expression 0.
Package: crossinstaller
CrossInstallerCreate Python executables for Linux and Windows using one command.InstallationFrom PyPIpipinstallcrossinstaller-UFrom sourcesgitclonehttps://github.com/desty2k/crossinstaller.gitcdcrossinstaller
pipinstall.UsageCreating executablesTarget platforms are specified by the--platformoption. Option can be specified multiple times.
At least one platform must be specified. Available default platforms are:win32,win64,i386,amd64.crossinstallersome_script.py-pamd64-pwin64The above command will create two executables:some_scriptfor Linux x64 andsome_script.exefor Windows x64.Adding custom platformUse-a/--add-platformoption to add custom platform. For example, if you want to create
an executable forplatform_nameplatform, which usedockerfileDockerfile, you can do it like this:crossinstallersome_script.py-aplatform_namepath/to/dockerfileOption can be specified multiple times.Passing extra arguments to the PyinstallerYou can pass extra arguments to the Pyinstaller by using-e/--optionsoption.
Make sure to quote the arguments.Note the extra space in the argument.crossinstallersome_script.py--options" -F --icon icon.ico"Specifying the working directoryBy default, the working directory is the same as the script directory.
You can specify custom working directory by using-w/--workdiroption.crossinstallerpath/to/some_script.py-wpath/Using in a scriptYou can use crossinstaller as a Python module. Note that working directory will be changed to the script directory.frompathlibimportPathfromcrossinstallerimportPlatform,CrossInstaller,get_default_platformsif__name__=='__main__':generator=CrossInstaller()# add default platformsgenerator.add_platforms(get_default_platforms())# add custom platform# note: all files required by the Dockerfile must be in the same directory as the Dockerfilemy_platform=Platform("my-platform-64",Path("/usr/bin/my-platform-64/Dockerfile"))generator.add_platform(my_platform)# start crossinstallergenerator.start(Path("path/to/my/script.py"),keep_build=True,extra_options="-F")# start is non blocking, you can do other stuff here# or wait for the build to finishgenerator.wait()
Package: crossix
crossix is a private Django project to handle registration to www.crosstriangulaire.com.InstallationYou may install this software from your distribution packages, or through pip:$pipinstallcrossixOnce installed, you must configure it.
The minimal set of settings is the[db]section of the/etc/crossix/config.inifile (see below for details).Once this is configured, you must prepare the database:$crossixctlmigrateThis will create the database; the last step is to point your WSGI server tocrossix.wsgi.ConfigurationCrossix will read all configuration files matching/etc/crossix/*.ini.
Those are ini-style files, defining the following parameters:Application ([app])General behavior of the application.Options:modestr, the application mode.
Usedevfor local development andprodotherwise.debugbool, whether to enable debug.
Valid values:on,offsecret_keystr,REQUIREDinprodmode.
A secret key for Django security hooksSite ([site])Hosting and URLs.Options:namestr, the name of your site (crossix,mypaster, …).base_urlstr, where your site is hosted.
A trailing slash isrequired.assets_urlstr, the URL where assets (CSS, JS, …) are served.
May be a relative URL.admin_mailstr, the email where the admin should be notified.allowed_hostsstr list, comma-separated list of validHost:HTTP headers.
See Django docs for details.Database ([db])Required; these define where snippets will be stored.
Valid options are:enginestr, the engine to choose.
Must be one ofsqlite,mysql,postgresql; default issqlite.namestr, the name of the database, or its path for sqlite.
Defaults to/var/lib/crossix/db.sqlite.hoststr, the host of the database server.portint, the port of the database server.userstr, the login to use to connect to the database server.passwordstr, the password for the databaseExamples:; A Postgresql configuration; uses default psql port.[db]engine=postgresqlname=crossixhost=psql42.local; A sample sqlite configuration.[db]engine=sqlitename=/data/replicated/crossix/db.sqliteUploads ([uploads])Options related to private file uploads.dirpath, storage folder for uploads.
Must be writable by the WSGI process.Example:/var/www/crossix/uploadsservestr, the file serving mode.crossixrelies ondjango-sendfileto enhance performance and protection.Valid options:simple,nginx,xsendfile,mod_wsgi.internal_urlstr, the internal URL used by django-sendfile to serve the files.
Package: crosslab-aiortc
What isaiortc?aiortcis a library forWeb Real-Time Communication (WebRTC)andObject Real-Time Communication (ORTC)in Python. It is built on top ofasyncio, Python’s standard asynchronous I/O framework.The API closely follows its Javascript counterpart while using pythonic
constructs:promises are replaced by coroutinesevents are emitted usingpyee.EventEmitterTo learn more aboutaiortcpleaseread the documentation.Why should I useaiortc?The main WebRTC and ORTC implementations are either built into web browsers,
or come in the form of native code. While they are extensively battle tested,
their internals are complex and they do not provide Python bindings.
Furthermore they are tightly coupled to a media stack, making it hard to plug
in audio or video processing algorithms.In contrast, theaiortcimplementation is fairly simple and readable. As
such it is a good starting point for programmers wishing to understand how
WebRTC works or tinker with its internals. It is also easy to create innovative
products by leveraging the extensive modules available in the Python ecosystem.
For instance you can build a full server handling both signaling and data
channels or apply computer vision algorithms to video frames using OpenCV.Furthermore, a lot of effort has gone into writing an extensive test suite for
theaiortccode to ensure best-in-class code quality.Implementation statusaiortcallows you to exchange audio, video and data channels and
interoperability is regularly tested against both Chrome and Firefox. Here are
some of its features:SDP generation / parsingInteractive Connectivity Establishment, with half-trickle and mDNS supportDTLS key and certificate generationDTLS handshake, encryption / decryption (for SCTP)SRTP keying, encryption and decryption for RTP and RTCPPure Python SCTP implementationData ChannelsSending and receiving audio (Opus / PCMU / PCMA)Sending and receiving video (VP8 / H.264)Bundling audio / video / data channelsRTCP reports, including NACK / PLI to recover from packet lossInstallingSince release 0.9.28 binary wheels are available on PyPI for Linux, Mac and
Windows. The easiest way to installaiortcis to run:pipinstallaiortcBuilding from sourceIf there are no wheels for your system or if you wish to build aiortc from
source you will need a couple of libraries installed on your system:OpenSSL 1.0.2 or greaterFFmpeg 4.0 or greaterLibVPX for video encoding / decodingOpus for audio encoding / decodingLinuxOn Debian/Ubuntu run:aptinstalllibavdevice-devlibavfilter-devlibopus-devlibvpx-devpkg-configpylibsrtpcomes with binary wheels for most platforms, but if it needs to be
built from you will also need to run:aptinstalllibsrtp2-devOS XOn OS X run:brewinstallffmpegopuslibvpxpkg-configLicenseaiortcis released under theBSD license.
Package: crosslab-soa-service-parameter
This is the Parameter service to use as a Crosslab SOA service. It
allows to transmit variouse numeric parameters / values between
different devices.Parameter Producerservice=ParameterService__Producer("position",[{"name":"x","unit":"m","minimum":-1.2,"maximum":1.2},{"name":"y","unit":"m","minimum":-1.2,"maximum":1.2},{"name":"z","unit":"m","minimum":0,"maximum":0.5},],)deviceHandler.add_service(service)When any parameter changes (or is initialized) the service inform the
service via:awaitservice.updateParameter("x",0.5)Parameter Consumerservice=ParameterService__Consumer("position",[{"name":"x","unit":"m"},{"name":"y","unit":"m"},{"name":"z","unit":"m","minimum":0,"maximum":1},{"name":"ANY","unit":"ANY"},],)deviceHandler.add_service(service)The special name / unit “ANY” allows to receive any parameter. When a
new parameter gets connected / disconnect the service will emit the
following callback:defparameterListChanged(event:ParameterListChangedEvent):print(event)# event.parameters is a list of all parametersservice.on("parameterListChanged",parameterListChanged)When a parameter changes the service will emit the following callback:defparameterChanged(event:ParameterChangedEvent):print(event)# event.parameter is the changed parameterservice.on("parameterChanged",parameterChanged)
Package: crossmapy
crossmapycrossmapy implements several causal inference algorithms based on dynamical causality (DC) framework, including Granger causality (GC),
Transfer entropy(TE), Convergent Cross Mapping(CCM), Partial Cross Mapping(PCM), Cross-Mapping Cardinality(CMC) and Cross-Mapping Entropy(CME).InstallpipinstallcrossmapyExamples1. 3-variable logistic systemwe use the following cascade casethe corresponding dynamical equations iswhere 伪x= 3.68, 伪y= 3.72 and 伪z= 3.681.1 import packagesimportmatplotlib.pyplotaspltimportnumpyasnpimportseabornassnssns.set(context='notebook',style='white',font_scale=1.2)importcrossmapyascmp# import our package1.2 simlate 3-variable logistic system using crossmapyc=0.4# coupling efficient between variablesb_xy=0b_yx=cb_yz=cb_zy=0b_xz=0b_zx=cn_trial=1# number of trialsn_iter=1000# length of time seriesnoise=0.002# noise strengthseed=0# random number seedxyz=cmp.mul_logistic_3v(b_xy=b_xy,b_yx=b_yx,b_yz=b_yz,b_zy=b_zy,b_xz=b_xz,b_zx=b_zx,n_trail=n_trial,n_iter=n_iter,seed=seed,noise=noise)show partial simulated datafig,ax=plt.subplots(3,1,figsize=(10,6),sharex=True,sharey=True)fori,linenumerate(['x','y','z']):ax[i].plot(xyz[0][500:600,i])ax[i].set_ylabel(l)plt.tight_layout()1.3 calculate the causal strength by six algorithms# show the ground truth of the systemtruth=np.array([[0,b_yx,b_yz],[b_xy,0,b_zy],[b_xz,b_yz,0]])truth_mat=cmp.discretize_score(truth,c/2)truth_mat[np.diag_indices(3)]=np.nanfig,ax=plt.subplots(figsize=(3,3))cmp.plot_score_matrix(truth_mat,labels=['x','y','z'],ax=ax,annot=False,diag_line=True,cbar=False,annot_kws={'fontsize':12})ax.set_title('Truth')ax.set_xlabel('Effect')ax.set_ylabel('Cause')plt.tight_layout()# API for algorithmsembed_dim=3# embedding dimensionGC=cmp.GrangerCausality(embed_dim=embed_dim)TE=cmp.TransferEntropy(embed_dim=embed_dim)CCM=cmp.ConvergeCrossMapping(embed_dim=embed_dim)PCM=cmp.PartialCrossMapping(embed_dim=embed_dim)CMC=cmp.CrossMappingCardinality(embed_dim=embed_dim)DCMC=cmp.DirectCrossMappingCardinality(embed_dim=embed_dim)models=[GC,TE,CCM,PCM,CMC,DCMC]scores=[]formodelinmodels:model.fit(xyz[0])# .fit(data) perform the calculationscores.append(model.scores)# model.scores stores the causal strength matrixcompare the predict networks to the ground truth# show the predict networks, false positive (negtive) results are marked by red solid (dashed) squares.thr=0.5labels=['GC','TE','CCM','PCM','CMC','DCMC']fig,ax=plt.subplots(2,3,figsize=(8,6))ax=ax.flatten()fori,labelinenumerate(labels):mat=cmp.discretize_score(scores[i],thr)mat[np.diag_indices(3)]=np.nanfalse_pos=np.where((mat==1)&(truth_mat==0))false_neg=np.where((mat==0)&(truth_mat==1))_=cmp.plot_score_matrix(mat,labels=['x','y','z'],annot=False,ax=ax[i],vmin=0,vmax=1,diag_line=True,cbar=False,annot_kws={'fontsize':12})ax[i].set_title(label)_=cmp.plot_annot_square(false_pos,lw=2,c='r',ls='-',ax=ax[i])_=cmp.plot_annot_square(false_neg,lw=2,c='r',ls='--',ax=ax[i])plt.tight_layout()2. reproduce the results in our workcheck the notebook files inpaper_examples.LicenseMIT License
Package: crossmark-jotform-api
Jotform api library for python3descriptionUnofficial Jotform API library for python3.updates2023-04-26: Addedset_new_submissionfunction, time to time it cannot find the submission, in that cases pulls the data directly from the api and sets as it is.2023-05-01: Added a logic for get_emails function. and added a TODO there.2023-05-01: Setted set_answer function.2023-05-10: Deleted submissions array and enhanced the logic according to it2023-05-16: Created emails on class initilaization so that one dont need to call get_emails function2023-05-16: Summary for get_form function, format document, cleared some of the self.update and its fucntionality for faster performance2023-10-20: force parameter for update function so that user can call it without depending on the submission count change, This library need an inner check for the highest updated_at value descending order.2023-11-08, v0.3.6:Unused param selectedFields is omitedAdded constructer function for answer to smaller parts [maxValue, order, selectedField, cfname, static]2023-12-14, v0.4.0:Addeddelete_submissioncall for JotForm classFrom requests.request("TYPE", "url", "timeout") to requests."type"("url", "timeout")pyproject.toml enhancedClass explanation implemented for JotFormSubmissionAdded following functions for JotFormSubmission class:turn_into_american_datetime_formattext_to_htmlsplit_domain_from_emailget_value
Package: cross-moment
READMEGetting startedTo reproduce the experiments from the work "A Cross-Moment Approach for Causal Effect Estimation", please run themain.ipynbjupyter notebook. The necessary packages for the experiments are specified in therequirements.txt.An implementation of Cross-Moment method can be found inmethods.py. Cross-Moment method is implemented by functioncompute_beta. Moreover, functionget_beta_sensor_fusionperforms Cross-Moment method having two proxies.
Package: crossout
Crossout Python packageThecrossoutPython package is a Python library for interacting with the Crossout API provided by theCrossoutDB website. It is designed to be simple to use and gives general information about the game items. As it is based on a third party API, data may be outdated or missing.Note :At the moment, the package does not provide information about the market state and item prices.Note :This package is not affiliated with CrossoutDB, Targem Games or Gaijin Enternaiment in any way.How to useRequirementsThe package was made with Python3.10.4. Although its dependencies should be automatically installed bypip, here is a list of the required packages :requests>=2.30.0for HTTP requestsurllib3>=2.0.2to create GET parameters of requestsInstallationThe package is available on PyPI and can be installed usingpip:pipinstallcrossoutUsageThe package provides a core class calledCrossoutDB. It wraps the lower level API calls and provides a simple interface to get information about the game items. Here the sample code retrieve the name of the item with the ID1050, which is theZS-33 Hulk.importcrossout# Create a CrossoutDB instancedb=crossout.CrossoutDB()name=db.item(1050).name# name = "ZS-33 Hulk"RoadmapIn order of priority :Make documentationConsider adding option to scrap additionnal data from the website if possibleAdd support for item pricesAdd support for market dataResourcesCrossoutDB repository
Package: crossplane-function-sdk-python
function-sdk-pythonThePythonSDK for writingcomposition functions.This SDK is currently a beta. We try to avoid breaking changes, but it will not
have a stable API until it reaches v1.0.0. It follows the samecontributing
guidelinesas Crossplane.To learn how to use this SDK:Follow the guide to writing a composition function in PythonLearn about how composition functions workRead the package documentationTheRunFunctionRequestandRunFunctionResponsetypes provided by this SDK
are generated from a proto3 protocol buffer schema. Their fields behave
similarly to built-in Python types like lists and dictionaries, but there are
some differences. Read thegenerated code documentationto
familiarize yourself with the the differences.If you just want to jump in and get started, consider using thefunction-template-pythontemplate repository.ContributingThis project follows the Crossplanecontributing guidelines, where applicable
to Python. It is linted, tested, and built usingHatch.Some useful commands:# Generate gRPC stubs.hatchrungenerate:protoc# Lint the code.hatchrunlint:check# Run unit tests.hatchruntest:unit# Build an sdist and wheel.hatchbuild
Package: crosspm
[![Deploy](https://github.com/devopshq/crosspm/actions/workflows/deploy.yml/badge.svg?branch=master)](https://github.com/devopshq/crosspm/actions/workflows/deploy.yml)
[![codacy](https://api.codacy.com/project/badge/Grade/7a9ed2e6bb3e445f9e4a776e9b7f7886)](https://www.codacy.com/app/devopshq/crosspm/dashboard)
[![pypi](https://img.shields.io/pypi/v/crosspm.svg)](https://pypi.python.org/pypi/crosspm)
[![license](https://img.shields.io/pypi/l/crosspm.svg)](https://github.com/devopshq/crosspm/blob/master/LICENSE)DocumentationActual version always here:http://devopshq.github.io/crosspmIntroductionCrossPM (Cross Package Manager) is a universal extensible package manager.
It lets you download and as a next step - manage packages of different types from different repositories.Out-of-the-box modules:Adapters
- Artifactory
- [Artifactory-AQL](https://www.jfrog.com/confluence/display/RTF/Artifactory+Query+Language) (supported since artifactory 3.5.0):
- files (simple repository on your local filesystem)Package file formats
- zip
- tar.gz
- nupkg (treats like simple zip archive for now)Modules planned to implement:Adapters
- git
- smb
- sftp/ftpPackage file formats
- nupkg (nupkg dependencies support)
- 7zWe also need your feedback to let us know which repositories and package formats do you need,
so we could plan its implementation.The biggest feature of CrossPM is flexibility. It is fully customizable, i.e. repository structure, package formats,
packages version templates, etc.To handle all the power it have, you need to write configuration file (crosspm.yaml)
and manifest file with the list of packages you need to download.Configuration file format is YAML, as you could see from its filename, so you free to use yaml hints and tricks,
as long, as main configuration parameters remains on their levels :)