Saravanan666/pypi-org huggingface dataset:
Package: ctwin32
ctwin32ctwin32 is a pure Python module, that wraps some Windows APIs (win32) by usingctypes. Since it is my personal
playground, the selection of supported APIs and the way those are wrapped are
solely dictated by my needs and preferences.ctwin32 isdefinitelynot a replacement forpywin32, although it serves that purpose
for me (in conjunction withcomtypes).
Compared with pywin32 the coverage of ctwin32 is downright tiny.While there is already another Python module that does something very similar
to ctwin32 (pywin32-ctypes),
it has a different purpose (namely to serve the internal needs of itscreator).See thesamples directoryfor several instances of how ctwin32 can be used.Note: Even though ctwin32 is a pure Python module, it can of course only be used
on Windows. Therefore, thewheel packages providedare intentionally tagged with the x86, x64 and and arm64 Windows platform tags
(in terms of content, those are the same). This is just to keeppipfrom installing them on a non-Windows OS.
Package: ctwrap
ctwrapPython wrapper for batch simulations (e.g. Cantera).DocumentationSphinx documentationincludes:A brief summary (seeOverview),Typical batch simulation descriptions (seeBatch Jobs), andJupyter Notebookswith illustrated examples.PhilosophyThe software was developed with the following objectives in mind. It should:provide a low-level interface to essentialcanteracapabilitiescreate a flexible framework for generic simulationsprovide a command line interfacebe easily scriptable (using YAML configuration files)enforce units (viapint)enable parallel execution of (single-threaded) simulations (viamultiprocessing)enable simple re-import of simulation results into native Cantera objectsAlthough core functions of this software are continuously tested, there
may be remaining bugs, non-working features, or other issues that could prevent a user from using this software to their specification. If you find problems, please report them in the issue tracker.InstallationThe simplest approach is to installctwrapviapip, i.e.$ pip install ctwrapNote thatctwrapitself does not depend on a Cantera installation (only
simulation modules do). It is recommended to install Cantera before ctwrap in a separate step.ExampleA parallel batch job for adiabatic flame calculations uses thefreeflamemodule (modified from Cantera'sadiabatic_flame.pyexample). Based on the YAML configuration given as a reference, a variation of 12 equivalence ratio values is run as:$ ctwrap run freeflame freeflame.yaml --parallelResults are written to a single filefreeflame.h5.
Package: ctx19
Contextual19 Python InterpreterThis module provides you 2 classes to work with Ctx19.You canread here about Contextual19.ctx19.parsers.Contextual19ParserThis is just regular parser that takes rules in object representation.InitializationTo initialize this class, just call it and take there rules in object representation:fromctx19.parsersimportContextual19Parserdata=[{"if":...,"then":...},...]parser=Contextual19Parser(data)Data you passed will be stored inparser.data.KeywordsboolsaveContext(default isTrue)This parameter set transformation resistance of the rules. Suppose, we have this sentence:[{a:0}, {a:1}, {a:2}],and this rules (inline-written):#1:if previous a is 0   then a becomes 2,#2:if previous a is 1   then a becomes 3.After executing rule #1 sentence becomes:[{a:0}, {a:2}, {a:2}]Now the rule #2 is not appliable in this contexts. That is what means "transformation nonresistance". To make the rule #2 work,saveContextmust be set toTrueand Ctx19 module will remember original sentence before applying rules (viadeepcopy, so some additional memory will be needed).Methodsapply(sentence: list) -> listThis method apply rules, stored inself.datato the sentence you passed.sentenceis the list of dictionaries which represents tokens with their properties. It can look like this:[{"tense":"past","gender":"neutral","some_other_stuff":"other_value"},{"tense":"future","voice":"active","another_property":"another_value"}]Missing properties will be skipped.save(filepath: str) -> voidThis method will simply save the rules stored inself.datainto file you passed asfilepath.Private methodsThere's also some methods that should not be used in your code, but they are widely used inContextual19Parser.applymethod and they can be useful in some cases.ruleIsAppliable(rule: dict, sentence: list, token: int) -> boolCheck if the givenruleis appliable to thetokenth token in thesentence. It'll check the context.ctx19.parsers.Contextual19FileParserThis is the children ofContextual19Parserclass with the changed initialization method.InitializationTo initialize this parser just pass path to file with rules as thefparameter:fromctx19.parsersimportContextual19FileParserparser=Contextual19FileParser(open("path/to/file.ctx19"))KeywordsboolastextSet this toTrueto read text fromfparameter instead of dealing with it as file.Example of use:data='''if...then......'''parser=Contextual19FileParser(data,astext=True)Since this is theContextual19Parserchildren, it'll inherit all the parent methods, but one new private was added.Private methodsparseFile(void) -> voidThis will parse Contextual19 syntax from the file saved inself.file. You can change the file and call this method again.Reading other object notation formatsFrom 1.2 version JSON and YAML parsers was moved in order to make ctx19 independent from other packages, but you can still do it yourself. Here's the example:importjsonfromctx19.parsersimportContextual19Parserctx=Contextual19Parser(json.load("path/to/file.json"))
Package: ctxcore
Core functions for pycisTarget and the SCENIC tool suitectxcore is part of the SCENIC Suite of tools!
See the mainSCENIC websitefor additional information and a full list of tools available.Quickstartctxcore is available on PyPI and can be installed withpip.$pipinstallctxcoreAfter installing ctxcore you can use it like any other Python module.Here is a simple example:importctxcore# Fill this section in with the common use-case.TheAPI Referenceprovides API-level documentation.Change LogVersion History0.2.0Remove unused RankingsDatabase classes and conversion functions.Add CisTargetDatabase class for reading rankings/scores for
regions/genes from a cisTarget scores or rankings database
(only Feather v2 format), which requires pyarrow >= 8.0.0
instead of <=0.17.1 needed for the old FeatherRankingDatabase
class.Update FeatherRankingDatabase to use CisTargetDatabase to read
cisTarget databases.Reformat code and update type annotations.0.1.1Add support for reading rankings databases created by
create_cisTarget_databases as the index column in the
Feather file is “motifs” or “tracks” instead of “features”.0.1.0Project created.
Package: ctx-defense
ctx==============The CTX defense library.Installation============- Install the latest stable version using ``pip``:```shpip install ctx-defense```Basic Usage===========- Import the CTX class from ctx and initialize the ctx object:```pythonfrom ctx_defense import CTXctx_object = CTX()```- Protect a secret from an origin with a specific alphabet:```pythonprotected_secret = ctx_object.protect(secret, origin, alphabet)```- Retrieve the permutations for all origins:```pythonpermutations = ctx_object.get_permutations()```- For more information on the CTX library and the classes it implements visit the defense's [website](https://github.com/dimkarakostas/ctx).Example=======```pythonfrom ctx_defense import CTXsecret = 'A secret string'origin = 'user1'alphabet = 'ASCII'ctx_object = CTX()protected_secret = ctx_object.protect(secret, origin, alphabet)permutations = ctx_object.get_permutations()```
Package: ctxpy
ctx - A minimal but opinionated dict/object combo (like Bunch).ContentsRequirementsFeaturesInstallationSupportResourcesRequirementsThe ctx module should work with  all versions of Python.FeaturesThe ctx module provides theCtxclass which is a subclass of
the python ‘dict’ object.Ctx modifies ‘dict’ in the following ways:1  The dictionary items can be read or set using attribute
access notation.‘ctx.a’ is identical to ‘ctx[“a”]’ and
‘ctx.a = 5’ is identical to ‘ctx[“a”] = 5’2  The objects attributes can be read using item access notation.‘ctx[“__doc__”]’ is identical to ‘ctx.__doc__’3  The objects attributes can not be set under any circumstances.4  The dictionary can not have a key with the same name as an
objects attribute.‘ctx.name’ and ‘ctx[“name”]’ are resolved using the following three steps.if the object has an attribute ‘name’ then return the attribute.b)  if the dictionary has a key ‘name’ then return the value
associated with the key.raise LookupError.‘ctx.name = 5’ and ‘ctx[“name”] = 5’If name is an attribute of the class then raise AttributeError.set the dictionary item as usual.InstallationYou can install this package using pip with the following command.pip install ctxSupportTo report any bugs, or ask any question, please visithttps://github.com/figlief/ctx/issues.ResourcesHere is a list of useful links about this project.Latest release on PyPISource code on GitHubIssue tracker on GitHubChangelog on GitHub <https://github.com/figlief/ctx/blob/master/History.rst>
Package: ctxt
contextPython debugging with context helperDon't want complicated debugger but theprint("here")isn't enough to help you catch mistakes ? Then you should try this module !Installationpip install ctxtUsageThis example was generated using the notebook in thedemofolder.fromcontextimporthere,ctxt"""here: minimalist debuggingctxt: complete debuggingWant an intermediate debugging? Instantiate your own Context object :-)"""sep="\n"+70*"="+"\n"here()[<ipython-input-1-79eead714f34>:11] in <module>x=here(5+10)print("x =",x)print(sep)y=ctxt(5+10)print("y =",y)print(sep)z=ctxt(5,6,a=10)print("z =",z)[<ipython-input-2-db88b4f95185>:1] in <module>
x = 15

