Saravanan666/pypi-org huggingface dataset:
Package: cpquant
cpquantA python package developed by the Cal Poly Quantitative Finance Club for dealing with financial data (California Polytechnic State University San Luis Obispo)Installation$pipinstallcpquantUsagecpquantcontains functions to allow the Cal Poly Quant Club to easily access and manipulate financial dataContributingInterested in contributing? Join the Cal Poly Quant Club to learn more. Follow us on instagram @calpolyquantclubLicensecpquantwas created by Cal Poly Quantitative Finance Club. It is licensed under the terms of the MIT license.Creditscpquantwas created withcookiecutterand thepy-pkgs-cookiecuttertemplate.
Package: cPredictor
cPredictorpackageThis repository defines a command-line tool to predict (cPredictor) datasets according to a cell meta-atlases. At the present time only the meta-atlas for the cornea has been implemented.Conda and pipIf you have not used Bioconda before, first set up the necessary channels (in this order!).
You only have to do this once.$ conda config --add channels defaults
$ conda config --add channels bioconda
$ conda config --add channels conda-forgeInstall cPredictor into a conda environment and install with PyPI:$ conda create -n cPredictor python=3.9 pip
$ conda activate cPredictor
$ pip install cPredictorTo see what each of the current functions do you can run these commands:$ SVM_performance --help
$ SVM_predict --help
$ SVM_import --help
$ SVM_pseudobulk --helpDockerAlternatively you can run the package containerized through docker:$ docker pull artsofcoding/cpredictor:latest
$ docker tag artsofcoding/cpredictor:latest cpredictor
$ docker run -it --name cpredictor -p 8080:80 -v {path_to_H5AD_object}:/data cpredictorIn the activated docker container you can then go to the terminal:# cd /data
# SVM_predict --query_H5AD {H5AD_object}.h5ad --OutputDir {your_output_dir} --meta_atlasPerformance with the corneal meta-atlasThe docker container is able to predict the identity of ~90.000 cells x ~25.000 genes within two hours.To run the container locally you will need a computer with at least 28 GB of RAM and a 4-core processor.The documentation will be extended and improved upon in later versions.How to citeWhen using this software package, please correctly cite the accompanied DOI under "Citation":https://zenodo.org/doi/10.5281/zenodo.10621121
Package: cpref
cprefMaya 对象引用库目录快速开始功能介绍Maya节点引用版权说明快速开始如果你的Maya有pip那么cd "C:\Program Files\Autodesk\Maya2022\bin"

mayapy -m pip install cpref如果没有打开C:\Users\PC\Documents\maya文件夹进入scripts文件夹，如果没有就创建它下载完整的cpref代码解压并进入解压完成的文件夹将src目录中的cpref文件夹复制到scripts打开maya，如果已经打开了就重启它打开脚本编辑器并执行以下示例代码importmaya.melasmelfromcpref.object_refimportRefmel.eval("""polySphere -r 1 -sx 20 -sy 20 -ax 0 1 0 -cuv 2 -ch 1 -n test_poly;doGroup 0 1 1;doGroup 0 1 1;doGroup 0 1 1;doGroup 0 1 1;doGroup 0 1 1;setKeyframe {"group5"};""")r=Ref("test_poly")print("Ref __init__ >>",r)print("Ref is_null >>",r.is_null())print("Ref as_string >>",r.as_string())print("Ref as_string_list >>",r.as_string_list())功能介绍Maya节点引用Maya节点引用功能提供了对Maya节点长期引用from__future__importunicode_literals,print_functiondeftest():importmaya.melasmelfromcpref.object_refimportRefmel.eval("""polySphere -r 1 -sx 20 -sy 20 -ax 0 1 0 -cuv 2 -ch 1 -n test_poly;doGroup 0 1 1;doGroup 0 1 1;doGroup 0 1 1;doGroup 0 1 1;doGroup 0 1 1;setKeyframe {"group5"};""")r=Ref("test_poly")print("Ref __init__ >>",r)print("Ref is_null >>",r.is_null())print("Ref as_string >>",r.as_string())print("Ref as_string_list >>",r.as_string_list())print("")print("")print("### test unsafe methods")print("Ref unsafe_m_selection_list >>",r.unsafe_m_selection_list())print("Ref unsafe_as_string_list >>",r.unsafe_as_string_list())print("Ref unsafe_m_dag_path >>",r.unsafe_m_dag_path())print("Ref unsafe_full_path_name >>",r.unsafe_full_path_name())print("Ref unsafe_partial_path_name >>",r.unsafe_partial_path_name())print("")print("")print("### test test_poly")r=Ref("test_poly")print("Ref format >>",r)print("Ref ref_type >>",r.ref_type)print("### test test_poly.vtx[*]")r=Ref("test_poly.vtx[*]")print("Ref format >>",r)print("### test test_poly.vtx[0]")r=Ref("test_poly.vtx[0]")print("Ref format >>",r)print("### test test_poly.tx")r=Ref("test_poly.tx")print("Ref format >>",r)print("Ref ref_type >>",r.ref_type)print("")print("")print("### test object null check")r=Ref("test_poly")mel.eval("file -f -new;")print("Ref is_null >>",r.is_null())test()Ref __init__ >> DagNode<u'test_poly'>

