Saravanan666/pypi-org huggingface dataset:
Package: cpplint-junit
Tool that convertscpplintoutput to JUnit XML format.  Use on your CI servers to get more
helpful feedback.Note: Theadvanced PyPI hosted version of cpplintsupports JUnit output format natively and is preferred to this package.InstallationYou can install, upgrade, and uninstallcpplint-junitwith these commands:$pipinstallcpplint-junit$pipinstall--upgradecpplint-junit$pipuninstallcpplint-junitUsageRedirectcpplintstderrto a file:$cpplintmain.cpp2>cpplint.txtConvert it to JUnit XML format:$cpplint_junitcpplint.txtcpplint_junit.xmlReleases2.0.1 - 2020-03-29Fix trove classifiers.2.0.0 - 2020-03-29Drop Python 2.7.1.3.0 - 2019-12-15Drop Python 3.4 and support Python 3.8.Include license file.1.2.1 - 2019-10-14Fix missingrequirements.txtfrom source distribution that caused package to not install.1.2.0 - 2018-07-09Drop Python 3.3 and support Python 3.7.1.1.0 - 2016-12-31Support Python 3.6.1.0.1 - 2016-03-05Fix Python 2.7 compatibility by catching more general IOError on file not found.1.0.0 - 2016-02-15Release 1.0.  Increase test coverage.0.2.3 - 2015-11-14Use “error” consistently rather than “failure” to refer to results fromcpplint.0.2.2 - 2015-11-14Mis-release.0.2.1 - 2015-10-24Added console entry point.0.1.0 - 2015-10-24First release.
Package: cppparallelbufferedsort
parallel_buffered_sort from C++ for Python (Windows)pip install cppparallelbufferedsortMicrosoft Visual C++ Redistributable is necessaryhttps://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170fromcppparallelbufferedsortimportparallel_buffered_sortimportnumpyasnpa1=np.random.randint(0,2000000,1000000)a2=parallel_buffered_sort(a1)fl=a1/3f2=parallel_buffered_sort(fl)# Out[6]:# array([0.00000000e+00, 6.66666667e-01, 1.33333333e+00, ...,#        6.66664333e+05, 6.66664667e+05, 6.66664667e+05])# %timeit parallel_buffered_sort(fl)# 18.4 ms ± 128 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)# %timeit np.sort(fl)# 61.5 ms ± 90.1 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)
Package: cpppo
Cpppo is used to create event-driven state machines which consume a stream
of input and generate a series of state changes, or an indication that no
progress is possible due to (for example) exhaustion of input symbols.This is useful for creating parsers for complex grammars describing
languages, including binary computer protocols.An example included with cpppo is an implementation of a subset of the
EtherNet/IP CIP language used by some industrial control equipment, such as
Rockwell’s ControlLogix Controllers.  The cpppo.server.enip package can be used
to create Python programs which can parse requests in this protocol (eg. as a
server, to implement something like a simulated Controller) or originate
requests in this protocol (eg. as a client, sending commands to a Controller).In addition, the ability to read, write and poll remote PLCs of
various types including Modbus/TCP is provided.
Package: cpp-projects-manager-cli
CPM / C++ Project Manager.CPM is a high-level Python Command Line Program.Still in a buggy alpha state.CPM using requiredPython interpreter and Mingw g++/gcc complierpythonversion3.8<3.10CPM InstallationInstall cpm with pippipinstallcpp-projects-manager-clicreate c++ project with CPMpython-mcpminit<project-name><directory>!directoryisOptional_____   _____    __  __ 
    / ____| |  __ \  |  \/  |
   | |      | |__) | | \  / |
   | |      |  ___/  | |\/| |
   | |____  | |      | |  | |
    \_____| |_|      |_|  |_|
   
          welcome to cpm
   