======================================================================

[<ipython-input-2-db88b4f95185>:6] in <module>:
> 15
y = 15

======================================================================

[<ipython-input-2-db88b4f95185>:11] in <module>:
> 5
> 6
> a = 10
z = ((5, 6), dict_items([('a', 10)]))# Handle call inside a functiondefmy_square(x):y=x**2here()returnys=my_square(5)print("s =",s)print(sep)# Can also wrap a function calls=here(my_square(10))print("s =",s)[<ipython-input-3-323904d716c7>:4] in my_square
s = 25

======================================================================

[<ipython-input-3-323904d716c7>:4] in my_square
[<ipython-input-3-323904d716c7>:14] in <module>
s = 100# Can also be a function wrapper@here# binds to here.wrapdefmy_sqrt(x):returnpow(x,0.5)r=my_sqrt(4)print("r =",r)print(sep)# Handles nested call, adding indent per-level@heredefmy_sqrt_bis(x):y=here(pow(x,0.5))returnyr=my_sqrt_bis(16)print("r =",r)print(sep)# Same but with more context@ctxtdefmy_sqrt_ter(x):y=ctxt(pow(x,0.5))returnyr=my_sqrt_ter(25)print("r =",r)[CALL: my_sqrt, FROM: <ipython-input-4-10cc6d34de9d>:6 in <module>]
r = 2.0

