Saravanan666/pypi-org huggingface dataset:
Package: cyper
cyperCythonperformed inline: compile and run your Cython snippets on the fly.It is aiming to provide a flexible alternative to the IPython Cython magic command outside the IPython/Jupyter environment.FeaturesSimple, get rid of the tedious setup files or makefile.Smart, auto-detect and set compiler flags for Numpy and OpenMP.Highly customizable, allow one to set Cython directives, environment variables and compiler options.UsageBasic usageBasic usageimportcypercode=r'''def func(x):return 2.0 * x'''pyx=cyper.inline(code)pyx.func(1)# 2.0Raw string is recommended to avoid breaking escape character.It is convenient (though usually not encouraged) to export the variables from compiled module to the current namespacecyper.inline(code,globals())func(1)Example of using Numpy array and external gsl library, assuming gsl installed at/opt/gsl/code=r'''import numpy as npcdef extern from "gsl/gsl_math.h":double gsl_pow_int (double x, int n)def pow(double x, int n):y = gsl_pow_int(x, n)return ydef pow_array(double[:] x, int n):cdef:int i, m=len(x)double[:] y=np.empty(m, dtype='f8')for i in range(m):y[i] = gsl_pow_int(x[i], n)return y.base'''pyx=cyper.inline(code,include_dirs=['/opt/gsl/include/'],library_dirs=['/opt/gsl/lib'],libraries=['gsl','gslcblas'])pyx.pow(2,6)# 64.0importnumpyasnppyx.pow_array(np.arange(5,dtype='f8'),2)# array([ 0.,  1.,  4.,  9., 16.])Get better performance (at your own risk) with arrayscyper.inline(code,fast_indexing=True)# or equivalentlycyper.inline(code,directives=dict(boundscheck=False,wraparound=False))Advanced usageSet the compiler options, e.g., compiling OpenMP codes with gcccyper.inline(openmpcode,extra_compile_args=['-fopenmp'],extra_link_args=['-fopenmp'],)# use '-openmp' or '-qopenmp' (>=15.0) for Intel# use '/openmp' for Microsoft Visual C++ Compiler# use '-fopenmp=libomp' for ClangOr equivalently write this for shortcyper.inline(openmpcode,openmp='-fopenmp')The cythondirectivesand distutilsextension_argscan also be set in a directive comment at the top of the code snippet, e.g.,code=r'''# cython: boundscheck=False, wraparound=False, cdivision=True# distutils: extra_compile_args = -fopenmp# distutils: extra_link_args = -fopenmp...<code>...'''cyper.inline(code)Set environment variables, e.g., using icc to compilecyper.inline(code,environ={'CC':'icc','LDSHARED':'icc -shared'})Seehttps://software.intel.com/en-us/articles/thread-parallelism-in-cythonSet directory for searching cimport (.pxd file)cyper.inline(code,cimport_dirs=[custom_path]})# or equivalentlycyper.inline(code,cythonize_args={'include_path':[custom_path]})Try settingcimport_dirs=sys.pathif Cython can not find the installed cimport modules.InstallationDependencies: CythonInstallation:pipinstallcyperLicenseCyper is licensed under theMIT License
Package: cypher8
A sample project that exists as an aid to thePython Packaging User Guide’sTutorial on Packaging and Distributing
Projects.This projects does not aim to cover best practices for Python project
development as a whole. For example, it does not provide guidance or tool
recommendations for version control, documentation, or testing.The source for this project is available here.Most of the configuration for a Python project is done in thesetup.pyfile, an example of which is included in this project. You should edit this
file accordingly to adapt this sample project to your needs.This is the README file for the project.The file should use UTF-8 encoding and be written usingreStructuredText. It
will be used to generate the project webpage on PyPI and will be displayed as
the project homepage on common code-hosting services, and should be written for
that purpose.Typical contents for this file would include an overview of the project, basic
usage examples, etc. Generally, including the project changelog in here is not
a good idea, although a simple “What’s New” section for the most recent version
may be appropriate.
Package: cypher-ai-helper
Cypher AI HelperA helper library for creating Cypher queries with OpenAI API.Installationpipinstallcypher-ai-helperUsageStart a local neo4j database:shinfra/start_neo4j.shordockerrun\--nameneo4j\-p27474:7474-p27687:7687\-d\-eNEO4J_AUTH=neo4j/pleaseletmein\-eNEO4J_PLUGINS=\[\"apoc\"\]\neo4j:latestThen you can run the following:Note: You need to set theOPENAI_API_KEYenvironment variable to your OpenAI API key.importfunctoolsfromneo4jimportGraphDatabasefrompydanticimportBaseModel,Fieldfromcypher_ai_helper.mainimportcypher_query,execute_queryfromcypher_ai_helper.utilsimportpydantic_models_to_strclassUser(BaseModel):"""A User class"""id:int=Field(...,description="The id of the user")name:str=Field(...,description="The name of the user")email:str=Field(...,description="The email of the user")classPost(BaseModel):"""A Post class"""id:int=Field(...,description="The id of the post")title:str=Field(...,description="The title of the post")body:str=Field(...,description="The body of the post")user_name:str=Field(...,description="The name of the user who created the post")_q=cypher_query("del-all",pydantic_models_to_str([User,Post]),"Delete all nodes and relations",input_vars=[],func=functools.partial(execute_query,driver=GraphDatabase.driver("bolt://localhost:27687",auth=("neo4j","pleaseletmein")),database="neo4j"))_q=cypher_query("new-user",pydantic_models_to_str([User,Post]),"Create a new user and return the created user",input_vars=["id","name","email"],func=functools.partial(execute_query,driver=GraphDatabase.driver("bolt://localhost:27687",auth=("neo4j","pleaseletmein")),database="neo4j",params={"id":2,"name":"post_user","email":"test"}))
Package: cypher-kernel
This is a Cypher kernel for Jupyter notebooks.InstallationTo install thecypher_kernelfrom PyPI:pipinstallcypher_kernelpython-mcypher_kernel.installDependenciesThe kernel requires a Neo4j database engine running somewhere. For experimentation and under the assumption that Docker is installed, an instance can be spawned as in the following:dockerrun--rm--publish=7474:7474--publish=7687:7687--envNEO4J_AUTH=neo4j/pwdneo4jConfigurationThe Cypher Kernel needs to know to which Neo4j instance to connect, which can be specified in~/.jupyter/cypher_config.yml. In case the file is not existent the following default
configuration is used:user:'neo4j'pwd:'pwd'host:'neo4j://localhost:7687'connect_result_nodes:Falsecmd_timeout:nullUsing the Cypher KernelNotebook: TheNewmenu in the notebook should show an option for
anCyphernotebook.
Package: cypher-query-loader
Cypher Query LoaderA small package that handles loading strings from*.cypherfiles into python strings.  I use this code in packages that query a database and need saved queries.  It lets me keep the code in.cypherformat and use syntax highlighing in my IDE.Important safetly note:This code does not check cypher files for safety or security. End users should only point their QueryLoader objects at file systems they trust and control.
Package: cypher-subgraph
cypher-subgraphA python library and CLI tool that rewrites and generates cypher queries for supporting subgraph.Installationpip install cypher-subgraphCLIUsage: cypher-subgraph [OPTIONS] COMMAND [ARGS]...

  Rewrite or generate query for supporting sub-graph feature.

Options:
  --help  Show this message and exit.

Commands:
  add-to       Rewrite the query read from standard input that the query
               returned values become the member of the specified "subgraph"
               argument.
  delete       Generate a query for deleting specfied "subgraph" argument.
  rewrite-for  Rewrite the query read from standard input that the query is
               executed only in the specified "subgraph" argument.ExamplesThere is no known limitation on the reading queries. All the commands work well
with Cyphernodes,edges, andpaths.Currently, running commands on multiple subgraphs at the same time is not
supported. You should pass the previous rewritten query again to rewrite
queries for multiple subgraphs.add-toRewriting the query which the returned values becomes the member of "sg"
subgraph:cypher-subgraph add-to sg << EOF
MATCH (v) RETURN v
EOFreturns:MATCH (v) WITH v
SET v.__subgraph_sg = truerewrite-forRewrite the query which it only will be executed in the "sg" subgraph:cypher-subgraph rewrite-for sg << EOF
MATCH (v) RETURN v
EOFreturns:MATCH (v { __subgraph_sg: true }) RETURN vdeleteDelete subgraph "sg" meta-data:cypher-subgraph delete sgreturns:MATCH (v) OPTIONAL MATCH (v)-[e]-() REMOVE v.__subgraph_sg REMOVE e.__subgraph_sgImplementationThe tool mimics the subgraph feature using the addition property for the nodes
and edges. For each node and edge which is inside the "x" subgraph, the
property "__subgraph_x" will be set true.
Package: cypherx
CypherxCypherxÃ© uma ferramenta simples e descomplicada para criptografar e descriptografar textosRequerimentospython 3.6.3 ou superior
argparse
richPara desenvolvimentosetuptools
twineInstalaÃ§Ã£opipinstallcypherxOu se prefirir:gitclonehttps://github.com/yuritorresf/cypherx.gitcdcypherx
pythonsetup.pyinstallUsoArgumentos disponÃ­veis via linha de comandocypherx-h

argumentosposicionais:startIniciaoprogramaemmododeinterfacegrÃ¡ficaviaterminal.

argumentosopcionais:-h,--helpMostrarajudaesair-c,--caesarCriptografarcomcifradeCÃ©sar-a,--atbashCriptografarcomcifradeAtbash-e,--encryptEncriptarmensagem-d,--decryptDescriptografarmensagem-mMESSAGE,--messageMESSAGEMensagemasercriptografadaoudescriptografada-kKEY,--keyKEYChaveparacriptografaroudescriptografar[Requeridopara:CÃ©sar]-v,--versionMostreaversÃ£odoprogramaesairImportando como mÃ³dulo# Exemplo de importaÃ§Ã£o de modÃºloimportcypherxcifra_cesar=cypherx.Caesar("Texto a ser criptografado",chave,modo)Para utilizar a interface grÃ¡fica via terminalcypherxstartExemploscypherx-c-e-m"mensagem"-k3cypherx-a-e-m"mensagem"cypherx-c-d-m"mensagem"-k3cypherx-a-d-m"mensagem"ContribuiÃ§Ã£oPull requests sÃ£o bem-vindos. Para mudanÃ§as importantes, abra um problema primeiro para discutir o que vocÃª gostaria de mudar.
Package: cypresspoint
Cypress PointPython helper bits for Splunk add-on developmentFree software: Apache Software License 2.0Documentation:https://cypresspoint.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.2.0 (2021-03-16)First usable release (lots of imported content from random Kintyre developed add ons)0.1.1 (2021-03-11)First release on PyPI.
Package: cyprimes
CyPrimesModule for working withprime numberswritten
inCython.This is just a toy project to try out Cython.Installation# pip install cyprimesTo installCyPrimesa C-compiler (e.g.GCC),which must support ISO C99, is required.UsageFunctionis_prime(number)ReturnsTrueif thenumberis prime. Because it uses the C-typeunsigned long long(C99)
fornumberit raises aValueErrorifnumber < 0ornumber > cyprimes.max_ulong. It raises
aTypeErrorifnumberis not an integer.Functionnext_prime(number):Returns the next prime number afternumber.Functionprevious_prime(number)Returns the previous prime number beforenumber.Functionprimes_between(start, end)Returns atuplewith all prime numbers in the closed interval [start,end].ClassPrimes(limit)This class uses theSieve of Eratosthenesto find all prime numbers up tolimit.An instance of this class supports thelenandsys.getsizeoffunctions, theinand==operators,
subscription (with integer indexes and slices), is iterable, and can be pickled. TwoPrimesobjects are
considered equal if they contain the same prime numbers.
ATypeErrorwill be raised iflimitis not an integer.Methods:All methods raiseTypeErrors if their parameters are not integers andValueErrors
if they are out of range.index(number): Returns the index ofnumber. RaisesValueErrorifnumberis not prime.next(number): Returns the next prime number afternumberorNoneif their is none in the
given range.previous(number): Returns the previous prime number beforenumberorNoneif their is none
in the given range.between(start, end): Returns atuplewith all prime numbers in the closed interval [start,end].WarningAlthough this class uses a bitarray for the sieve, be carefull not to run out of memory:limitsize1007 B1 00063 B10 000625 B100 0006 KiB1 000 00061 KiB10 000 000610 KiB100 000 0006 MiB1 000 000 00060 MiB10 000 000 000596 MiB100 000 000 0006 GiB1 000 000 000 00058 GiBHistory2022-04-13 (0.7.6)Now works with Python 3.102021-11-29 (0.7.5)Fix method Primes.__eq__()2021-06-03 (0.7.4)Bugfix: should now work correctly on 32-bit systems2020-12-31 (0.7.3)No changes2020-07-28 (0.7.2)Correct version in generated C code2020-07-28 (0.7.1)Add checks to avoid overflow2020-07-27 (0.7.0)Add functions next_prime(), previous_prime(), and primes_between()2020-06-25 (0.6.0)Add methods __eq__(), __hash__(), __sizeof__() ,and __repr__() to class Primes2020-06-15 (0.5.0)Add methods next(), previous(), and between() to class PrimesAdd tests2020-06-03 (0.4.3)Fix: README again :blush:2020-06-03 (0.4.2)Fix: README2020-06-03 (0.4.1)Fix: Primes() and is_prime() now raise TypeErrors if the parameter is not an integerFix: Primes.__reversed__() now works correct2020-06-02 (0.4.0)First public release
Package: cyprint
CyPrintCyPrint is a Python package for customized colorful logging.InstallationYou can install CyPrint using pip:pipinstallcyprintUsagefromcyprintimportcyprint,cypbcyprint('info信息',"INFO")cyprint('警告信息',"WARNING")cyprint('成功信息',"SUCCESS")cyprint('错误信息',"ERROR")cyprint('debug信息',"DEBUG")# Create a progress bartotal_events=100# Replace with your total number of eventsforiinrange(total_events):cypb(i,total_events,cyname="Progress")# Your processing code here...Customizing Log MessagesYou can also create custom log messages by specifying the log level:cyprint('Custom message','debug')Progress BarThecypbfunction generates a progress bar:fromcyprintimportcypbtotal_events=100# Replace with your total number of eventsforiinrange(total_events):cypb(i,total_events,cyname="Progress")# Your processing code here...ContributingWe welcome contributions! If you'd like to contribute to CyPrint, please fork the repository and submit a pull request.
Package: cypstrate
CypstrateCYPstrate consists of a collection of machine learning classifiers (random forest and
support vector machines) for the prediction of substrates and non-substrates of the nine
most important human CYP isozymes in the metabolism of xenobiotics (i.e. CYPs 1A2, 2A6,
2B6, 2C8, 2C9, 2C19, 2D6, 2E1 and 3A4). The models are trained on a high-quality data
set of 1831 substrates and non-substrates compiled from public sources.Installation# requires Python 3.8pipinstall-UcypstrateUsageCYPstrate can be called from thecommand line. Examples:# input in SMILES formatcypstrate"CCOC(=O)N1CCN(CC1)C2=C(C(=O)C2=O)N3CCN(CC3)C4=CC=C(C=C4)OC"# prediction is one of "best_performance" (default) or "full_coverage"cypstrate--prediction-modefull_coverage"CCN(C)C(=O)OC1=CC=CC(=C1)C(C)N(C)C"# input can be a filecypstratemolecules.sdf>result.csv# output format can be specifiedcypstrate--outputsdfmolecules.smiles>result.sdf# more information via --helpcypstrate--helpThe model can be used inPython. Calling thepredictfunction of theCypstrateModelclass results in a pandas DataFrame containing the prediction
results for each input molecule.fromcypstrateimportCypstrateModelmodel=CypstrateModel()# "predict" method accepts a list of SMILES representationsdf_predictions=model.predict(['CCN(C)C(=O)OC1=CC=CC(=C1)C(C)N(C)C'])# ... or a list of file pathsdf_predictions=model.predict(['part1.sdf','part2.sdf'])The result DataFrame contains the columns:mol_id: unique number identifying the input moleculeinput: the raw representation provided as input (e.g. OCCCCC)input_type: the representation type of the input (e.g. smiles)source: the input source (e.g. my_molecules.sdf)name: the name of the input molecule (if provided in the input)input_mol: the RDKit molecule parsed from the input representationpreprocessed_mol: the RDKit molecule after preprocessingerrors: a list of errors that occured during reading or preprocessing the inputprediction_1a2, prediction_2a6, prediction_2b6, prediction_2c8, prediction_2c9,
prediction_2c19, prediction_2d6, prediction_2e1, prediction_3a4: probability (between
0 and 1) of being a substrate of the given CYP isozymeneighbor_1a2, neighbor_2a6, neighbor_2b6, neighbor_2c8, neighbor_2c9,
neighbor_2c19, neighbor_2d6,neighbor_2e1,neighbor_3a4: similarity to the most similar
molecule in the corresponding training setContributecondaenvcreate-fenvironment.yml
condaactivatecypstrate
pipinstall-e.[dev,test]ptwContributorsMalte HolmerSteffen HirteAxinya Tokareva
Package: cypyler
A cython compiler for compiling source code in string form.Example:fromcypylerimportTMPCypylercode="""
def add(x, y):
    return x + y
"""cp=TMPCypyler()built_module=cp.build(code)built_module.add(2,3)UsageCypylerInstantiationfromcypylerimportCypylercp=Cypyler('<build_dir>','<libraries>','<include_dirs>')Wherebuild_diris the desired directory (path) for the module to be built on.
The argumentslibrariesandinclude_dirsare lists containing libraries and include directories that should be passed to Cython when compiling.Buildingcp.build('<code>','<suffix>')Wherecodeis the code in string form. Thesuffixargument defaults to.pyx.TMPCypylerInstantiationfromcypylerimportTMPCypylercp=Cypyler('<build_dir_prefix>','<libraries>','<include_dirs>')Wherebuild_dir_prefixis a prefix for the temporary build directory.
The build directory is created using thetempfile.mkdtempfunction from the Python standard library.Buildingcp.build('<code>','<suffix>')Wherecodeis the code in string form. Thesuffixargument defaults to.pyx.Free software: MIT license
Package: cyr
cyrcyr is a simple console program that converts text written in plain ASCII to UTF-8 cyrillic.AboutAuthors:     see theLICENSELicense:     MIT LicenseBug reports:https://github.com/Aleksej10/cyrillic/issuesgit clonehttps://github.com/Aleksej10/cyrillicDependenciespython (>=3.6)torchnumpynohupInstallingInstall through PyPI:pip install cyrDownload.cyr_netsand move them to your home directory (mv .cyr_nets ~/)Example useIf you know you're going to use it multiple times in a short period of time, it is best to use
it as a daemon to avoid loading nets (which takes most of the time) every time you run it.Start daemon:cyr -DConvertfilein place using daemon:cyr -d -f file -iKill daemon when you're done:cyr -KIn case of error check~/.cyr_nohupfor logs.
Check themanpage after installing for more options.
Package: cyrand
This is still under heavy development.This is simply a set of cython definitions for the Boost TR1 Random sampling
library.  For now, the best working model is to inline them using the
“include” cython statement. “Installing” the package only stores the
definitions and C++ code in site_packages so that distutils can find
it later.RequirementsBoostNumPyCythonInstallation and testingInstall viapython setup.py installThere is an example program and setup.py file in the “example”
folder. Build it –inplace and run test_example.py to try it out.
You may need to change the include_dirs to point to your installation
of Boost.
Package: cyrax
Cyrax is a static site generator usingJinja2template engine.It’s inspired byJekyllandHydesite generators and started when I realized
that I’m dissatisfied with both of them for different reasons. When I tried to
come up with name I remembered my favourite character from Mortal Kombat 3 so
here we go.InstallationWell, it’s quite simple, as usually:pip install cyraxCyrax depends on the Jinja2 template library, so you can install it through your OS
package system (in other case pip will install it automatically).Note, please, that in order to use parsers like markdown, or reST, or textile,
corresponding libraries should be installed (either python-markdown or
python-markdown2 are good enough for markdown).UsageRead somedocs, runcyrax--helpto read about command line options, look
atexample site.Also it’s really easy to extend Cyrax, seean example.NewsIndeed something happens with each release and you are probably interested what
(and too lazy to readchangelog).3.1 (17.12.2019)Fix for rendering unicode data to file3.0 (01.10.2019)Python 3 supportsettings.cfgrenamed to.cyrax.cfg2.7 (11.10.2016)support for globs inexcludein.cyrax.cfg2.6 (10.10.2016)make Jinja2doextension available in templates2.4-2.5 (16.08.2011)drop unused dependency on cherrypymake rst render start with h2 in inner sections2.3 (28.12.2010)rework RstPost a bit, removing nasty bugs with template caching2.1-2.2 (21.12.2010)nasty bug with circular dependeciesforget to process tags in RstPost2.0 (18.12.2010)refactored module system, no morecyraxlib, onlycyraxnow existscompletely refactored internal models system, now it uses usual inheritance
instead of some strange composition (which means it’s easier to understand
and to extend now)ability to write posts in reStructuredText (which as well could serve as anexampleto writing your own models).1.0-1.1 (28.11.2010)now most of urls generated on page (by functionurl_for) are relative to
current page, which means that you mostly can view your site without using
web-server (though you’ll need to click onindex.htmlyourself :)some docs, heh. This part needs attention anyway
Package: cy-rwlock
RwLock: Reader-Writer lockIntroductionWe can simply protect a shared resource by a lock. But the performance is not
good because each reader should run one-by-one.A Reader-Writer lock can improve the performance by let readers running
simultaneously.By the way, a writer should wait until all readers done.
In a frequently read situation, a new reader after the writer can also increase
the read count, let read count never decrease to 0.
This will starve writer.RwLock:Let readers running simultaneously.Exclude "multiple readers" and each writer.provide a flag "write_first" to prevent starve writer.After 1.6.0, RwLock can support multi-thread(default) and multi-process.
For multi-process scenario, userwlock = RwLock(cross_process=True)Version controlcy-rwlock XX.YY.ZZXX.YY match the latest git tag.ZZ will increase automatically when new commit appear in master branch.XX: Update when change architectureYY: Update when add or modify some featuresZZ: Update when bugfix or minor changes.UsageInstallpip install cy_rwlockdownload latest version fromhttps://pypi.org/project/cy_rwlock/#filesExamplefrom rwlock import RwLock

rwlock = RwLock()

### READER
rwlock.acquire_r()
# read...
rwlock.release_r()

# OR
with rwlock.lock_r():
    # read...

### WRITER
rwlock.acquire_w()
# write...
rwlock.release_w()

# OR
with rwlock.lock_w():
    # write...Unittestlocal(windows)runscripts\run.batgithubauto run when pushDeployPyPI versionconvertd from git tagseesetup.py: convert_version()local(windows)runscripts\deploy.batgithub -> PyPIWhen release in github
Package: cys2n
This is a [Cython](http://cython.org/) interface to Amazon’s [S2N](https://github.com/awslabs/s2n) Library.See thetestsdirectory for a simple multi-threaded echo server.
The echo client uses Python’s SSLSocket to test it.  S2N client mode
has not been tested yet.Tested under Python 2.7.9 and Python 3.4.InstallingAssuming you have the s2n library installed on your system:`shell $ python setup.py install `