project author: example  
project description: demo              
project entry point(main.cpp): 
successfully create your example projectcpm.json{"name":"example","version":"1.0.0","author":"example","description":"demo","entry_point":"main.cpp"}run projectpython -m cpm run <c++-file-name> !OptionalHow to add C++ App in projectFirst create c++ appcreate apppython-mcpmmakeapp<app-name><directory>!directoryisOptional$~python-mcpmmakeapptest$~successfullycreateyourtestappapp add in cpm.jsonopen cpm.json file in any text editor. and add c++ app{...."apps":[{"name":"test"}]}again run your project with app$~ > python -m cpm run
  [ build ] --- test --- [ D:\......\test.a ] 0.174ms
  combine compile main.cpp
  compile successfully. 0.617ms
  Hello World!Run new terminal$~ > python -m cpm run --new-terminal
  [ build ] --- test --- [ D:\......\test.a ] 0.174ms
  combine compile main.cpp
  compile successfully. 0.617ms
  Hello World!Custom Commandmake folder and file on current work dir:|- extra_commands
|        |
|----- __init__.py
|----- commands
|           |
|--------- __init__.py
|--------- example.py
|- test
|- cpm.json
|- main.cppexample.pyfrom cpm.core.base import BaseCommand

class Command(BaseCommand):
    """
    Example command
    """
    help = 'Example command'
    description = 'Example command'
    
    def add_arguments(self, parser):
        parser.add_argument('--example', action='store_true', help='Example argument')

    def handle(self, *args, **options):
        print('Example command', options)check custom command$~ python -m cpm --help

    Type 'python -m cpm help <subcommand>' for help on a specific subcommand.

    Available subcommands:

    Commands:
       example                 Example command
       init                    Creates a c++ project.
       makeapp                 Creates a c++ app.
       run                     Runs c++ project.run custom command$~ python -m cpm example
    Example command {'traceback': False, 'example': False}Command help$~ python -m cpm example --help
usage: __main__.py example [--example] [-h] [-v] [--traceback]

Example command

optional arguments:
  --example      Example argument
  -h, --help     show this help message and exit
  -v, --version  Show program's version number and exit.
  --traceback    Raise on CommandError exceptions.
