Saravanan666/pypi-org huggingface dataset:
Package: css-class-names
css-class-namesA python script for css class names conditional generation. Inspered by the node packageclassnames.Why?The nodeclassnamespackage has been helping me a lot withReact/JSXand general javascript front-end development. I really missed something similar to use when working withdjangoandjinja2templates, so, I decided to create this package.UsageYou can add css class names by calling the function with arguments as:StringsNumbers: Floats or Integers (0 is allowed)Sequences: Lists or TuplesDictionariesfromcss_class_namesimportclass_namesclass_names('header','is-visible')# 'header is-visible'class_names(['is-visible','text-uppercase'])# 'is-visible text-uppercase'class_names((100001000,'clear'))# '100001000 clear'class_names('header',{'header--is-fixed':True,'header--is-blue':False})# 'header header--is-fixed'Conditional dictsDictionaries can be used to concat class names conditionally using expressions:fromcss_class_namesimportclass_nameserrors=['Some error']class_names('alert',{'alert-danger':errors,'alert-success':noterrors,'small':True})# 'alert alert-danger'class_names('client',{'client-{}'.format(client.id):client,'disable':notclient.active()})# 'client client-989'Excludes falsy valuesFalsy values (except 0) and not supported types will be ignored:fromcss_class_namesimportclass_namesclass_names([],'',False,{},0,object(),lambdax:x,None)# '0'Strip and flattenStrings are striped and sequences are recursively flattened:fromcss_class_namesimportclass_namesclass_names([' header   ',['  green ',' small ']])# 'header green small'DedupeYou can dedupe names with thededupeargument:fromcss_class_namesimportclass_namesclass_names('cart','is-open','is-logged',{'is-logged':True},dedupe=True)# 'cart is-open is-logged'PrefixYou can add class name prefixes with theprefixargument. This is really usefull when you need a class namespace or using theBEMmethodology:fromcss_class_namesimportclass_namesclass_names('head','head--is-empty',{'head--is-large':True},prefix='mysite-')# 'mysite-head mysite-head--is-empty mysite-head--is-large'DevelopmentAfter cloning the repository, create a virtualenv and use theMakefilecommands tosetupdevelopment requirements and run tests:makesetup
makelintmaketestmakewatch# run tests when code changesmakecoverage
Package: csscoco
CssCoco is a tool that automatically discovers violations of code conventions in your CSS code. The tool is designed to offer great flexibility and cover a wide range of conventions, e.g. whitespacing, indentation, syntax preference and anti-patterns. Unlike other solutions, CssCoco uses a domain-specific language that allows you to tailor the conventions according to your own needs and preferences. And in case writing conventions in a new DSL is a bit too much, you can always use one of the popular ready-to-use convention sets available in the CssCoco GitHub repo. Happy coding!
Package: csscolors
CSS ColorsSimply all css colors easily accessible in hex color code.>>>importcsscolors>>>csscolors.RED'#ff0000'Also allows for iteration:>>>importcsscolors>>>forcolor_name,hex_codeincsscolors.iterator():...print(color_name,hex_code)ALICE_BLUE#f0f8ffANTIQUEWHITE#faebd7AQUA#00ffffAQUAMARINE#7fffd4AZURE#f0ffffBEIGE#f5f5dcBISQUE#ffe4c4BLACK#000000BLANCHED_ALMOND#ffebcdBLUE#0000ff.........InstallInstall throughpip:pipinstallcsscolorsDocumentationhttps://jakkes.github.io/py-csscolors/csscolors/
Package: csscompressor
Almost exact port of YUI CSS Compressor.
Passes all original unittests.Usage>>>fromcsscompressorimportcompress>>>compress('''...your css {...content: "!";...}...''')'your css{content:"!"}'Or, if you want to use it from command line:$ python3 -m csscompressor --helpCompatibilityTested under Python 2.7 and 3.3+InstallationUsepiporeasy_install:$ pip install csscompressorDevelopmentUse py.test to run unittestsLicensePublished under the original Yahoo License for YUI Compressor – BSD.
Package: css_crawler
Parse CSS styles from a given URL and generate a color palette mapped mapped to css selectors.Powered byNagareframework !InstallationNote that theNagareframework needsPython Stacklessin order to runUsingeasy_install: easy_install css_crawlerLaunch the applicationcreatecss_crawlerdatabase : nagare-admin create-db css_crawlerlaunchcss_crawler: nagare-admin serve css_crawler
Package: cs-scrubadub
Remove personally identifiable information from free text. Sometimes we have
additional metadata about the people we wish to anonymize. Other times we don’t.
This package makes it easy to seamlessly scrub personal information from free
text, without compromising the privacy of the people we are trying to protect.scrubadubcurrently supports removing:NamesEmail addressesAddresses/Postal codes (US, GB, CA)Credit card numbersDates of birthURLsPhone numbersUsername and password combinationsSkype/twitter usernamesSocial security numbers (US and GB national insurance numbers)Tax numbers (GB)Driving licence numbers (GB)Quick startGetting started withscrubadubis as easy aspip install scrubaduband
incorporating it into your python scripts like this:>>>importscrubadub# My cat may be more tech-savvy than most, but he doesn't want other people to know it.>>>text="My cat can be contacted on example@example.com, or 1800 555-5555"# Replaces the phone number and email addresse with anonymous IDs.>>>scrubadub.clean(text)'My cat can be contacted on {{EMAIL}}, or {{PHONE}}'There are many ways to tailor the behavior ofscrubadubusingdifferent Detectors and PostProcessors.
Scrubadub is highly configurable and supports localisation for different languages and regions.InstallationTo install scrubadub using pip, simply type:pip install scrubadubThere are several other packages that can optionally be installed to enable extra detectors.
Thesescrubadub_address,scrubadub_spacyandscrubadub_stanford, see the relevant documentation (address detector documentationandname detector documentation) for more info on these as they require additional dependencies.
This package requires at least python 3.6.
For python 2.7 or 3.5 support use v1.2.2 which is the last version with support for these versions.New maintainersLeapBeyondare excited to be supporting scrubadub with ongoing maintenance and development.
Thanks to all of the contributors who made this package a success, but especially@deanmalmgren,IDEOandDatascope.
Package: cssdecl
``cssdecl`` Python CSS declaration computer-------------------------------------------|version| |py-versions||build| |docs| |coverage|This package provides basic computation of CSS declarations in order to:* handle overwriting of properties>>> from cssdecl import CSS22Resolver>>> resolve = CSS22Resolver().resolve_string>>> resolve('font-size: 10pt; font-size: 12pt'){'font-size': '12pt'}* expand shorthands like `border-width: 0 5pt`>>> resolved = resolve('border-width: 0 5pt')>>> resolved.pop('border-left-width')'5pt'>>> resolved.pop('border-right-width')'5pt'>>> resolved.pop('border-bottom-width')'0pt'>>> resolved.pop('border-top-width')'0pt'>>> resolved{}* (TODO!) expand shorthands like `font: 5px sans-serif bold` into `font-family: sans-serif`, `font-size: 5px`, `font-weight: bold`* resolve sizes to a common unit (i.e. pt)>>> resolve('font-size: 20px'){'font-size': '15pt'}>>> resolve('font-size: 1em'){'font-size': '12pt'}>>> resolve('font-size: 1em', inherited={'font-size': '20pt'}){'font-size': '20pt'}>>> resolve('font-size: small'){'font-size': '9.600000pt'}* resolve `inherit` given some inherited declarations>>> resolve('color: red; color: inherit', inherited={'color': 'blue'}){'color': 'blue'}Some properties that are not shorthands in CSS 2.2 becomeshorthands in CSS 3, such as `text-decoration`. We thereforehope to provide :class:`cssdecl.CSS22Resolver` and :class:`cssdecl.CSS3Resolver`.This module does *not* process CSS selectors (e.g. ``#some-id > * > div.some-class``) and their applicability to elements, including specificity (e.g. ``!important``).This was first developed for use in Pandas_ (`#15530 <https://github.com/pandas-dev/pandas/pull/15530>`_).Issues will continue to be prioritised to improve CSS support there, in the absence of other clear use-cases... _Pandas: http://pandas.pydata.org.. |py-versions| image:: https://img.shields.io/pypi/pyversions/Django.svg:alt: Python versions supported.. |version| image:: https://badge.fury.io/py/cssdecl.svg:alt: Latest version on PyPi:target: https://badge.fury.io/py/cssdecl.. |build| image:: https://travis-ci.org/jnothman/cssdecl.svg?branch=master:alt: Travis CI build status:scale: 100%:target: https://travis-ci.org/jnothman/cssdecl.. |coverage| image:: https://coveralls.io/repos/github/jnothman/cssdecl/badge.svg:alt: Test coverage:target: https://coveralls.io/github/jnothman/cssdecl.. |docs| image:: https://readthedocs.org/projects/cssdecl/badge/?version=latest:alt: Documentation Status:scale: 100%:target: https://cssdecl.readthedocs.io/en/latest/?badge=latest
Package: cssdiff
semantic css diffinstallpip install cssdiffsee css differencecssdiffcommand is installed. using this command, be enable to see css difference.adding detectionwe have two files.x-only.cssall.cssx-only.css include only about x element, all.css has about x and y.$catdata/x-only.cssx{color:black;display:none;}$catdata/all.cssx{color:black;display:none;}y{color:white;display:none;}so, cssdiff answered, addition about y.$cssdiffdata/x-only.cssdata/all.cssy{+color:white;+display:none;}changing detectionIf x’s color is changed, cssdiff tell me that x’s color is changed.$catdata/x-color-changed.cssx{color:white;display:none;}y{color:white;display:none;}$cssdiffdata/all.cssdata/x-color-changed.cssx{-color:black;+color:white;}semantic diffbelow files are same meaning of all.css. so, no-difference.$catdata/all-separated.cssx{color:black;}y{color:white;}x{display:none;}y{display:none;}$cssdiffdata/all.cssdata/all-separated.css$catdata/all-squashed.cssx,y{display:none;}x{color:black;}y{color:white;}$cssdiffdata/all.cssdata/all-separated.css$catdata/all-conflicted.cssx{color:white;display:none;}y{color:white;display:none;}x{color:black;display:none;}y{color:white;display:none;}$cssdiffdata/all.cssdata/all-conflicted.cssappendixextra.css has extra information. so, cssdiff notify it.$catdata/extra.cssx,y,a>b,a+b{display:none;}x{color:black;}y{color:white;}$cssdiffdata/all.cssdata/extra.cssa+b{+display:none;}a>b{+display:none;}
Package: cs-sender
CS-Senderscrapy extension for spider monitor web framework cralwer-studioInstallpip install cs-senderUsageConfig following settings to settings.py of scrapy projectCS_BACKEND = http://localhost:8000
CS_API_TOKEN = '6452c52c4acee2044fe9d953467e6e45be1f367c'
EXTENSIONS = {
    'cs_sender.ScrapyMonitor': 802
}
Package: cs.seopack
IntroductionThis product adds some viewlet to improve SEO in Plone sites:Meta tag to tell robots “noindex, follow” the batch pagesCanonical url link for all pages. We have followed these rules for canonical urls:For normal content, the url is the object’s url without the trailing ‘/’:yoursite.com/news/ -> yoursite.com/newsDefault page (and its trailing ‘/’) is removed from the canonical url:yoursite.com/news/aggregator -> yoursite.com/news (aggregator is the default page of news)yoursite.com/news/aggregator/ -> yoursite.com/news (aggregator is the default page of news)View or template name is preserved in the canonical url:yoursite.com/@@search?SearchableText=query -> yoursite.com/@@search?SearchableText=queryyoursite.com/folder1/folder_listing -> yoursite.com/folder1/folder_listingCustomized batching template to create batching base urls based on canonical urls.Tested with Plone 4.2.x. It should work all previous Plone 4 versions, but it’s untested.In Plone 4.3.x the changes in batching template will not be available, because of the
use of plone.batching product and this product provides replacement just for batch_macros.pt
template.Changelog1.1 (2013-11-18)Added <meta name=”robots” value=”noindex,follow” /> for the default pages
[libargutxi]Added zcml:condition=”not-have plone-43” for canonical viewlet
[libargutxi]1.0.3 (2012/09/10)Batch template needs base urls without parameters
[erral]1.0.2.1 (2012/09/10)Brown bag release: Remove debugging output from template.
[erral]1.0.2 (2012/09/10)Fix batch url for 2nd and next pages
[erral]1.0.1 (2012/09/07)One more check in baching
[erral]1.0 (2012/09/07)Fix batches’ base url with canonical urls
[erral]Remove trailing / for the canonical urls, rely on the
default view (template or default page)
[erral]Added <link rel=”canonical” …> tag for all pages.
[erral]Added meta noindex, follow tag for batch pages
[erral]
Package: cs.serialise
OBSOLETE: some serialising functions. Please use by cs.binary instead.Latest release 20210316.2:
Further obsolescence: drop tests, mark as Development Status :: 7.Porting guide:get_bsis nowBSUInt.parse_bytes.put_bsis nowBSUInt.transcribe_value.Release LogRelease 20210316.2:
Further obsolescence: drop tests, mark as Development Status :: 7.Release 20210316.1:
Still obsolete (use cs.binary) but do not raise ImportError, just print a warning to sys.stderr.Release 20210316:Make obviously obsolete, yea, even unto raising an ImportError on import.Point users as cs.binary instead.Release 20190103:
Move most code into cs.binary, leave compatibility names behind here.Release 20160828:Use "install_requires" instead of "requires" in DISTINFO.Redo entire API with saner names and regular interface, add unit tests.Implement general purpose Packet class.Add put_bss, get_bss, read_bss to serialise strings.Python 2/3 port fix.DOcstring improvements and other internal improvements.Release 20150116:
Initial PyPI release.
Package: cs.service-api
ServiceAPI, a base class for APIs which talk to a service,
typically a web service via HTTP.Latest release 20230703:
Retry logic for requests.An instance of aServiceAPIembodies some basic features
that feel common to web based services:a notion of a loginlocal state, anSQLTagsfor data about entities of the servicedownloads, if that is a thing, withFSTagsfor file annotationsClassHTTPServiceAPI(ServiceAPI, cs.resources.MultiOpenMixin, cs.context.ContextManagerMixin)HTTPServiceAPIbase class for other APIs talking to HTTP services.Subclasses must define:API_BASE: the base URL of API calls.
For example, thePlayOnAPIdefines this asf'https://{API_HOSTNAME}/v3/'.ClassRequestsNoAuth(requests.auth.AuthBase)This is a special purpose subclass ofrequests.auth.AuthBaseto apply no authorisation at all.
This is for services with their own special purpose authorisation
and avoids things like automatic netrc based auth.ClassServiceAPI(cs.resources.MultiOpenMixin, cs.context.ContextManagerMixin)SewrviceAPIbase class for other APIs talking to services.Release LogRelease 20230703:
Retry logic for requests.Release 20230217:
Initial release.
Package: css-explore
css-exploreThis originally started as a tool to visualize the parse tree of a css
document, but more or less turned into a pretty printer.The reason I made this project was to compare compilation outputs of various
implementations of scss in an effort to switch a codebase from one compiler
to another.This uses:reworkcss/cssfor parsingekalinin/nodeenvfor bootstrapping nodeUsage$css-format--helpusage: css-format [-h] filenamepositional arguments:filenameoptional arguments:-h, --help  show this help message and exitExample run:$echo'body{color:red}'>test.css$css-formattest.cssbody {color: red;}
Package: cssfinder-backend-rust
CSSFinder Rust BackendImplementation of CSSFinder in Rust Programming Language.InstallingTo install CSSFinder NumPy Backend from PyPI, usepipin terminal:pip install cssfinder_backend_rustIf you want to use development version, traverseDevelopmentandPackagingsections below.DevelopmentBothRust(>=1.65) andPython(>=3.8) are required. Additionally, for
comfortable development experience,poetryis recomended, but it is not used
for deployment. To deploy code,maturinpackage is used.Installpoetryusepip install poetry==1.4.0Open dev shellpoetry shellInstall development requirementspoetry install --syncBuild packagepoe buildInstall pre-commit hookspoe install-hooksRun pre-commit hookspoe run-hooks
Package: css-generator
CSS-GeneratorWhat is this?css-generator is a tool to work with css stylesheet with python. It allow you to take a an existing css stylesheet and parse it to have a css object that can be modified or to create a css file in a python script.InstallTo installCSS-Generator, run the following command:pip install css-generatorUsageAfter install, to useCSS-Generatorto create a new css file, use the following code:.. code-block:: pythonfrom css_generator import StyleSheet
from css_generator import Rule

stylesheet = StyleSheet()

container = Rule(
    rule_selector='container',
    rule_type='class',
    properties={
        'position': 'relative',
        'width': '100 %'
    }
)

stylesheet.add_rule(container)

stylesheet.css(path='style.css')If you want to load an existing stylesheet use:.. code-block:: pythonfrom css_generator import parser

style = parser.from_file(path='style.css')
Package: cs.sh
Convenience functions for constructing shell commandsLatest release 20210316:
Minor doc update.Functions for safely constructing shell command lines from bare strings.
Somewhat like the inverse of the shlex stdlib module.As of Python 3.3 the functionshlex.quote()does whatquotestr()does.As of Python 3.8 the functionshlex.join()does whatquotecmd()does.Functionmain_shqstr(argv=None)shqstr: emit shell-quoted form of the command line arguments.Functionquote(args)Quote the supplied strings, return a list of the quoted strings.As of Python 3.8 the functionshlex.join()is available for this.Functionquotecmd(argv)Quote strings, assemble into command string.Functionquotestr(s)Quote a string for use on a shell command line.As of Python 3.3 the functionshlex.quote()is available for this.Release LogRelease 20210316:
Minor doc update.Release 20180613:
Rework quotestr significantly to provide somewhat friendlier quoting, include "," in the SAFECHARS.Release 20170903.2:
bugfixmainboilerplate after setuptools workaroundRelease 20170903.1:
workaround setuptool's slightly dumb console_scripts call of a "main" functionRelease 20170903:
shqstr command; new quotecmd(argv) functionRelease 20150118:
Extend SAFECHARS to include colon.Release 20150111:
minor cleanupRelease 20150107:
initial standalone public release
Package: cs.sharedfile
Facilities for shared access to files.Latest release 20230212:
Remove dependency on cs.logutils.Functionlockfile(path, ext=None, poll_interval=None, timeout=None)A context manager which takes and holds a lock file.Parameters:path: the base associated with the lock file.ext:
the extension to the base used to construct the lock file name.
Default:".lock"timeout: maximum time to wait before failing,
default None (wait forever).poll_interval: polling frequency when timeout is not 0.ClassSharedAppendFileA base class to share a modifiable file between multiple users.The use case was driven from the shared CSV files used bycs.nodedb.csvdb.Backend_CSVFile, where multiple users can
read from a common CSV file, and coordinate updates with a
lock file.This presents the following interfaces:__iter__: yields data chunks from the underlying file up
to EOF; it blocks no more than reading from the file does.
Note that multiple iterators share the same read pointer.open: a context manager returning a writable file for writing
updates to the file; it blocks reads from this instance
(though not, of course, by other users of the file) and
arranges that users of__iter__do not receive their own
written data, thus arranging that__iter__returns only
foreign file updates.Subclasses would normally override__iter__to parse the
received data into their natural records.MethodSharedAppendFile.__init__(self, pathname, read_only=False, write_only=False, binary=False, newline=None, lock_ext=None, lock_timeout=None, poll_interval=None):
Initialise this SharedAppendFile.Parameters:pathname: the pathname of the file to open.read_only: set to true if we will not write updates.write_only: set to true if we will not read updates.binary: if the file is to be opened in binary mode, otherwise text mode.'newline: passed toopen()`lock_ext: lock file extension.lock_timeout: maxmimum time to wait for obtaining the lock file.poll_interval: poll time when taking a lock file,
defaultDEFAULT_POLL_INTERVALClassSharedAppendLines(SharedAppendFile)A line oriented subclass ofSharedAppendFile.ClassSharedCSVFile(SharedAppendLines, SharedAppendFile)Shared access to a CSV file in UTF-8 encoding.ClassSharedWriteableWrapper for a writable file with supported mutex based cooperation.This is mostly a proxy for the wrapped file
exceptthat all.writecalls are serialised
and when used as a context manager
other writers are blocked.This is to support shared use of an output stream
where certain outputs should be contiguous,
such as a standard error stream used to maintain a status line
or multiline messages.Release LogRelease 20230212:
Remove dependency on cs.logutils.Release 20211208:
Update import.Release 20201228:
New SharedWriteable class to manage concurrent output with a mutexed .write method and a context manager for grouping larger uses.Release 20190102:
Context manager bugfix.Release 20170608:Facilities for shared files, split out from cs.fileutils.SharedAppend* classes. lockfile function.
Package: csshy
# CSSHY - Alpha VersionImporved ClusterSSH for modern terminals like terminator and tilix, to manage a cluster of nodes through ssh connectionslaunches multiple splits with ssh connections to each node## TODO to go betaThis project was created in a single Hackathon, so still have a long run to be beta quality. Any help is appreciated:* Add command line arguments to create/remove/modify cluster so there is no need to edit json files* Improve `guess` terminal detection for other DE (KDE and XFCE at least)* Add more backends* Make it compatible with other platforms (at least OS X)* Improve terminator code to use tempfile instead of creating a profile inside terminator* Write automated unit tests* Improve overall code quality## Migrate from csshnatorIf you are a previous csshnator user, you can migrate your old configuration with `migrate_settings_from_csshnator.py` script, just run it to get your cluster settings migrated## InstallTo install you need to have `Python 3` (tested with `3.6` but might work with older versions) and `pip`. Then you just need to:```bashpip install csshy```## UsageTo use it, just pass all hostnames as arguments on command line, like that:```bashcsshy -l user host1 host2 host3```You can also create a config file with all the clusters listed in a json format, and also adjust your default terminal:$HOME/.csshy.conf```json{"terminal": "guess","cluster_nodes": {"cluster1": ["10.10.100.209","10.10.100.210","10.10.100.211"],"cluster2": ["10.10.100.212","10.10.100.213","10.10.100.214"]}}```In `terminal` you can choose between `guess`, `terminator`, `tilix` and `cssh`. When you choose `guess` csshy will try it best to guess wich terminal to use.To use the cluster you created just pass the `-c` argument```bashcsshy -l <user> -c <clustername>```example:```bashcsshy -l thor27 -c cluster1```For more usage information you can consult the help:```./csshy --helpusage: csshy.py [-h] [-l LOGIN] [-s] [-c CLUSTER_NAME] [-t TERMINAL][cluster_nodes [cluster_nodes ...]]Open ClusterSSH-like session on Terminator or Tilixpositional arguments:cluster_nodes         Hostnames or user@hostname to connect to, separated byspaceoptional arguments:-h, --help            show this help message and exit-l LOGIN, --login LOGINLogin username to pass to all hosts used.-s, --show            Show all clusters available.-c CLUSTER_NAME, --cluster-name CLUSTER_NAMECluster name is a collection of hosts available on~/.csshy.conf file-t TERMINAL, --terminal TERMINALChoose terminal to use (tilix, terminator, cssh)```