Ref is_null >> False

Ref as_string >> test_poly

Ref as_string_list >> (u'test_poly',)





### test unsafe methods

Ref unsafe_m_selection_list >> ('test_poly')

Ref unsafe_as_string_list >> (u'test_poly',)

Ref unsafe_m_dag_path >> test_poly

Ref unsafe_full_path_name >> |group5|group4|group3|group2|group1|test_poly

Ref unsafe_partial_path_name >> test_poly





### test test_poly

Ref format >> DagNode<u'test_poly'>

Ref ref_type >> 1

### test test_poly.vtx[*]

Ref format >> Component<u'test_poly.vtx[0:381]'>

### test test_poly.vtx[0]

Ref format >> Component<u'test_poly.vtx[0]'>

### test test_poly.tx

Ref format >> Plug<u'test_poly.translateX'>

Ref ref_type >> 0





### test object null check

Ref is_null >> True版权说明该项目签署了Apache-2.0 授权许可，详情请参阅 LICENSE
Package: cprep
Cprep - preparing contests made easyCprep is a project inspired by Codeforces Polygon, that aims
to provide an open-source extensible alternative to programming contest creation.InstallationVia pip (recommended)Runpip3 install cprepVia source codeClone the repositoryRunpip3 install .How to useCreate a problemTo create a problem, go to some folder and typecprep create [PROBLEM_NAME].This will create a folder with the name you provided, as well as some files inside that folder to get you started.Generate testsTo generate tests, you have to write one or more generators, and modify thetests.shscript to generate each test. You can also optionally include validators.To generate the actual tests, you can use the commandcprep generate.Evaluate testsTo evaluate the solutions without (re-)generating test cases by usingcprep evaluate. This will show a table with results of all the submissions.You can optionally specify which submissions to evaluate.Run-allYou can also opt to run all of the above steps in order by typingcprep runall.Note: You can always check the available options by runningcprep --help, and evencprep [COMMAND] --help.ConfigurationWhen running the tool, there will always be a configuration dictating how the process will happen. It can be printed by usingcprep config.Note: The configuration printed by the above command may depend on the directory you are in.Global configurationIn order to modify
any of the global configuration values, you can add a file
called.cprep.yamlin your home directory, where you can
override any of the defaults.For example, if you want to use a different C++ compiler, you can save:compilation:languages:C++:compile:"g++-O0{src_path}-o{exec_path}"to destination path~/.cprep.yaml.Local configurationFor local-level (per problem) configuration, edit theconfig.yamlfile inside the problem directory (created by runningcprep create [NAME]). This will override the global configuration, when running the tool from inside the problem folder (it will not affect other problems, though).This is generally useful for modifying problem-level details like time limit, input/output files, as well as test name structure.IMPORTANT: This project is still in early stages of development, therefore the config structure is always subject to change.
Package: cpr-generator
cpr-generator- An Unofficial library and tool for generating and verifying Danish CPR-numbers.This project contains a library and some CLI-tools for generating, manipulating and verifying Danish CPR-numbers,
called "personnummer" or "CPR-nummer" in Danish, as defined by the Danish authority"Det
Centrale Personregister".DisclaimerThis is a community project that is NOT indorsed by the Danish authorities and should
not be used as a reference.Getting StartedThis is available on PyPI via.pipwhich includes both the library and the CLI-tools.
Simply install with the command:pipinstall-Ucpr-generatorUsing the LibraryThe library contains a few different modules. Most important are thecpr_verifierand thegeneratormodules.Thecpr_verifiercontains three functions:is_leap_year: takes a year (int) checks whether the year is a leap year.is_cpr_number: takes a potential CPR-number (str) and checks that it fulfills
the format:DDMMYY(-)NNNN.satisfies_mod11takes a potential CPR-number (str), checks that it fulfills both
the format:DDMMYY(-)NNNNand the Modulus-11 control condition.Using the CLI-toolscpr-genThis is a simple CLI tool that can generate random CPR-numbers, with or without hyphens.Example usage:cpr-gen-n1000-mFalse--hyphenTrueThe above generates a thousand CPR-numbers with hyphens, not satisfying the Modulus-11
control condition.cpr-serverThis CLI-tools starts a HTTP server (usingflask) on port 5000 that can generate random
CPR-numbers on demand.Simply run:cpr-serverAnd the server should be available atlocalhost:5000.The server has the following available URL endpoints:/: Returns a random CPR-number (no hyphen)/no-mod11/: Returns a random CPR-number (no hyphen), not satisfying Modulus-11./hyphen/: Returns a random CPR-number (with hyphen)/no-mod11/hyphen/: Returns a random CPR-number (with hyphen), not satisfying Modulus-11./<int:number>/: Returnsnumberrandom CPR-numbers (no hyphen)/no-mod11/<int:number>/: Returnsnumberrandom CPR-numbers (no hyphens), not satisfying Modulus-11./hyphen/<int:number>/: Returnsnumberrandom CPR-numbers (with hyphens)/no-mod11/hyphen/<int:number>/: Returnsnumberrandom CPR-numbers (with hyphens), not satisfying Modulus-11.cpr-verifyThis CLI-tool can be used to check the input fulfills the format of a CPR-number, with or
without hyphen, and whether or not the input satisfies the Modulus-11 control condition.Example usage:cpr-verify111111-1118# --> TrueThe above verifies that the input111111-1118fulfills the CPR-number format.
Package: cpr-gym
Consensus Protocol ResearchCPR is a toolbox for specifying, simulating, and attacking proof-of-work
consensus protocols. In this repository you findprotocol specifications for Bitcoin, Ethereum PoW, and others,implementations of known attacks against these protocols,a simulator that executes the specified protocols and attacks in a,
virtual environment,tooling for automatic attack-search with reinforcement learning (RL) andevaluation scripts and notebooks for the above.I'm working ona websitewith more details.Python/RL QuickstartCPR provides an OpenAI Gym environment for attack search with Python RL
frameworks. If you meet the followingrequirements, you can install
it from PyPI.Unix-like operating system with x86_64 supportCPython, version >= 3.9pipinstallcpr-gymIf this worked, you are ready to go. The following snippet simulates
2016 steps of honest behaviour in Nakamoto consensus.importgymimportcpr_gymenv=gym.make("cpr-nakamoto-v0",episode_len=2016)obs=env.reset()done=Falsewhilenotdone:action=env.policy(obs,"honest")obs,rew,done,info=env.step(action)Install from SourceThe protocol specifications and simulator are OCaml programs. Also most
parts of the Gym environment are written in OCaml. The Python modulecpr_gymloads the OCaml code from a pre-compiled shared object namedcpr_gym_engine.so. In order to install the package from source, you
have to build this shared object and hence have the OCaml toolchain
installed.Opamis the OCaml package manager. It's a bit like Python'spipor
Javascript'snpm. We use it do download and install our OCaml
dependencies and to manage different versions of the OCaml compiler.
Make sure that a recent version (>= 2.0) is installed on your system.Follow these instructions.
Then usemake setupto get compiler and dependencies setup in the
current working directory under_opam. Later, e.g. when dependencies
change, runmake dependenciesto update the toolchain. If you ever
suspect that the OCaml dependencies are broken, and you do not know how
to fix it, delete the_opamdirectory and runmake setupagain.Duneis an OCaml build system. We use it to build executables and
shared objects, and to run tests. You do not have to interact with dune
directly. Just runmake buildto test whether the OCaml build works.Now, installingcpr_gymas editable Python package should work. Trypip install -e .and follow the short Python example above. If it
works, you're ready to go.import cpr_gymtries to detect editable installs. If so,cpr_gym_engine.sois loaded from the OCaml build directory
(./_build). You can rebuild the DLL withmake build.It might be useful to install all Python development dependencies withpip install -r requirements.txt. Afterwards, you can run the full test
suite, OCaml and Python, withmake test.
Package: cprint
cprintDo you find it annoying when you have to search for a certain debug, or error, line in your console? Have you ever dreamed of a simple and quick way to make your debug print truly visible? Well here is your solution!cprint is a minimalist python library which gives you the possibility to print in color.Installpip install cprintUsagefromcprintimport*cprint(arg)# WHITEcprint.ok(arg)# BLUEcprint.info(arg)# GREENcprint.warn(arg)# YELLOWcprint.err(arg,interrupt=False)# BROWNcprint.fatal(arg,interrupt=False)# REDIn case you have issues under Windows, try installing colorama withpip install colorama.
Package: c-print
cprintSmall python package for printing text in different colours and typography.Installationpip install c-printPrerequisitesYou need to have a Python2.7+ or Python3+ installation with the following libraries:UsageThecprint()function simply adds one keyword argument,c, to the pythonprint()function. This extra keyword argument can change the output ofprint()to one colour and any number of given styles. Colours are given in lower case and styles in upper case. Any other keyword arguments are passed on toprint().CharacterColour'k'black'r'red'g'green'y'yellow'b'blue'm'magenta'c'cyan'w'whiteCharacterStyle'B'bold'D'dark'I'italic'U'underline'F'flash'R'reverse colour'C'crossed throughExample:fromcprintimportcprintcprint('Hello World!',c='rB')cprint('Hello World!','Monty Python',c='bUI',end='!')
Package: cprint-jianjun
Colorful Print彩色文本格式化, 彩色文本输出, 控制打印字符颜色样式!安装pip install -U cprint-jianjun简介让你的终端输出各式各样的彩色文本, 以一种非常简便的方式嵌入到程序中!# default
print("{0}  {1}".format("Hello", "World!"))

