Saravanan666/pypi-org huggingface dataset:
Package: cskipdict
A fast, CFFI-based SkipDict implementation for Python.SkipDictinstances areSkip
List-based associative
arrays (‘dictionaries’ in Python terms), mapping 64-bit signed integers
to arbitrary Python objects. Keys are always stored and returned in
order, while maintaining average-caseO(log n)search, insert and
delete times, and average-case space consumption ofO(n).This libary uses Peter Cannici’s public-domainskiplist.hC library,
adapting it slightly for use with Python and CFFI.InstallationInstallation on most systems should be pretty easy:$ pip install cskipdictUsageYou can use it just like a normaldict, except that all keys should
be integers between -2:sup:63and +263- 1 inclusive.>>> from cskipdict import SkipDict
>>> d = SkipDict()
>>> d
SkipDict({})
>>> len(d)
0
>>> d[123] = 'abc'
>>> d
SkipDict({123: 'abc'})
>>> d[420] = 'def'
>>> d
SkipDict({123: 'abc', 420: 'def'})
>>> d[69] = 'foo'
>>> d
SkipDict({69: 'foo', 123: 'abc', 420: 'def'})Iteration will always happen in ascending order of the keys:>>> for k, v in d.iteritems():
...     print((k, v))
(69, 'foo')
(123, 'abc')
(420, 'def')UnlicenseThis is free and unencumbered software released into the public domain.Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any means.In jurisdictions that recognize copyright laws, the author or authors of
this software dedicate any and all copyright interest in the software to
the public domain. We make this dedication for the benefit of the public
at large and to the detriment of our heirs and successors. We intend
this dedication to be an overt act of relinquishment in perpetuity of
all present and future rights to this software under copyright law.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 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.For more information, please refer tohttp://unlicense.org/
Package: cs-kit
Compute Studio Kitcs-kittests your model's functions against theCompute Studio criteria. If your functions pass thecs-kittests, then you can be reasonably sure that the functions will work on compute.studio.Compute Studio Kit also provides a helper command for retrieving yourCompute Studio APItoken.Installcs-kitpipinstallcs-kitSet up thecs-configdirectory$csk-init
$treecs-config/
cs-config/
├──cs_config
│├──functions.py
│├──__init__.py
│└──tests
│├──__init__.py
│└──test_functions.py
├──install.sh
└──setup.pyWrite your functions incs-config/cs_config/functions.py# Write or import your Compute Studio functions here.defget_version():passdefget_inputs(meta_param_dict):passdefvalidate_inputs(meta_param_dict,adjustment,errors_warnings):passdefrun_model(meta_param_dict,adjustment):passTest your functions incs-config/cs_config/tests/test_functions.pyfromcs_kitimportCoreTestFunctionsfromcs_configimportfunctionsclassTestFunctions1(CoreTestFunctions):get_version=functions.get_versionget_inputs=functions.get_inputsvalidate_inputs=functions.validate_inputsrun_model=functions.run_modelok_adjustment={"matchup":{"pitcher":[{"value":"Max Scherzer"}]}}bad_adjustment={"matchup":{"pitcher":[{"value":"Not a pitcher"}]}}Run your cs-config testspy.testcs-configWrite your installation instructions incs-config/install.shcondainstallyour-projectGet yourCompute Studio APItoken$csk-token--usernamemyuser--passwordmypass
Token:your-token-hereRun the compute-studio-kit testspy.testcs_kit-v
Package: cs.kontratazioa
IntroductionSpanish Public Administrations’ websites must have a
so called “Contractors profile” in which the Administration
must publish all information about the different contracts
and its assignation procedure: public notice of it, the document
with the contract grant, the signature of the contract, …Each Administration wants to change the way to show this
information: PDF files, HTML text-fields, … so we tried to
create the most generic product as possible and then let each
project change it.Credits and legislationLaw 30/2007 of Public Sector Contracts (Ley 30/2007 de Contratos del Sector Público)Local councils ofAmorebieta-Etxano,Arrasate,Oñati,Eibar,Zumaia,Muskiz.Managing Director ofBilbao Kirolak.ContributorsLur Ibargutxi <libargutxi@codesyntax.com>, Main developerMikel Larreategi <mlarreategi@codesyntax.com>, proper eggification and releasesChangelog2.2 (2014-03-25)Fix cssregistry.xml with the condition expression2.1 (2013-03-21)PEP8 and indentation fixes [erral]Plone 4.3 compatibility [lur]2.0.2 (2011-12-14)Remove ‘portlets’ folder generated by paster [erral]Added plone domain po files to get schemata names translated [erral]2.0.1 (2011-10-06)Remove nasty egg-info directory creation instruction
in setup.py that avoided creating proper eggs [erral]Add documentation [erral]2.0 (2011-10-06)Add Plone dependency. This version is targeted for Plone >= 4 [erral]Group items in specially created fieldsets [lur]1.0 (xxxx-xx-xx)Created recipe with ZopeSkel [lur]
Package: cskv
CSKV is a python tool too edit INI or RAW config files with a single call. It can be used as a command-line tool, or it can be imported as a module in python 2.*. It does what other similar tools also do, but it also handles indentation, and automatic file-type recognition (INI or different RAW types). If the documentation is not clear enough, the source code is relatively short, so any issue can be quickly traced.
Package: csle-ryu-fork
PLEASE READ: RYU NOT CURRENTLY MAINTAINEDThe Ryu project needs new maintainers - please file an issue if you are able to assist.see OpenStack’s os-ken (https://github.com/openstack/os-ken) for a maintained Ryu alternative.What’s RyuRyu is a component-based software defined networking framework.Ryu provides software components with well defined API’s that make it
easy for developers to create new network management and control
applications. Ryu supports various protocols for managing network
devices, such as OpenFlow, Netconf, OF-config, etc. About OpenFlow,
Ryu supports fully 1.0, 1.2, 1.3, 1.4, 1.5 and Nicira Extensions.All of the code is freely available under the Apache 2.0 license. Ryu
is fully written in Python.Quick StartInstalling Ryu is quite easy:% pip install ryuIf you prefer to install Ryu from the source code:% git clone https://github.com/faucetsdn/ryu.git
% cd ryu; pip install .If you want to write your Ryu application, have a look atWriting ryu applicationdocument.
After writing your application, just type:% ryu-manager yourapp.pyOptional RequirementsSome functions of ryu require extra packages:OF-Config requires lxml and ncclientNETCONF requires paramikoBGP speaker (SSH console) requires paramikoZebra protocol service (database) requires SQLAlchemyIf you want to use these functions, please install the requirements:% pip install -r tools/optional-requiresPlease refer to tools/optional-requires for details.PrerequisitesIf you got some error messages at the installation stage, please confirm
dependencies for building the required Python packages.On Ubuntu(16.04 LTS or later):% apt install gcc python-dev libffi-dev libssl-dev libxml2-dev libxslt1-dev zlib1g-devSupportRyu Official site ishttps://ryu-sdn.org/.If you have any
questions, suggestions, and patches, the mailing list is available atryu-devel ML.The ML archive at Gmaneis also available.
Package: cs.linguacopier
cs.linguacopierThis products adds an action to copy contents to a selected language.We have faced many times the work to create the contents of a site in one language and then recreate
it in another language to let the customer or translators translate it.This products provides an action with several options, which allows the content editor to recreate the contents of one section of the site in one or more languages, easing the work of the content editor.Disclaimer: this product does not effectively translate the contents (does not translate “House” to “Casa”), it just copies the actual content in the other languageInstallationInstall cs.linguacopier by adding it to your buildout:[buildout]

...

eggs =
    cs.linguacopierand then runningbin/buildoutContributeIssue Tracker:https://github.com/codesyntax/cs.linguacopier/issuesSource Code:https://github.com/codesyntax/cs.linguacopierUse case:https://erral.github.io/ploneconf2017-multi-plone/SupportIf you are having issues, please let us know using the Github Issue Tracker:https://github.com/codesyntax/cs.linguacopier/issuesLicenseThe project is licensed under the GPLv2.ContributorsMikel Larreategi,mlarreategi@codesyntax.comChangelog1.1 (2021-03-22)add my name [Lur Ibargutxi <libargutxi@codesyntax.com>]RelationList [Lur Ibargutxi <libargutxi@codesyntax.com>]RelationList fields [Lur Ibargutxi <libargutxi@codesyntax.com>][Mikel Larreategi <mlarreategi@codesyntax.com>][ci skip] [Mikel Larreategi <mlarreategi@codesyntax.com>][libargutxi]1.0 (2019-07-11)Initial release.
[erral]
Package: cs.linguaplone.links
IntroductionThis products supports explicit annotations for web pages rendering same content in
different languages as suggested by Google here:http://googlewebmastercentral.blogspot.com/2010/09/unifying-content-under-multilingual.htmlhttp://googlewebmastercentral.blogspot.com/2011/12/new-markup-for-multilingual-content.htmlIt just adds a viewlet with the links to all translated pages of the page you are viewing. You
won’t see anything on your site, it’s just a markup for crawlers.Changelog1.1 (2012/05/22)Show the viewlet just for ITranslatable objects and remove the nasty bare except
[erral]1.0.1 (2011/12/12)Fix bug for Site Root and other objects that do not have getTranslation method [erral]1.0 (2011/12/12)Initial release [erral]
Package: csmap-py
csmap-pymodule to process CSMap, based onhttps://www.rinya.maff.go.jp/j/seibi/sagyoudo/attach/pdf/romou-12.pdfusage: csmap [-h] [--chunk_size CHUNK_SIZE] [--max_workers MAX_WORKERS] [--gf_size GF_SIZE]
                   [--gf_sigma GF_SIGMA] [--curvature_size CURVATURE_SIZE]
                   [--height_scale HEIGHT_SCALE HEIGHT_SCALE]
                   [--slope_scale SLOPE_SCALE SLOPE_SCALE]
                   [--curvature_scale CURVATURE_SCALE CURVATURE_SCALE]
                   input_dem_path output_path

positional arguments:
  input_dem_path        input DEM path
  output_path           output path

options:
  -h, --help            show this help message and exit
  --chunk_size CHUNK_SIZE
                        chunk size as pixel, default to 1024
  --max_workers MAX_WORKERS
                        max workers for multiprocessing, default to 1
  --gf_size GF_SIZE     gaussian filter size, default to 12
  --gf_sigma GF_SIGMA   gaussian filter sigma, default to 3
  --curvature_size CURVATURE_SIZE
                        curvature filter size, default to 1
  --height_scale HEIGHT_SCALE HEIGHT_SCALE
                        height scale, min max, default to 0.0 1000.0
  --slope_scale SLOPE_SCALE SLOPE_SCALE
                        slope scale, min max, default to 0.0 1.5
  --curvature_scale CURVATURE_SCALE CURVATURE_SCALE
                        curvature scale, min max, default to -0.1 0.1usageCommand Line Interfacepipinstallcsmap-pycsmapdem.tifcsmap.tif
csmapdem.vrtcsmap.tif# you can use virtual raster or other gdal supported formatcsmapdem.tifcsmap.tif--chunk_size256--max_workers4# you can use multiprocessingcsmapdem.tifcsmap.tif--gf_size3--gf_sigma1.0--curvature_size1# you can change filter sizecsmapdem.tifcsmap.tif--height_scale0500--slope_scale01--curvature_scale-0.20.2# you can change scalePython APIfromcsmapimportprocess,CsmapParamsparams=CsmapParams()# use default params# convert dem to csmapprocess(input_dem_path,output_path,chunk_size=1024,params)processing image
Package: csmc
CSMCCSMC is a Python library for performing column subset selection in matrix completion tasks. It provides an implementation of the CSSMC method, which aims to complete missing entries in a matrix using a subset of columns.Columns Selected Matrix Completion (CSMC) is a two-stage approach for low-rank matrix recovery. In the first stage, CSMC samples columns of the input matrix  and recovers a smaller column submatrix.
In the second stage, it solves a least squares problem to reconstruct the whole matrix.CSMC supports numpy arrays and pytorch tensors.InstallationYou can install CSMC using pip:pipinstall-icsmcUsageGenerate random dataimportnumpyasnpimportrandomn_rows=50n_cols=250rank=3x=np.random.default_rng().normal(size=(n_rows,rank))y=np.random.default_rng().normal(size=(rank,n_cols))M=np.dot(x,y)M_incomplete=np.copy(M)num_missing_elements=int(0.7*M.size)indices_to_zero=random.sample(range(M.size),k=num_missing_elements)rows,cols=np.unravel_index(indices_to_zero,M.shape)M_incomplete[rows,cols]=np.nanFill with CSNN algorithmfromcsmcimportCSMCsolver=CSMC(M_incomplete,col_number=100)M_filled=solver.fit_transform(M_incomplete)Fill with Nuclear Norm Minimization with SDP (NN algorithm)fromcsmcimportNuclearNormMinsolver=NuclearNormMin(M_incomplete)M_filled=solver.fit_transform(M_incomplete,np.isnan(M_incomplete))AlgorithmsNuclearNormMin: Matrix completion by SDP (NN algorithm)Exact Matrix Completion via Convex OptimizationCSNN: Matrix completion by CSNNPGD: Nuclear norm minimization using Proximal Gradient Descent (PGD)Spectral Regularization Algorithms for Learning Large Incomplete Matricesby Mazumder et. al.CSPGD: Matrix completion by CSPGDExamplessmall synthetic matricesbig synthetic matricessmall images inpaintingbig images inpaintingConfigurationTo adjust the number ofthreadsused for intraop parallelism on CPU, modify variable:NUM_THREADS = 8in settings.pyCitationKrajewska, A., Niewiadomska-Szynkiewicz E. (2023). Matrix Completion with Column Subset Selection.Krajewska, A. (2023).Efficient matrix completion for data recovery in data-driven IT applications. Systems Research Institute
Polish Academy of Sciences.
Package: csmdirsearch
TheMines DirSearchwebsite allows search of Mines personnel who have their
directory information listed in the Banner system. This is a convenient Python
interface to that website.Author:Jack RosenthalRequires:Python 3.4 or greater, Beautiful Soup 4.4.0 or greater, RequestsLicense:MITContributing:SeeCONTRIBUTING.rstInstallingClonethe repositoryand install:$ pip install . --userOr install from PyPI:$ pip install csmdirsearch --userUsage from PythonUsesearch(query)to search for a user by either (part of) a username, or
(part of) a full name.searchis a generator that will yield uniquePersonobjects. Typical attributes on this object includename,business_email,major,classification, anddepartment; however,
only thenameattribute is guaranteed to exist.EachPersonobject also has a few properties:username:Based on thebusiness_email(and potentially more information in the
future), a “best guess” for the username of the user, otherwiseNone.desc:An automatic, brief description of the person, for example:Undergraduate Student, Computer Science.Thenameof each person is also a specialNametype, containingfirst,last, andnickattributes. You can convert a name to a
string using thestrfnamefunction, or usestr(person.name)for a
“reasonable default”:>>> name = Name("Rosenthal, Jack (NickName)")
>>> name.strfname("{first} {last}")
'Jack Rosenthal'
>>> str(name)
'Jack (NickName) Rosenthal'There’s also convenience properties to be used instrfname:pfirst:Short for “preferred first”. This will be set tonickif there is a
nick name,firstotherwise.nickp:Short for “nick, wrapped in parens, if there is one”. This will be set to' (nick)'if there’s a nick name,''otherwise.Example:>>> name = Name("Rosenthal, Jack (NickName)")
>>> name.strfname("{pfirst} {last}")
'NickName Rosenthal'
>>> name.strfname("{first}{nickp} {last}")
'Jack (NickName) Rosenthal'Here is an example:import csmdirsearch
for person in csmdirsearch.search("Jack Rosenthal"):
    print(person.name, person.desc)If you wish to limit your search tojusta partial username (no real
names), use thesearch_by_partialgenerator instead ofsearch.Finally, if you wish to limit your search tojusta partial full name (most
efficent), use thesearch_by_namegenerator instead ofsearch. This
generator also has means to limit a search to a certain classification or
department. Read the source code for more details.Usage from the Command LineThis is wicked simple:$ dirsearch "Jack Rosenthal"
Jack Rosenthal
Undergraduate Student
Business Email: ...If you wish to use thesearch_by_nameorsearch_by_partialfunctions to
limit the scope of the input, use--input=nameor--input=partialrespectively:$ dirsearch --input=partial "jrosent"
Jack Rosenthal
...Usage from MuttAdd to your.muttrc:set query_command = "dirsearch --format=mutt %s"Then pressQto compose using a search, or^Twhile writing a name or
address.
Package: csmlog
csmlogPackage to setup a python logger the way I like to use it.By default logs to files per logger and one for the overall projectSets a master logger with sub loggers per file (obtained via getLogger())Usagefrom csmlog import setup, getLogger
setup("appName") # call setup once whenever you would like to set the output location for future loggers
logger = getLogger(__file__)

# logger is a Python logger... feel free to use it.
# You should see logs in %APPDATA% on Windows and /var/log or ~/log on Linux/MacGoogle Sheets Loggingsetup()has an optional parameter:googleSheetShareEmail. If it is given, it should be an email address to share a Google Sheets worksheet of logs.In order to use this, you must have a Google Service Account or User Account's credentials (in JSON form) in ~/.gcreds.jsonInternally the gspread module is used for Google Sheets communication/authentication. Seehttps://gspread.readthedocs.io/en/latest/oauth2.htmlfor more information on getting credentials. The only thing different from their instructions is that for csmlog, the JSON credentials should be stored in ~/.gcreds.json.Note that logs may be delayed due to rate limiting, etc. If you are logginga lot, it may not be a good idea to enable this feature.Customized Child Loggerssetup()has an optional parameter:modifyChildLoggersFunc. If it is given, it must be a function that would take in as a single arg, each created child logger. This can be used to add additional things like handlers to each child logger. (Note that the child logger is modified in place).Installationpip install csmlog
Package: csm-openbabel
This is a Python interface to the Open Babel chemistry library. For the
main Open Babel project, seehttp://openbabel.org.Open Babel is a chemical toolbox designed to speak the many languages
of chemical data. It’s an open, collaborative project allowing anyone
to search, convert, analyze, or store data from molecular modeling,
chemistry, solid-state materials, biochemistry, or related areas. For
installation instructions, tutorials and examples, please visit theOpen Babel website.This package provides two Python modules that can be used to access the
functionality of the Open Babel toolkit:Theopenbabelmodule: A wrapper that is automatically generated using
the SWIG package and provides access to almost all of the Open Babel
interfaces via Python, including the base classes OBMol, OBAtom, OBBond,
and OBResidue, as well as the conversion framework OBConversion.Thepybelmodule: A lightweight wrapper around the classes and methods
in the openbabel module. Pybel provides more convenient and Pythonic ways
to access the Open Babel toolkit.For detailed installation instructions, API documentation and further information
on the Python bindings, see thePython pages on the Open Babel website.DependenciesPython 2.4 or a more recent version.Open Babel 3 or a more recent version.InstallationOption 1: Usepip.pip install openbabelOption 2: Download the latest release and install yourself.tar -xzvf openbabel-3-1-0.tar.gz
cd openbabel-openbabel-3-1-0
python setup.py installOption 3: While building Open Babel itself.cd openbabel
mkdir ob-build
cd ob-build
cmake -DRUN_SWIG=ON -DPYTHON_BINDINGS=ON ..
make installCopyright and LicenceCopyright (C) 2005-2007 Geoffrey R. Hutchisonbabel@geoffhutchison.netSome portions Copyright (C) 2006-2010 Noel O’BoyleThis Python module is part of theOpen Babel project.Open Babel is distributed under the GNU General Public License (GPL).
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation version 2 of the License. Full details
can be found in the file “COPYING” which should be included in your
distribution.
Package: cs.mplutils
A few conveniences for working with matplotlib.Latest release 20230407:
FigureSize: get defaults via $FIGURE_SIZE_DX, $FIGURE_SIZE_DY and $FIGURE_SIZE_DPI envvars.Functionaxes(figure=None, ax=None, **fig_kw) -> matplotlib.axes._axes.AxesReturn a set ofAxes.Parameters:figure: optionalFigurefrom which to obtain theAxesor an(x,y)figure size or an(x,y,dpi)figure sizeax: optionalAxesor axes indexIfaxis already anAxesit is returned unchanged.
Otherwiseaxshould be the index of a set of axes,
default0.Iffigureis aFigure,axis used to select one of its
sets of axes.Otherwise aFigureis created and a set of axes is selected.
The default figure size comes from theFigureSizedefaults.Thefigurepositional parameter may be supplied
as a 2-tuple(fig_dx,fig_dy)to override the default size
or as a 3-tuple(fig_dx,fig_dy,dpi)to override the default size and dpi,
or as aFigureSze.ClassFigureSizeSpecifications for aFigure's dimensions.Functionprint_figure(figure_or_ax, imgformat=None, file=None)Printfigure_or_axto a file.Parameters:figure_or_ax: amatplotlib.figure.Figureor an object
with a.figureattribute such as a set ofAxesimgformat: optional output format; if omitted use'sixel'iffileis a terminal, otherwise'png'file: the output file, defaultsys.stdoutFunctionremove_decorations(figure_or_ax: Union[matplotlib.figure.Figure, matplotlib.axes._axes.Axes])Remove all decorations from aFigureorAxesinstance,
intended for making bare plots such as a tile in GUI.Presently this removes:axes markings and legend from each axisthe padding from all the figure subplotsFunctionsave_figure(figure_or_ax, imgpath: str, force=False)Save aFigureto the fileimgpath.Parameters:figure_or_ax: amatplotlib.figure.Figureor an object
with a.figureattribute such as a set ofAxesimgpath: the filesystem path to which to save the imageforce: optional flag, defaultFalse: if true theimgpathwill be written to even if it existsFunctionsaved_figure(figure_or_ax, dir=None, ext=None)Context manager to save aFigureto a file and yield the file path.Parameters:figure_or_ax: amatplotlib.figure.Figureor an object
with a.figureattribute such as a set ofAxesdir: passed totempfile.TemporaryDirectoryext: optional file extension, default'png'Release LogRelease 20230407:
FigureSize: get defaults via $FIGURE_SIZE_DX, $FIGURE_SIZE_DY and $FIGURE_SIZE_DPI envvars.Release 20220918:New FigureSize class.axes(): accept a FigureSize for figure.Release 20220805:
Initial PyPI release.
Package: csm-test-utils
This repository contains set of simple Go- and Python-based utils for
testing of CSM-created infrastructureWhy use Go for tests?Some timesgoworks several times faster and code seems to be
simplier.Already built test app doesn’t have any requirements,Pythonfor
tests leads to increasing number of used libraries.Doesn’t depend on Python versionIt’s funWhy use Python for tests?SimpleNo need to compileLanguage by default to be used for tests is Python 3.7+UsageThis repo to contain multiple testsLoad Balancer TestUsage:load_balancer_test <remote_ip> [request count]e.g.load_balancer_test 80.158.33.113 1000