Package: cpppy
cpp.pyImplementing C++ Semantics in PythonDisclaimerThis project is an experiment.Please don't use it in any sensitive context.InstallationFrom PyPIpipinstallcpppyFrom Source (Dev)gitclonehttps://github.com/tmr232/cpppy.gitcdcpppy
poetryinstall
poetryshellUsage & ExamplesImportmagicinside a module and watch the magic happen.Note that it only works inside modules.
Importing it in an interactive shell or a Jupyter Notebook won't work.That said, functions from said modules can be imported and used
in regular Python code.# examples/greeter.pyfromcppimportmagicclassGreeter:name:strpublic()defGreeter(name):this.name=nameprint(f"Hello,{this.name}!")def_Greeter():print(f"Goodbye,{this.name}.")defmain():greeter1=Greeter(1)greetee2=Greeter(2)>>>pythonexamples/greeter.py
Hello,1!
Hello,2!
Goodbye,2.
Goodbye,1.PresentationsImplementing C++ Semantics in Python(Core C++ 2021)
Package: cppradixsort
parallel_radixsort from C++ for Python (Windows)pip install cppradixsortMicrosoft Visual C++ Redistributable is necessaryhttps://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170fromcppradixsortimportparallel_radixsortimportnumpyasnpa1=np.random.randint(0,2000000,1000000)a2=parallel_radixsort(a1)# a1# Out[3]: array([ 173641, 1852805, 1959843, ..., 1094448,  430953, 1021449])# a2# Out[4]: array([      0,       0,      13, ..., 1999996, 1999996, 1999997])# %timeit parallel_radixsort(a1)# 4.96 ms ± 32.6 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)# %timeit np.sort(a1,kind='stable')# 63.8 ms ± 72.9 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)
Package: cppstd
cppstdIn what followspythonis an alias forpython3.5or any later
version (python3.6and so on).InstallationInstall the latestpip&setuptoolspackages versions:python-mpipinstall--upgradepipsetuptoolsUserDownload and install the latest stable version fromPyPIrepository:python-mpipinstall--upgradecppstdDeveloperDownload the latest version fromGitHubrepositorygitclonehttps://github.com/lycantropos/cppstd.gitcdcppstdInstall dependencies:python-mpipinstall--force-reinstall-rrequirements.txtInstall:pythonsetup.pyinstallDevelopmentBumping versionPreparationInstallbump2version.Pre-releaseChoose which version number category to bump followingsemver
specification.Test bumping versionbump2version--dry-run--verbose$CATEGORYwhere$CATEGORYis the target version number category name, possible
values arepatch/minor/major.Bump versionbump2version--verbose$CATEGORYThis will set version tomajor.minor.patch-alpha.ReleaseTest bumping versionbump2version--dry-run--verbosereleaseBump versionbump2version--verbosereleaseThis will set version tomajor.minor.patch.Running testsInstall dependencies:python-mpipinstall--force-reinstall-rrequirements-tests.txtPlainpytestInsideDockercontainer:docker-composeupBashscript (e.g. can be used inGithooks):./run-tests.shPowerShellscript (e.g. can be used inGithooks):.\run-tests.ps1
Package: cppstream
This is a library that implements C++-style IO with streams in Python.
It isnota wrapper around the actual C++ streams, but instead provides a
higher-level interface that is more Pythonic.For example#include<iostream>#include<fstream>std::cout<<"Hello, "<<"World!"<<std::endl;std::ofstreamostrm("test.txt");ostrm<<"Hello, World!"<<std::endl;translates toimportcppstreamcppstream.cout<<"Hello, "<<"World!"<<cppstream.endlostrm=cppstream.OutFileStream()# or using the context managerwithcppstream.OutFileStream()asofs:ofs.open("test.txt")ofs<<"beans"<<cppstream.endlSee the inheritance diagram:
Package: cpp-stresst
cpp_stresstThis is a package to help stress test your C++ solutions to problems.You should have your directory structured like this:C++ solutionTest Folder1.in1.outAll test cases should have a file with the same name ending with.inand a file ending with.outfor input and output, respectively.To test your solution onstdin/stdout, run this command.c_stresst [SOLUTION FILE] [TEST FOLDER]If you ever forget this command, simply type this into your terminal:c_stresst --helpOnly supported on linux systems (tested on Ubuntu), uses g++ to compile.
Package: cppt
Competitive Programming Practice ToolThis document is an overview of the tool. For complete details, refer to thedocumentation.AboutA command-line tool to automate your competitive programming workflow without cluttering your workspace with testcase data.Setup GuideMake sure you have python version >= 3.6 and pip installed.
In case you do not know about installing packages in python you can check outhttps://packaging.python.org/tutorials/installing-packages/.After getting everything ready,
simply type the commandpip install cpptto install the toolAfter the tool is installed type the commandcpptyou should see the following help text.Usage:cppt[OPTIONS]COMMAND[ARGS]...

Options:-h,--helpShowthismessageandexit.