======================================================================

[CALL: my_sqrt_bis, FROM: <ipython-input-4-10cc6d34de9d>:17 in [...]
  [<ipython-input-4-10cc6d34de9d>:14] in my_sqrt_bis
r = 4.0

======================================================================

[CALL: my_sqrt_ter, FROM: <ipython-input-4-10cc6d34de9d>:28 in [...]
<- in:
> 25
  [<ipython-input-4-10cc6d34de9d>:25] in my_sqrt_ter:
  > 5.0
-> out:
> 5.0
r = 5.0# If you still want to use the print function to add more context,# you can wrap the print function using our wrapperimportbuiltins@heredefprint(*args,**kwargs):returnbuiltins.print(*args)# or# print = here(builtins.print)print("hello")print(sep)# Yes it will also be affected ;-)defsome_function():print("in some_function")some_function()# Reset old print functionprint=builtins.print[CALL: print, FROM: <ipython-input-8-b7886cfc88db>:13 in <module>]
hello
[CALL: print, FROM: <ipython-input-8-b7886cfc88db>:15 in <module>]

======================================================================

[CALL: print, FROM: <ipython-input-8-b7886cfc88db>:18 in [...]
in some_functionTODO List:allows more arguments to Context classallows block context withwith here as h:
Package: ctxvalue-shifter
Contextual Value Shifter is a Python module that implements a contextual “shift” function.Usagefromcxvshifterimportshift# Shifting to variablesx=5shift(10,'x')print(x)# => 10# Shifting to a fileshift("hello",'file',"hello.txt")# Shifting to stdoutshift("Hello, shifting world!",'stdout')# Shifting to returnshift(24,'return')# -> 24Improper usagex=5shift(10,x)# Will attempt to shift to a variable named 5# In ctxvalue-shifter, this will result in a TypeError
Package: ctxvar
ctxvar======A module to access variables defined in calling frames.You can can download a package from PyPI_... _PyPI:: http://pypi.python.org/pypi/ctxvar#downloadsYou can get the source code repository from bitbucket.org::$ hg clone https://bitbucket.org/klorenz/ctxvarYou can find documentation at http://ctxvar.readthedocs.org.For building documentation you need sphinx, you can get it using::$ easy_install -U SphinxThen you can::$ cd docs$ make html$ firefox _build/html/index.htmlLicensed under New BSD License, see LICENSE.txt.
Package: ctyparser
ctyparserA CTY.DAT parser for modern amateur radio programs.Support:Installationctyparserrequires Python 3.6 at minimum.$ pip install ctyparserAPI and CLI DocumentationDocumentation is available onReadTheDocs.CopyrightCopyright 2019-2022 classabbyamp, 0x5cReleased under the MIT License.SeeLICENSEfor the full license text.
Package: ctype
ctype - Interact with cython, python, ctypes, and use other c/c++ toolsctype: (V7.4.2)

Interact with cython, python, ctypes, and use other c/c++ toolsInstalling# Linux/macOSpython3pipinstall-Uctype# Windowspy-3-mpipinstall-Uctypeimportctype# Base Classesctype.CType# Decorator Classctype.Structurectype.uintctype.uint4ctype.uint8ctype.uint16ctype.uint32ctype.uint64ctype.intsctype.int4ctype.int8ctype.int16ctype.int32ctype.int64ctype.floatsctype.float4ctype.float8ctype.float16ctype.float32ctype.float64ctype.doublectype.double4ctype.double8ctype.double16ctype.double32ctype.double64ctype.longctype.longlongctype.shortctype.ulongctype.ulonglongctype.ushortctype.charctype.wcharctype.chararrayctype.wchararrayctype.structctype.unionctype.enumctype.typedefctype.volatilectype.booleanctype.voidctype.ptrctype.cout,ctype.stdout,ctype.printfctype.cin,ctype.stdinctype.cerr,ctype.stderrctype.clog,ctype.logctype.cexit,ctype.exitctype.cabort,ctype.abortctype.endl# ctype.Exceptionsctype.ctype_err<cerr_type><cobject><cmessage>ctype.CTypeExceptionctype.CTypeRuntimectype.CTypeIndexctype.CTypeNamectype.CTypeImportctype.CTypeAttrctype.CTypeKeyctype.CTypeValuectype.CTypeIndentctype.CTypeErrorctype.CTypeKeyboardctype.CTypeUnfinishedUse ctypes in ctype# Comes inside of the ctype libfromctypeimportcdll,c_int,c_char_p,c_void_p,c_double,c_bool,...# View all defined CType'sctype.types# CTypectype.ctypectype.CType# Structurectype.Structurectype.Structctype.structurectype.require('a_module','numpy','some_other_module')LinksGithubProject
Package: ctyped
https://github.com/idlesign/ctypedDescriptionBuild ctypes interfaces for shared libraries with type hintingRequires Python 3.6+Less boilerplate;Logical structuring;Basic code generator (.so function -> ctyped function);Useful helpers.fromctyped.toolboximportLibrary# Define library.lib=Library('mylib.so')@lib.structureclassBox:one:inttwo:str# Type less with function names prefixes.withlib.scope(prefix='mylib_'):# Describe function available in the library.@lib.functiondefsome_func(title:str,year:int,box:Box)->str:...# Bind ctype types to functions available in the library.lib.bind_types()# Call library function.result_string=some_func('Hello!',2019,Box(one=35,two='dummy'))Read the documentation for more information.Documentationhttp://ctyped.readthedocs.org/
Package: ctypedffi
ctyped-ffictypes wrapper for typed ffiWrapper around ctypes for creating typed foreign function interfaces built upon librariesYou can find support in theIEW Discord server.How to installInstallctypedffiwith the following command:$pipinstallctypedffiOr if you want the latest git version, install it with this command:$pipinstallgit+https://github.com/Setsugennoao/ctyped-ffi.git
Package: ctypes-callable
Implementscallableusingctypes(useful on CPython
3.0 and 3.1, which is missing thecallablefunction).VersioningThis library’s version numbers follow theSemVer 2.0.0
specification.Installationpip install ctypes-callableUsageThe use-case for using this module is if:You are using anearlyCPython 3 release missingcallable.You cannot upgrade to a newer CPython 3 for some reason.You want to use code which uses thecallablebuiltin.To do this, run this before any code that usescallable(for
example,usercustomizeorsitecustomizemight be good places):importctypes_callableimportbuiltinsbuiltins.callable=ctypes_callable.callablePortabilityThis module willfailonimporton Jython, IronPython, PyPy,
MicroPython, PyPy.js, Brython, Transcrypt, and probably any other
implementation besides CPython, because it relies on accessing the
Python C API throughctypes.
Package: ctypescracklib
Cracklib is great, and in newer packages there is a Python module available
for it. However, on systems that don’t yet have it, such as CentOS 5, I’ve
written a ctypes wrapper for the system cryptlib. This would also work on a
system that you can’t install python-libcrypt. It does require python with
ctypes available, so for CentOS 5 you have to install and use the python26
package.
Package: ctypes-ejdb
Python binding for EJDB built on ctypes.Free software: BSD license.Documentation:https://ctypes-ejdb.readthedocs.org.FeaturesPure Python. Only Python (2.7 or 3.3+) and anEJDB binaryis needed. No need to compile anything.Future FeaturesBetter API compatibility to MongoDB.Better documentation.EJDB binary:http://softmotions.com/ejdb/archives/History0.4.7 (2016-07-20)Fix crash when querying with invalid parameter names. This now raises anCommandError.Fix memory leak when callingCollection.count.Add API to query for a list of collection names in a database without needing
to construct the collections themselves.Add API to check whether a database is writable.Add flag to disable coloring in CLI, and disable it on Windows by default.ejdb.clinow has a--versionoption.0.4.6 (2015-10-06)Fix Python 2 compatibility regardingejdb.cfgusage.Fix segmentation fault when trying to reuse collection instances retrieved
from iterating through a database.ejdb.clinow creates a non-existent database if the path given does not
exist.Add a more meaningful error message when the EJDB binary path is not
configured properly.Fix documentation onCollection.delete_one()andCollection.delete_many().0.4.5 (2015-09-07)FixCollection.delete_oneandCollection.delete_many.0.4.4 (2015-07-30)Fix query flag passing.0.4.3 (2015-07-29)Moveexit()fix in CLI.0.4.2 (2015-07-29)Fixexit()call in CLI.0.4.1 (2015-07-27)Fix missingNOBLOCKconstant.0.4 (2015-07-25)Move command line interface dependencies to extras. New installations now needs to runpip installctypes-ejdb[cli]to install it. This is better for those who want only the core library.0.3.3 (2015-07-24)Fix Python 2 compatibility.0.3.2 (2015-07-07)Fix attribute lookup inDatabaseErrorconstruction.Add options to config EJDB path by environ or.cfgfile.Make document repr look like a dict so it prints better.0.3.1 (2015-07-03)Fixed context manager usage opening aDatabase.Fixed attribute error inCollection.count.Fixed document iterator slicing.Experimental CLI utilityejdb.clibased on Click and ptpython.0.3 (2015-07-01)Make EJDB path configurable withejdb.init(path).0.2.1 (2015-07-01)Add save shortcut on database.0.2 (2015-07-01)Fix segmentation fault when converting BSON OID to string.Fix error message retrieval inDatabase.close.Tests now run on Windows.0.1.1 (2015-06-30)Fix encoding error inpip install.0.1.0 (2015-06-28)First release on PyPI.
Package: ctypesGsl
ctypesGsl is a Python binding for the GSL library using the ctypes
package.  It is probably somewhat slower than pygsl but has other
advantages:It is very easy to install, the only dependency (except for GSL
itself) is the ctypes package, standard since Python 2.5.  No
compilation or is required during installation.  The implementation
is simpler too as it does not require SWIG wrappers, C code or
shared libraries.ctypes seems to be the preferred future way to do Python bindings,
since it is independent from python implementation used, e.g. it
should work with PyPy.Currently it is slowly becoming reasonably complete.  Implemented are:error handling
basic function
complex numbers
polynomials
special functions
vectors
matrices
permutations (incomplete)
combinations
BLAS
linear algebra
eigensystems
numerical integration
random number generators
quasi random number generators
probability distributions
Monte Carlo integration
ordinary differential equations
numerical integration
Chebyshev approximations
one dimensional root finding
one dimensional minimization
multidimensional root finding
multidimensional minimizationLicenseGPL v.3, see LICENSE.txtInstallationThere is a (somewhat experimental) setup.py script in the top-level
directory.Alternatively, just copy the ctypesGsl directory to/usr/local/lib/python2.5/site-packages/or wherever you keep your local python packages.  You’re ready to go:>>> import ctypesGsl
>>> ctypesGsl.expm1(1)
1.7182818284590451the test_cgsl.py file contains some examples based on GSL tests.DesignThe idea is that the package should be usable like a standard python
library.  The low level functions are thus often wrapped in python
functions which try to hide some of the complexity.The higher level interface does error handling (exceptions are raised
if return value is not GSL_SUCCESS), and tries to make common usage
easy, e.g. gsl_complex numbers can be used just as standard Python
complex numbers, tries to allocate integration workspace of reasonable
size if none is provided, etc.See the test_cgsl.py file for examples.Error handlingThere are two ways to check for errors in GSL: internal error handler,
and return values.  ctypesGsl handles both.  The return values are
automatically checked and (by default) an exception is raised if the
return value indicates an error.Unfortunately ctypes does not propagate exceptions raised inside
callback functions to the main thread, so if an exception is raised in
the internal error handler, a backtrace is printed but the program
continues.  Internal GSL error handler is thus (by default) redefined
to only print a warning message.Both internal and return value error handlers can be redefined.DocumentationNone at the moment.  See test_cgsl.py file for usage examples.
Package: ctypeslib
ctypeslib contains these packages:ctypeslib.codegen- a code generatorctypeslib.contrib- various contributed modulesctypeslib.util- assorted small helper functionsctypeslib.test- unittestsThere is not yet an official release, but ctypeslib can be installed
directly from the subversion repository with:easy_install ctypeslib==devThe SVN repository is here:http://svn.python.org/projects/ctypes/trunk/ctypeslib/#egg=ctypeslib-dev
Package: ctypeslib3
ctypeslib contains these packages:ctypeslib.codegen- a code generatorctypeslib.contrib- various contributed modulesctypeslib.util- assorted small helper functionsctypeslib.test- unittestsThere is not yet an official release, but ctypeslib can be installed
directly from the subversion repository with:easy_install ctypeslib==devThe SVN repository is here:http://svn.python.org/projects/ctypes/trunk/ctypeslib/#egg=ctypeslib-dev