Saravanan666/pypi-org huggingface dataset:
Package: ccp-performance
Centrifugal Compressor Performanceccp is a python library for calculation of centrifugal compressor performance. It uses CoolProp/REFPROP for the gas properties calculations.importccp# ccp uses pint to handle units. Q_ is a pint quantity.# If a pint quantity is not provided, SI units are assumed.Q_=ccp.Q_ps=Q_(3,'bar')Ts=300# Define the fluid as a dictionary:fluid={"CarbonDioxide":0.8,"Nitrogen":0.2,}# Define suction and discharge states:suc0=ccp.State(fluid=fluid,p=ps,T=Ts)disch0=ccp.State(fluid=fluid,p=Q_(7.255,'bar'),T=391.1)disch1=ccp.State(fluid=fluid,p=Q_(6.754,'bar'),T=382.1)# Create performance point(s):point0=ccp.Point(suc=suc0,disch=disch0,speed=Q_(7941,'RPM'),flow_m=Q_(34203.6,'kg/hr'),b=0.0285,D=0.365,)point1=ccp.Point(suc=suc0,disch=disch1,speed=Q_(7941,'RPM'),flow_m=Q_(36204.8,'kg/hr'),b=0.0285,D=0.365,)# Create an impeller with those points:imp=ccp.Impeller([point0,point1])# Get results from the Impeller with methods such asimp.head_plot()imp.disch.T_plot()DocumentationAccess the documentationhere.QuestionsIf you have any questions, you can use theDiscussionsarea in the repository.Contributing to ccpccp is a community-driven project. If you want to contribute to the project, please
checkCONTRIBUTING.md.
Package: ccpp-test
A test for ccppRequirementsPython 3.6+python-fire- command line toolInstallation$pipinstallccpp-testUsageUsage 1$ccpp-testNAMEccpp-testSYNOPSISccpp-test COMMANDCOMMANDSCOMMAND is one of the following:helloUsage 2$ccpp-testhelloHello, World! I'm guaifish.LicenseCopyright © 2020guaifish.
This project isMITlicense.This README was generated byccpp
Package: ccprocesspool
Installpip3 install ccprocesspool --upgrade --userProcess Pool Usage#!/usr/bin/env python3
# _*_ coding:utf-8 _*_
import time
from ccprocesspool import CCProcessPool


class CCProcessPoolTestJob(object):

    @staticmethod
    def count_instant_to_10():
        for i in range(0, 10):
            print('instant', i)

    @staticmethod
    def count_quick_to(param: int):
        for i in range(0, param):
            print('quick', i)

    @staticmethod
    def count_slow_to(param: int):
        for i in range(0, param):
            print('slow', i)
            time.sleep(1)


if __name__ == '__main__':
    p_m = CCProcessPool('test_pool')
    p_m.add_job(CCProcessPoolTestJob.count_instant_to_10, None)
    p_m.add_job(CCProcessPoolTestJob.count_quick_to, (10, ))
    p_m.add_job(CCProcessPoolTestJob.count_slow_to, (10, ))
    p_m.add_job(CCProcessPoolTestJob.count_slow_to, (10, ))
    p_m.check_job()
    while True:
        time.sleep(2)
        p_m.check_job()
        passRestartable Process Usagep_m = CCRestartableProcess('test_process', CCRestartableProcessTestJob.count_slow_to_10)
p_m.start()
while True:
    time.sleep(5)
    p_m.restart()
    pass