# cformat
import cprint
print("@56056{0}@45031{1}".cformat("Hello ", " World!"))

# iformat
import cprint
cprint.custom_style = {1: 612, 2: 1224}
print("@1{0}@2{1}".iformat("Hello ", " World!"))

# [] format
print("@56056{0}@45031[ World!]".cformat("Hello "))只需要在{}前加上@样式id, 然后把format改为cformat就可以按照样式id输出彩色文本查看颜色样式ID命令行输入cpshow查看所有的样式id颜色样式ID为@后面的数字, 现在一共有70943个不同的样式可以选择, 不同的终端效果不一样, 有些终端可能不支持, 请自行测试.其他命令行cpdemo: Hello World! 样例cpdemoid: Hello World! 样例并显示样式ID可以多次调用cpdemoid查看样式配色, 选择喜欢的ID.iformat可以通过赋值cprint.custom_style来自定义配置自己的id映射表, 这样可以提前配置几套不同的id themeid主题, 然后可以根据喜好或者根据不同的终端配色切换主题配色# iformat
import cprint

# theme 1
cprint.custom_style = {1: 612, 2: 1224}
print("@1{0}@2{1}".iformat("Hello ", " World!"))

# theme 2
cprint.custom_style = {1: 5547, 2: 66795}
print("@1{0}@2{1}".iformat("Hello ", " World!"))也可以提前把配色序列写入.py文件中, 然后在程序启动的时候导入赋值就行.固定常量在字符串中使用@NOW,@DATE,@TIME可以获取到对应的时间字符串print(" NOW: @NOW ".cformat())
print("DATE: @DATE ".cformat())
print("TIME: @TIME ".cformat())NOW: 2023-02-23 10:23:35
DATE: 2023-02-23
TIME: 10:23:35实现方式How to Print Colored Text in Python除了输出颜色字符外, 这种方式还可以控制光标移动、清屏、控制终端更改背景颜色等操作.更新记录最新版本:cprint-jianjun v1.3.020221116: 1.更新新的常量@NOW,@DATE,@TIME的功能 2.更新文档20230223: 1.更新文档 2.增加cpdemoid命令行.20230303: 1.更新iformat函数.20230315: 1.更新[]功能.
Package: cprints
cprints安装说明使用pip或其他 PyPi 软件包进行安装pip install cprints使用 cprints 输出彩色文本您可以试试：fromcprintsimportcp# 红色文字 文字样式: 下划线cp.print_red("Hello World",style=cp.underline)# 绿色文字 红色背景cp.print_green("Hello World",bg="red")# 黄色文字 黑色背景 文字样式: 下换线 and 高亮cp.cprint("Hello World",fg="yellow",bg=cp.black,style=["underline","高亮"])# color着色文字# 黑色文字 白色背景 文字样式: 反显text=cp.color("Hello World",fg=cp.black,bg=cp.white,style=cp.reverse)print(text)
Package: cprofiler-manager-wrapper
Installpip install cprofiler-manager-wrapperUsagefromcprofiler_manager_wrapperimportProfilerdeffunc_to_profile():fromtimeimportsleepresult=[]foriinrange(10):result.append(i)sleep(1)a=10return'hello world'withProfiler(func_about_string='func',disable=False):func_to_profile()По итогу будет создана, если ее не было, папкаprof_folder, внутри которой будет лежат файл.profДля открытия .prof файла используетсяsnakeviz-snakeviz prof_folder/<some>.prof
Package: cPrometheus
cPrometheus===========Make `prometheus_client` go faster, with zero effort.```import cPrometheus  # MOAR speed# Now do stuff with prometheus_client, but fasterimport prometheus_client# ...```Note: This is not compatible with multiprocess mode. If you are usingmultiprocess mode, this package is not for you.How It Works------------Internally, `prometheus_client` stores values in a class called `_MutexValue`.As the name suggests, this class is protected by a mutex, and can become abottleneck when placed in tight inner loops.This package monkey patches `prometheus_client` to use its own class,`_AtomicValue`,  which internally uses gcc's `__atomic` operations.Yes, I know `stdatomic` is more portable, but I've got a requirement tosupport gcc 4.8.Further Work------------- Be more portable- Consider stealing Java 8 `DoubleAdder`'s design, if even more speed isneeded.- Can multiprocess be done?
Package: cproto
CProtois a Debugging Protocol client that supports Chrome, Chromium
and Blink based browsers.CProtoprovides you an advanced interface to interact with Chrome
(or another supported browser) instance from your Python code. It’s
greatly useful for automated testing, debugging, profiling or even
complicated page crawling.Getting StartedAPI DocsRoadmapChrome HeadlessExamplesThis project is under development. More updates are coming soon.Getting StartedInstalling CProtoPython2.7or3.3+is required to installCProto.Install the latest version using pip:$pipinstallcprotoRunning Chrome in Debug modeOption 1:Run Chrome in Docker, also in Headless mode.Option 2: Run Chrome on host machine:# «chrome» should point to your installation of Chromechrome--remote-debugging-port=9222"about:blank"# If you haven't created alias for Chrome yet, you could set it on MacOS like that:
# For Chromealiaschrome="/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome"# For Chrome Canaryaliaschrome-canary="/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary"# For Chromiumaliaschromium="/Applications/Chromium.app/Contents/MacOS/Chromium"API DocsChrome Debugging Protocol documentation.CProtocomplies to official Chrome Debugging Protocol, which
implicates CProto’s interface has the same API as Chrome Debugging
Protocol. Consider this example:fromcprotoimportCProto# Print event's response and close CProto connectiondefon_load(response):print(response)cp.close()# Create CProto instance and connect to a browser over CDPcp=CProto(host='127.0.0.1',port=9222)# Enable Page domain eventscp.Page.enable()# Adds Page callback that's fired after is loadedcp.Page.loadEventFired=on_load# Navigate browser to Githubcp.Page.navigate(url='https://github.com')In this examplePage Domain APIwas used to navigate to any arbitrary
URL. There are a whole bunch of other methods and events available for
each Domain, you could browse all of them on the CDP documentation
website.Roadmap☒ Domains support☒ Methods support☒ Events supportUnder consideration:Asynchronous I/O support usingasyncioHeadless Chrome in DockerYou could useDockerto runCProtowith Chrome Headless mode on
any major OS viacommand line interface.# Clone the repository$gitclonegit@github.com:asyne/cproto.git# Build Docker image for Chrome Headless$dockerbuild-tchrome-headlesscproto# Run Docker Chrome Headless mode container with port 9222 being proxied to the host machine$dockerrun--rm-it--cap-add=SYS_ADMIN-p9222:9222chrome-headless# That's all here. Chrome Debugging interface is now up and listening for connections.
# You could check it out by opening this link in your browser – http://localhost:9222.ExamplesCheck outexamples directory.Take a ScreenshotMore examples are coming soon.
Package: cprunner
CP RunnerA helper "script" to quickly run your competitive programs and diff it against the expected output.Quick StartInstall from PyPI.python3-mpipinstallcprunnerThen get the default config file from the repo:On Linux/Mac:wget-O~/.cprunner.jsonhttps://raw.githubusercontent.com/RedDocMD/cprunner/main/config.jsonOn Windows, on theWindows Terminalor on Powershell (get wgethere):wget-O"$HOME\.cprunner.json"https://raw.githubusercontent.com/RedDocMD/cprunner/main/config.jsonFinally run it on your program as:cpr-dA.cppUsage❯pythonsrc/cprunner-husage:cprunner[-h][-i][-r|-d]file