Commands:compilecompilesourcecodeconfiggetlocationofconfigfileorresetconfigfilecreatecreateataskfetchretrievetestcasedatafromonlinejudgerunruncodeagainsttestcasestccommandsrelatedtotestcasedatatestbruteforcetestingTo fetch testcase data from an online judge, you will needcompetitive companionbrowser extension.FeaturesFetch testcase data from an online judge.Compile (if applicable) and run source code against predefined or randomly generated testcases.Add your testcases to run your code on or enter the testcase interactively.Create a source code file with your saved templates.Open the source code automatically in your favourite editorDeveloper GuideIf you want to experiment with the project
you needpyenvandpipenvclone the repocd into the created folderthen use the commandpipenv install -e . --dev
Package: cpptools
关于CppToolsCppTools提供一系列脚本工具，帮助开发者更有效率的配置管理C/C++项目。包括:conanbuild -- 用于快速构建conan package，定义了一套默认的package命名规则。详见conanbuild说明startcpp -- 用于快速创建一个新的C/C++项目：创建目录结构，生成CMake框架脚本。详见startcpp使用说明oasc -- 用于从OpenAPI 文档生成C/C++客户端代理源码及工程项目。详见oasc使用说明
Package: cpptopy
cpptopyThis is a project that helps you run C++ programs inside your python program. You can write your c++ code as is, inside a triple quoted
string and call the run function , it will run the c++ code and return the output.In the backend , the module creates a cpp source code file(with the name win_cpptopy.cpp) with the code that you pass as argument and executes the source code through command promt USING G++ COMPILER(MAKE SURE IT IS DOWNLOADED AND ADDED TO PATH) and delets all the aditional files it creates after the execution of the code. MAKE SURE THERE ARE NO COMPILE ERRORS IN THE C++ CODE THAT YOU WRITE AND ALSO MAKE SURE THAT THE STRINGS INSIDE THE C++ CODE ARE PROPERLY QUOTED TO NOT MESS WITH THE PYTHON SYNTAX.ALSO NOTE THAT YOU CANNOT INTERACT DIRECTLY WITH THE C++ CODE ONCE IT RUNS.. SO FINCTIONS LIKE cin WONT WORK. PLEASE TAKE YOUR INPUTS THROUGH
PYTHON.Import the run_cpp object from the cpptopy module and create an instance as A. Then Call A.help() methord as it returns Further documentaion off each methord and best practices.INSTALLATION1)Open Commmand promtCheck if pip is installed and added to path(write [pip --version] without brackets and if you get no errors then it's fine , otherwise
install pip and add it to PATHIn the command prompt type :pip install cpptopyand press ENTER.UsageEXAMPLE:from cpptopy import run_cppN = input("Enter number")from cpptopy import run_cppA = run_cpp()n = input("Enter a number")a ='''
#includeint main()
{
int x =''' + n + ''';std::cout << "The number is" <<''' + n + ''';}
'''ans  = A.run(a)print(ans)
Package: cpputils
CPP-Utils Python PackageInformationThis package was created by starting C ++ methods to incorporate into my python implementations.To make things easier for me, lightweight public libraries were included (especially to carry out string operations):hash-librarystrtkThe following methods have currently been implemented:ini_load (flexible and ligthweigh ini to dict parser, Faster Than Configparser)eval_type (method to parse strings in python-types e.g. int | bool | timestampsimple_hmac (vectorized c++ hmac implementation)default_ca_path (python function to find a default ssl / ca certificate path)In the future the following will be implemented:more hash methodsc++ optimized grep methodsc++ optimized url-tools methodsCurrently, the package was only tested for LinuxUsagefromcpputilsimportini_load,default_ca_path,eval_typeini_load(files={"s3_configs":["examples/config/aws_config","examples/config/aws_credentials","examples/config/.s3cfg"]},sections=["default","qa"],keys={"signurl_use_https":["signurl_use_https"],"aws_access_key_id":["access_key"],"aws_secret_access_key":["secret_key"],"endpoint_url":["endpoint-url","host_base"],"region_name":["bucket_location","region","aws_default_region"],"service_name":["service_name"],"verify":["ca_certs","aws_ca_bundle","ca_bundle"],},defaults={"region_name":"us-east-1","signurl_use_https":True,"verify":default_ca_path(),"service_name":"s3",})InstallationpipinstallcpputilsDevelopmentPrerequisitesA compiler with C++17 supportPip 10+ or CMake >= 3.4 (or 3.8+ on Windows, which was the first version to support VS 2015)Ninja or Pip 3.8+InstallationJust clone this repository and pip install. Note the--recursiveoption which is
needed for the pybind11 submodule:gitclone--recursivehttps://gitlab.blubblub.tech/sgeist/cpputils.git
pipinstall.Publishtwineupload-rpypi$(lsdist/cpputils-1.0.0-*.whl)--verbose
Package: cpp-uuid
cpp_uuidis a Python library written inC++.
It provides an API that, in most cases, covers usage of Python’s builtinUUIDclass.
The library implements generate, convert to string and parse UUIDs version 4.
It is also possible to convert UUIDs fromuuidstandard or compare between them.In most cases you can just replace import section of your code.fromcpp_uuidimportUUID,uuid4item_uuid=uuid4()other_uuid=UUID('c5fcf05c-6320-47ec-98c0-be84fdb1c321')Module tested on Python versions from 3.8 to 3.12.This library usesUUID4generation fromcrashoz/uuid_v4 library.BenchmarksPerformance comparisons were made with the standarduuidand thefastuuidlibrary,
which is written inRust.Benchmark results (106times for each test)uuid(ms)fastuuid(ms)cpp_uuid(ms)UUID from str1543251172UUID from bytes1112280381uuid4()26761049131str(uuid)859229120uuid.bytes15213490hash(uuid)15110456compare UUIDs1236846
Package: cppyabm
General purpose agent-based modeling library to integrate C++ and PythonCppyABM is a free open-source header-only library that enables agent-based modeling by providing essential tools in both C++ and Python as well as mixing both in a single model. The modeling in both C++ and Python follows similar semantics and style. Therefore, a model developed in one languages can be conveniently transferred to another. In addition, CppyABM provides binding tools to specifically expose certain parts of a model written in C++ for further development in Python. This enables users to take the advantage of both languages simultaneously. CppyABM usesRTvisualizefor browser-based real-time visualization. The link for the completedocumentation. Seeexamplesfolder as showcase of CppyABM utility.InstallFor an extended version of the available installation options, seedocumentation.For Python developmentUsing pip manager (in case any error occured, install using the next option):$ pip install --upgrade cppyabmOr, download the package and in the root folder, command:$ python3 setup.py installFor C++ developmentThe library can be also installed solely for C++ development using,
$ git clonehttps://github.com/janursa/CppyABM$ cd CppyABM && mkdir build && cd build
$ cmake .. -DCPP=TRUE
$ make installFor Python-C++ developmentIn order to create a mixed model using both languages of C++ and Python, in addition to CppyABM,pybind11needs to be installed. It can be either seperately installed according to the instruction given onpybind11-installation, or can be included in a project using Cmake. Seedocumentation.DockerThe Docker image "janursa/cppyabm" provides an environment where the lastest version of CppyABM, pybind11, and RTvisualize are installed. The following command will land you in a container with all set ready for development.$ docker run --rm -t -i janursa/cppyabm /bin/bashTo run the examples with visualization, two seperate bash of same container needs to be executed; one for running the model and another for visualization. To do so,[1]$ docker run -d -p 1818:8050 -t janursa/cppyabm /bin/bashRuns the image in a detached mode and maps the port number 8050 (container) to 1818 (host). Then,[2]$ docker psGet theCONTAINER ID,[3]$ docker exec -it container_id bashOnce in the container, navigate to the example folder and run the model. In parallel, open another bash using the exact command as [3]. But, this time run themonitor_script.pyfor visualization. It will output the graphs to the porthttp://0.0.0.0:1818.LicenseThis project is licensed under the MIT License - see the LICENSE.md file for detailsTo citeCite this library using.AuthorsJalil NourisaUseful linksFamiliarity withpybind11is helpful during the Python binding process.Contributing to CppyABMIn case of encountering a problem, pls report it as an issue or contant the author (jalil.nourisa@gmail.com)
Package: cppyy
cppyy provides fully automatic, dynamic Python-C++ bindings by leveraging
the Cling C++ interpreter and LLVM.
It supports both PyPy (natively), CPython, and C++ language standards
through C++17 (and parts of C++20).Details and performance are described inthis paper,
originally presented at PyHPC’16, but since updated with improved performance
numbers.Full documentation:cppyy.readthedocs.io.Notebook-based tutorial:Cppyy Tutorial.For Anaconda/miniconda, install cppyy fromconda-forge.Change log:https://cppyy.readthedocs.io/en/latest/changelog.htmlBug reports/feedback:https://github.com/wlav/cppyy/issues
Package: cppyy-backend
C/C++ wrapper around Cling, the LLVM-based interactive C++ interpreter, for
use by cppyy, providing stable C and C++ Reflection APIs.The compilation of cppyy-backend is very fast, but it will pull in
cppyy-cling, which takes a long time to install if there is no matching wheel
for your platform, forcing a build from source. By default, all cores will be
used, but it is also recommended to add the verbose flag to see progress:$ python -m pip install –verbose cppyy-backendFor further details, see cppyy’s installation instructions:https://cppyy.readthedocs.io/en/latest/installation.htmlCling documentation is here:https://root.cern.ch/clingFind the cppyy documentation here:http://cppyy.readthedocs.ioChange log:https://cppyy.readthedocs.io/en/latest/changelog.htmlBug reports/feedback:https://github.com/wlav/cppyy/issues
Package: cppyy-cling
A repackaging of Cling, the LLVM-based interactive C++ interpreter, as a
library for use as the backend to cppyy. This version of Cling is patched for
improved performance and better use with Python.Wheels are available for the major platforms, but if you have to build from
source, building of LLVM will take a long time. By default, all cores will be
used, but it is also recommended to add the verbose flag to see progress:$ python -m pip install –verbose cppyy-clingFor further details, see cppyy’s installation instructions:https://cppyy.readthedocs.io/en/latest/installation.htmlCling documentation is here:https://github.com/vgvassilev/clingFull cppyy documentation is here:http://cppyy.readthedocs.io/Change log:https://cppyy.readthedocs.io/en/latest/changelog.htmlBug reports/feedback:https://github.com/wlav/cppyy/issues
Package: cppyythonizations
A collection ofPythonizationsforcppyy.These mostly work around known limitations of cppyy or provide some
reusable extensions such as Python pickling of C++ classes.Current Release InfoWe release this package very frequently, typically with most pushes to the master branch.NameDownloadsVersionPlatformsInstall with CondaYou can install this package with conda. Download and installMiniconda, then runconda config --add channels conda-forge
conda create -n cppyy -c flatsurf cppyy cppyythonizations
conda activate cppyyInstall with pippip install cppyythonizationsBuild from the Source Code RepositoryWe are following a standard autoconf setup, which is a bit odd in the Python
world. You can build this library with the following:git clone --recurse-submodules https://github.com/flatsurf/cppyythonizations.git
cd cppyythonizations
./bootstrap
./configure
make
make check # to run our test suite
make install # to install into /usr/localNote that this is a pure Python library, so essentially all this does is setup
asetup.pyfile and run it.Build from the Source Code Repository with Conda DependenciesTo build this package, you need a fairly recent C++ compiler and probably some
packages that might not be readily available on your system. If you don't want
to use your distribution's packages, you can provide these dependencies with
conda. Download and installMiniconda, then
rungit clone --recurse-submodules https://github.com/flatsurf/cppyythonizations.git
cd cppyythonizations
conda create -n cppyythonizations-build
conda env update -n cppyythonizations-build -f environment.yml
conda activate cppyythonizations-build
./bootstrap
./configure
makeBuild from the Source Code Repository with CondaThe conda recipe inrecipe/is built automatically as part of our Continuous
Integration. If you want to build the recipe manually, something like the
following should work:git clone --recurse-submodules https://github.com/flatsurf/cppyythonizations.git
cd cppyythonizations
conda activate root
conda config --add channels conda-forge
conda config --add channels flatsurf
conda install conda-build conda-forge-ci-setup=2
export FEEDSTOCK_ROOT=`pwd`
export RECIPE_ROOT=${FEEDSTOCK_ROOT}/recipe
export CI_SUPPORT=${FEEDSTOCK_ROOT}/.ci_support
export CONFIG=linux_
make_build_number "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CI_SUPPORT}/${CONFIG}.yaml"
conda build "${RECIPE_ROOT}" -m "${CI_SUPPORT}/${CONFIG}.yaml" --clobber-file "${CI_SUPPORT}/clobber_${CONFIG}.yaml"You can then try out the package that you just built with:conda create -n cppyythonizations-test --use-local cppyythonizations
conda activate cppyythonizations-testMaintainers@saraedum@videlec