Package: cc-pypackage
My customCookiecuttertemplate for a Python package.GitHub repo:https://github.com/robertopreste/cc-pypackage/Documentation:https://cc-pypackage.readthedocs.io/Free software: BSD licenseFeaturesTesting setup withunittestandpython setup.py testorpytest(used by default)Travis-CI: Ready for Travis Continuous Integration testingToxtesting: Setup to easily test for Python 3.4, 3.5, 3.6Sphinxdocs: Documentation ready for generation with, for example,ReadTheDocsBumpversion: Pre-configured version bumping with a single commandAuto-release toPyPIwhen you push a new tag to master (optional)Command line interface using Click (optional)QuickstartInstall the latest Cookiecutter if you haven’t installed it yet (this requires
Cookiecutter 1.4.0 or higher):pip install -U cookiecutterGenerate a Python package project:cookiecutter https://github.com/robertopreste/cc-pypackage.gitThen:Create a repo and put it there.Add the repo to yourTravis-CIaccount.Install the dev requirements into a virtualenv. (pip install-rrequirements_dev.txt)Registeryour project with PyPI.Run the Travis CLI commandtravis encrypt –add deploy.passwordto encrypt your PyPI password in Travis config
and activate automated deployment on PyPI when you push a new tag to master branch.Add the repo to yourReadTheDocsaccount + turn on the ReadTheDocs service hook.Release your package by pushing a new tag to master.Add arequirements.txtfile that specifies the packages you will need for
your project and their versions. For more info see thepip docs for requirements files.Activate your project onpyup.io.For more details, see thecc-pypackage tutorial.CreditsThis Cookiecutter was adapted for my personal needs from the originalCookiecutter-PyPackagebyaudreyr.
Package: cc-python-sdk
cc-python-sdkcc-python-sdk is the Python Software Development Kit used to develop plugins for Cloud Compute.InstallationYou can install cc-python-sdk in two ways: from source or through the pip package manager.Installing from sourceTo install cc-python-sdk from source, follow these steps:Clone the repository:gitclonehttps://github.com/USACE/cc-python-sdk.gitNavigate to the project directory:cdcc-python-sdkCreate a virtual environment (optional but recommended):python3-mvenvvenvsourcevenv/bin/activateInstall the package dependencies:pipinstall-rrequirements.txtInstall the build dependenciespython3-mpipinstall--upgradebuildBuild cc-python-sdk from thepyproject.toml:python3-mbuildInstall the generated wheel (replace  with the version of the wheel file built):pipinstalldist/cc_python_sdk-<version>-py3-none-any.whlorpipinstalldist/*.whlNow you have successfully installed cc-python-sdk from source.Install from pre-built distributionDownload the release from the 'Releases' page of this repository, then install with pip:pipinstall<path/to/wheel/*.whl>Installing through pipTo install cc-python-sdk using pip, simply run the following command:pipinstallcc-python-sdkThis will download the latest version of cc-python-sdk from the Python Package Index (PyPI) and install it into your Python environment.UsageOnce cc-python-sdk is installed, you can start using its functionality in your Python projects. Here's a simple example:importcc_sdk# Use the functions and classes provided by cc_sdkDocumentationTODO. See example pluginhere
Package: ccrdg
CerebralCortex-Random-Data-GeneratorGenerate some random data for Cerebral Cortex Demo Purposes. This script will generate one day worth of sensors data.DependenciesPython 3.5, 3.6, 3.7, 3.8cerebralcortex-kernel - 3.3.9pip3 install cerebralcortex-kernelHow to runpython3 main.pyBy default, random generated data will be stored under home folder, e.g.,(/Users/ali/cc_data/)How to read generated dataAll the data is stored in parquet files formatUse CerebralCortex to read the data/metadatafrom cerebralcortex.kernel import Kernel