positionalarguments:filefileyouwanttorun

optionalarguments:-h,--helpshowthishelpmessageandexit-i,--ignoreIgnorethecacheentryforthisfile-r,--runJustrunthecode(default)-d,--diffRunthecodeanddiffwithexpectedoutputConfigurationCP Runner requires a JSON config file to know what command to run for what file extension.File locationsThe config file can be at one of the following locations:$HOME/.config/cprunner/config.json$HOME/.config/cprunner.json1$HOME/.cprunner.jsonIf more than one these files are present, then the one first in this list is considered.FormatThe config file is of the following format (examplehere):{"name1":{"ext":["ext1","ext2","ext3"],"command":["command1","command2"]},"name2":{"ext":["ext4","ext5"],"command":["command3"]}}name- This is a name given to that particular entry and has no significance beyond thatext- This is the list of extensions of files which are to be handled by this entry.No extension can appear more than once. This applies across different entries. An extension is specifiedwithoutthe leading dot.command- This is the list of commands that are executed for the specified extensions. Note that,input is taken only for the last command. So the program must be executed in the last step. The use of multiple commands is for languages that need to be compiled first and then run. Also, do not use combinators like&&,||, etc.For each command in thecommandarray, the following placeholders are defined:filename: The complete filename that is passed as an arg to the scriptfilenameWithoutExt: The filename with extension removedfileDir: The directory of the file which is passed as arg.A placeholder can be used as${placeholder}.CacheCP Runner caches the inputs given by the user for the last 100 unique files it was run on. On subsequent runs, it fetches the input from its cache instead of asking the user for input. This expedites the debugging process. The cache ispresistent. To ignore the cache entry and provide input again, pass the-iflag.PlatformsThe script entirely uses platform-independent Python code. It should run on most platforms. I have tested it on Linux and by extension should work on Mac. I have no reason to believe that it won't work on Windows. If you find bugs, please report ithere.LicenseCopyright (©) 2021 Deep MajumderThis software is distributed under the GNU General Public License v3 (GPLv3).For more information, please readLICENSE.
Package: cps110bottle
Bottle is a fast and simple micro-framework for small web applications. It
offers request dispatching (Routes) with URL parameter support, templates,
a built-in HTTP Server and adapters for many third party WSGI/HTTP-server and
template engines - all in a single file and with no dependencies other than the
Python Standard Library.Homepage and documentation:http://bottlepy.org/Copyright (c) 2017, Marcel Hellkamp.
License: MIT (see LICENSE for details)
Package: cpsamd_kernel
This is a pre-alpha proof of concept. Use at your own peril.
For Adafruit Feather M0 on MacOS with Jupyter notebook.InstallationInstall this package:python3 -m pip install cpsamd_kernel
python3 -m cpsamd_kernel.installUsageTo use the kernel from other Jupyter interfaces, start them with--kernelcpsamd.AttributionThis is inspired by Thomas Kluyver’s ubit_kernel for the BBC Micro:bit and
Project Jupyter’s wrapper kernel.