CC = Kernel(cc_configs="default", study_name="mguard")
data = CC.get_stream("battery--org.md2k.phonesensor--phone")
data.show()Available stream namesorg.md2k--mguard--00000000-e19c-3956-9db2-5459ccadd40c--battery--phoneorg.md2k--mguard--00000000-e19c-3956-9db2-5459ccadd40c--location--phoneorg.md2k--mguard--00000000-e19c-3956-9db2-5459ccadd40c--data_analysis--gps_episodes_and_semantic_locationorg.md2k--mguard--00000000-e19c-3956-9db2-5459ccadd40c--accelerometer--phoneorg.md2k--mguard--00000000-e19c-3956-9db2-5459ccadd40c--gyroscope--phoneGoogle Colab Notebookhttps://colab.research.google.com/drive/1nxQom7FpzTLEblv_uBbtHUD8TaTN48I5?usp=sharing
Package: ccrootpath
Import project root path tosys.pathfor import local files.IntroIf you have a project with the following structure:| - my_proj
|
| - my_proj / config / models / account_model.py (class AccountModel)
|
| - my_proj / transaction / checker.py (class Checker)Use ccrootpath to simplize yourimportfor local file importing:import ccrootpath
PROJECT_DIR = ccrootpath.set_project_root_path(__file__, 'my_proj')
from config.models.account_model import AccountModel
from transaction.checker import CheckerHow to installpip3 install ccrootpath --upgrade --user
Package: ccs811_exporter
ccs811_exporterPython Prometheus exporter for the ams CCS811 sensorRequirementsAdafruit_CCS811_PythonInstallationpipinstallccs811_exporterUsage$ccs811_exporter-husage:ccs811_exporter[-h][-v][-pPORT][-aADDRESS][-lLABELS][-iINTERVAL][-toTO]optionalarguments:-h,--helpshowthishelpmessageandexit-v,--verboseincreaseoutputverbosity-pPORT,--portPORTexporterport(default:9501)-aADDRESS,--addressADDRESSCCS811I2Caddress(default:0x5b-lLABELS,--labelsLABELSJSONobjectofPrometheuslabelstoapply-iINTERVAL,--intervalINTERVALmeasurementsampleinterval(default:2)-toTOtemperatureoffset(default:-25.00Dockerdockerpullashtreefarms/ccs811-exporter-rpidockerrun-p9501:9501--device/dev/i2c-1ashtreefarms/ccs811-exporter-rpi\--labels'{"zone": "bedroom"}'MIT LicensePermission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
“Software”), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Package: ccsdoc
CCS command documentation helperList the available commands information such as the name, the level, the type and the description.UsageparseUse the command-line toolccsdocto list the commands and configuration parameters either on a given file or in a directory.on a single fileccsdoc parse --path JavaFile.javaon a full directory to process recursively all .java filesccsdoc parse --path java_project_dirCommands or configuration parameters can be output to a directory.ccsdoc parse --path JavaFile.java --to javafile_commands.csvBy default, both commands and configuration parameters are returned. In case only one of them is desired, pass in the corresponding flag:--commandsor--params.Useccsdoc parse -hfor details about the available options.convertThe CSV table containing the commands can be converted to the desired format usingpandoc# e.g. here to Microsoft Word
ccsdoc convert javafile_commands.csv --to docxExamplesWorking examples$ccsdocparse--pathsimulation/SimuEPOSController.java
SimuEPOSController:simulation/SimuEPOSController.java

Command[name=setPosition,type=ACTION,level=ENGINEERING1,desc='For simulator only : update position with a position given as argument.',args=(intactualPosition)]Command[name=checkFault,type=QUERY,level=ENGINEERING1,desc='Check if the controller is in fault.']Command[name=enableAndWriteRelativePosition,type=ACTION,level=ENGINEERING3,desc='Enable controller and go to relative position. Doesn'tcheckcondition.Danger!!!!',args=(intpos)]$ccsdocparse--pathAutochanger.java--params
Autochanger:Autochanger.java

ConfigurationParameter[name=timeToUpdateProtectionSystem,type=long,desc='Time to wait until protection system signals are updated',category=autochanger,units=milliseconds,range=[UNDEFINED,UNDEFINED]]ConfigurationParameter[name=waitTimeForBrakeOC,type=int,desc='Time to wait between activatebrake and disableoperation for online clamps',category=autochanger,units=milliseconds,range=[UNDEFINED,UNDEFINED]]ConfigurationParameter[name=waitTimeForBrakeLR,type=int,desc='Time to wait between activatebrake and disableoperation for linear rails',category=autochanger,units=milliseconds,range=[UNDEFINED,UNDEFINED]]Missing argument example$ccsdocparse--pathSimuLoaderStandalonePlutoGateway.java
SimuLoaderStandalonePlutoGateway:=>simulation/SimuLoaderStandalonePlutoGateway.java:issueatline39:Missingcommandargument'description'.Installationpip install ccsdocAuthorAlexandre Boucaudaboucaud@apc.in2p3.fr(CNRS/IN2P3)LicenseBSD 3-Clause license, see theLICENSE filefor more information
Package: ccsdspy
CCSDSPy - IO Interface for Reading CCSDS Data in Python.This community-developed package provides a Python interface for reading tightly packed bits in theConsultative Committee for Space Data Systems (CCSDS)format used by many NASA and ESA missions. The library is developed with requirements sourced from the community and extensive automated testing.Used ByDo you know of other missions that use CCSDSPy? Let us knowthrough a github issue!InstallationTo install ccsdspypip install ccsdspyUsage ExampleThe following example shows how simple it is to read in fixed length CCSDS packets.importccsdspyfromccsdspyimportPacketField,PacketArraypkt=ccsdspy.FixedLength([PacketField(name='SHCOARSE',data_type='uint',bit_length=32),PacketField(name='SHFINE',data_type='uint',bit_length=20),PacketField(name='OPMODE',data_type='uint',bit_length=3),PacketField(name='SPACER',data_type='fill',bit_length=1),PacketField(name='VOLTAGE',data_type='int',bit_length=8),PacketArray(name='SENSOR_GRID',data_type='uint',bit_length=16,array_shape=(32,32),array_order='C'),])result=pkt.load('mypackets.bin')DocumentationOur documentation is hosted on readthedocs and can be foundhere.Getting HelpFor more information or to ask questions about the library or CCSDS data in general, check out theCCSDSPy Discussion Boardhosted through GitHub.Acknowledging or Citing ccsdspyIf you use ccsdspy, it would be appreciated if you let us know and mention it in your publications. The code can be cited using theDOI provided by Zenodo. The continued growth and development of this package is dependent on the community being aware of it.Code of ConductWhen interacting with this package please behave consistent with the followingCode of Conduct.
Package: ccsds-spp
Python Space PacketThe CCSDS Space Packet Protocol (SPP) was developed by theConsultative Committee for Space Data Systems (CCSDS):The Space Packet Protocol is designed to meet the requirements of space missions to
efficiently transfer space application data of various types and characteristics over a network
that involves a ground-to-space or space-to-space communications link (also called
space link).The figure below illustrates where the Space Packet Protocol is located in the protocol stack. The
Space Packet Protocol provides a unidirectional data transfer service from a single source
user application to one or more destination user applications through one or more
subnetworks. The path from the source user application to the destination user application(s)
through the subnetwork(s) is called a Logical Data Path (LDP).This Python module is an implementation of the CCSDS Space Packet Protocol.
It follows the recommendations given by the latest version of theCCSDS Blue Book.InstallationClone the repository and then install via pip:$ git clone https://gitlab.com/librecube/lib/python-spp
$ cd python-spp
$ virtualenv venv
$ . venv/bin/activate
$ pip install -e .ExampleSee theexamplesfor how to make use of this module.ContributeIssue Tracker:https://gitlab.com/librecube/lib/python-spp/-/issuesSource Code:https://gitlab.com/librecube/lib/python-sppTo learn more on how to successfully contribute please read the contributing
information in theLibreCube guidelines.SupportIf you are having issues, please let us know. Reach us atMatrixor viaEmail.LicenseThe project is licensed under the MIT license. See theLICENSEfile for details.
Package: cc-secure
Pythonized CC Tweaked (ComputerCraft) APIThis fork uses restrictedpython to keep people from hacking youIF YOU ARE HOSTING AS LOCALHOST (not a replit or external server)Before you start Minecraft, enable localhost in mod server configIn case of singleplayer it's located inside your saves folder.
In case of multiplayer check your server folder.Editcomputercraft-server.toml[[http.rules]]host="127.0.0.0/8"action="allow"# change here deny to allowInstall & start python language serverChoose one of the following:Docker way:dockerrun-it-p8080:8080neumond/python-computer-craftInstall & run manually:pipinstallcc-secure
python-mcc-secure.serverStart Minecraft, open up any computer and type:wgethttp://127.0.0.1:8080/py
pyor, if you are running on a replit or an external server, you can change the adress that is beingwgeted to the replit or external server's ip or adressex.wgethttp://a_repl.somebody.repl.copy
pyorwgethttp://420.696.969.9py
py(that ip is not real, instad, replace the ip with the one your server is on)Now you have python REPL in computercraft!
To quit REPL typeexit()and press enter.To run any program:pyprogram.py# relative to current dirpy/path/to/program.pypyis short Lua program that interacts with the server.ccmodule contains almost everythingas isin ComputerCraft documentation:fromccimportdisk,osdisk.eject('right')print(os.getComputerLabel())Opening a file:fromccimportfswithfs.open('filename','r')asf:forlineinf:print(line)Waiting for event (os.captureEventinsteados.pullEvent):fromccimportostimer_id=os.startTimer(2)foreinos.captureEvent('timer'):ife[0]==timer_id:print('Timer reached')breakUsing modems:fromccimportperipheralmodem=peripheral.wrap('back')listen_channel=5# this automatically opens and closes modem on listen_channelformsginmodem.receive(listen_channel):print(repr(msg))ifmsg.content=='stop':breakelse:modem.transmit(msg.reply_channel,listen_channel,msg.content)Using parallel:fromccimportparallel,osdeffn():os.sleep(2)print('done')parallel.waitForAll(fn,fn,fn)Importing in-game files as modules:fromccimportimport_filep=import_file('/disk/program.py')# absolutem=import_file('lib.py',__file__)# relative to current fileMore examples can be found in this repository.
Package: ccsmeth
Changelogv0.5.0bug fixeschange feature QUAL to SNratio, didn’t work though?hid ‘–n_vocab’ and ‘–n_embed’ in model paramsadd attbigru2s2/attbilstm2s2 modelsupdate new version of pretrained model paramsv0.4.1handle ValueError when fetching bam items in call_freqb modulechange pytorch max version to 1.12.1using logging instead of print/sys.stderr.writev0.4.0optimieze call_mods module, faster generating of modbam filev0.3.4replace ‘numpy.float’ by ‘float” in extract_features and call_mods modulesv0.3.3more robust operation for MM/ML tagsupdate the call_mods model (v1 to v2), use shared params for both rnn and attentionupdate aggregate model (v2 to v2p)v0.3.2fix bug (0-pos CG in reverse strand) of call_freqb moduleadd output check at the start of call_mods/call_freqbupdate aggregate modelv0.3.1optimize call_mods moduleadd aggregate mode in call_freqb modulerelease a stable call_mods model and a stable call_freqb aggregate modelv0.3.0add multi-threads support for reading .bam by pysamforce mod prob discrete integer in [0, 255], which means mod prob in [0, 1), in ML tagfix align_hifi module, enable minimap2 and bwaupdate requirementsv0.2.3more options in train modulemulti-gpu support in call_mods and trainm modulesadd denoise moduleNote: skip 0.2.2, cause 0.2.2 has been deleted in pypi (https://pypi.org/manage/project/ccsmeth/history/)v0.2.1minor fixeschange default mode in extract moduleimprovements in call_freqb modulev0.2.0use hifi reads instead of subreads as inputmodbam supportuse (chrom, pos, strand) as key instead of (chrom, pos) to handle CG mismatch in CCS read when call_freqv0.1.2add pbmm2 as default alignerenable gzip outputv0.1.1bug fixesv0.1.0initialize
Package: cc-sphinx-changelog
Automatically generates a releases-style changelog based on conventional commit messages.Free software: GNU General Public License v3Documentation:https://cc-sphinx-changelog.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.## v0.6.1 (2020-12-28)### Fixsetup.py: adds missing dependencies## v0.6.0 (2020-12-28)### Featadds sphinx directiveadds optional printing of colors (default on)## v0.5.2 (2020-12-26)### Refactormoves main program into a simple function## v0.5.1 (2020-12-25)### Fixfixes heading grouping logicsetup.py: adds missing dependencies## v0.5.0 (2020-12-25)### Featadds color output and formats to stdout nicely### Refactorputs everything into functions## v0.4.1 (2020-12-24)### Fixbetter implementation of getting commit messages## v0.4.0 (2020-12-24)### Featparses log and prints rST style release version summaries## v0.3.0 (2020-12-24)### Featautomatic bump version on push## v0.2.0 (2020-12-24)### Fixtags: adds v prefix to tags## 0.1.1 (2020-12-24)### Fixcz: fixup conventional commit bumping## 0.1.0 (2020-12-24)### Featinitial commit
Package: ccstorage
Installpip3 install ccstorage --upgrade --userCCIO: Simple local file read/writecontent_str = CCIO.read_string(__absolute_path__)
CCIO.save_string(content_str, __absolute_path__)CCStorage: Local key-value storageConcat__root_dir_path__with__relative_file_path__to storage key value.When inited, storage will automatically read.Then change keys and values, callwrite()to save to file.storage = CCStorage(__root_dir_path__, __relative_file_path__)  
storage['pending_work'] = True
storage['work_id'] = '123456'
storage.write()

storage = CCStorage(__root_dir_path__, __relative_file_path__)  
print(storage['pending_work'], storage['work_id'])To enable read/write at each value get/set, setforce_reload_at_data_accesstoTrue:storage.force_reload_at_data_access = True
Package: ccstudiodss
Build and load Code Composer Studio projects from the command line using the Java DSS library.Presently this is in use with Python 3.7.  It likely works with other versions.  In general I am often willing to support as far as 2.7 and 3.4+.  There are no tests presently but we could likely make some leveraging thealtendky/docker-ccstudio8repository.
Package: ccsyspath
ccsyspath helps you find the system include path of your c/c++ compilerSupports gcc and clang c compilers.UsageYou can retrieve all of the system include paths for a specific compiler with
thesystem_include_pathsfunction.importccsyspathpaths=ccsyspath.system_include_paths('/path/to/clang')InstallingYou can install the latest stable version from PyPI$pipinstallccsyspathOr, you can install the latest development version from GitHub$pipinstallgit+git://github.com/AndrewWalker/ccsyspath.gitAcknowledgementsThis package is based on the approach demonstrated in astackoverflow answerlicensed under thecc by-sa 3.0 with attribution requiredContributingIf you experience problems with ccsyspath,log them on GitHub. If you
want to contribute code, pleasefork the codeandsubmit a pull request.
Package: cct
# cct
SAXSCtrl revisited## Introduction
cct stands for CREDO Control Tool: an instrument control, data acquisition and processing software for CREDO, a laboratory-based small-angle X-ray scattering instrument (http://credo.ttk.mta.hu).## Derivative works
As this program is strongly tied to the instrument, it is not practical to use without it on its own. However, forking this project and adapting to other instruments is highly encouraged. Until we have a decent documentation, please contact the author of the project (András Wacha) directly, if you need help.