Saravanan666/pypi-org huggingface dataset:
Package: css_image_concat
A script that can concat images into one image and create a CSS file.
Super useful when you want decrase issuing a lot of HTTP requests
due to a lot of small images (like icons).To install it do following:sudo pip install css_image_concatThis script takes three inputs:image_dir: A directory of images
out_img: An output path to the concated image
out_css: An output path to a CSS fileUsage is:css_image_concat <image_dir> <out_img> <out_css>It will then process all the images ofimage_dirand create one
image and one CSS file with classes. The CSS classes have following name:cmp_<filename>This script requires ImageMagick (http://imagemagick.org/)Copyright: by Amir Salihefendic (http://amix.dk/)
License: MIT
Package: cssjson
# CSSJSON :rocket:A Python scripts that converts css to json. I usually use this when I do web scrapping and I need to scrape something from css using classnames or ids.# Installation## GitHub```bash$ git clone https://github.com/CITGuru/cssjson.git$ cd cssjson$ python setup.py install```## PyPI```bash$ pip install cssjson```# Usage```pythonfrom cssjson import toJSON, toCSSjson = toJSON("example.css", path=True)print(json)css = toCSS(json)print(css)```# Methods## toJSON (text, path, url)Converts css to json and can either be a text, file or url.### Text```pythonprint(toJSON(".a{background:yellow}")```### Path```pythonprint(toJSON("example.css", path=True)```### Url```pythonprint(toJSON("https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css", url=True)```## toCSS (dict)Converts json serialized css to css.```pythonprint(toCSS({"rules":{}}))```# ContributionYou can contribute by sending a PR.# AuthorOyetoke Toby (oyetoketoby80@gmail.com)
Package: cssmediaquery
## css-mediaqueryParses and determines if a given CSS Media Query matches a set of values.This is a port of https://github.com/ericf/css-mediaquery.### Usage```pythonfrom cssmediaquery import match, parseisamatch = match('screen and (min-width: 40em)', {'type'  : 'screen','width' : '1024px'})# returns Trueast = parse('screen and (min-width: 40em)')print ast# [#    {#        'inverse': 'false',#        'type'   : 'screen',#        'expressions': [{#                'modifier': 'min',#                'feature': 'width',#                'value': '40em'#         }]#    }# ]```### Installing$ pip install cssmediaquery### Running Testspython tests.py -v
Package: cssmergemedia
# Copyright (c) 2012 Adrien KohlbeckerIntro=====CSS Merge Media merges identical media queries in your CSS.For example, the following CSS:@media screen and (min-width: 480px) and (max-width:899px) {.foo {color:black;}}@media screen and (min-width: 480px) and (max-width:899px) {.bar {background:red;}}Is compiled to:@media screen and (min-width: 480px) and (max-width:899px) {.foo {color:black;}.bar {background:red;}}This allows you to keep your media queries along with the base stylefor each element, instead of grouping them together at the end of thefile or in a separate file (and thus turning maintenance into anightmare)CSS Merge Media is based on cssutils: what can be parsed with cssutilscan be used in the script.Installation============Unpack the tarball and run::python setup.py installInvocation==========Invoke the script like so::cssmergemedia --input style.css --output style-merged.cssChangelog=========0.1.1 - June 13, 2012---------------------Fixed dependecy check on install0.1 - June 13, 2012-------------------Initial release
Package: cssocialprofile
CS SOCIALPROFILEBased ondjango-socialprofileand adapted byCode SyntaxCONFIGURATIONJust write this in your settings.py file:SOCIAL_AUTH_PIPELINE = (‘social_auth.backends.pipeline.social.social_auth_user’,
‘social_auth.backends.pipeline.associate.associate_by_email’,
‘social_auth.backends.pipeline.user.get_username’,
‘social_auth.backends.pipeline.user.create_user’,
‘social_auth.backends.pipeline.social.associate_user’,
‘social_auth.backends.pipeline.user.update_user_details’,
‘social_auth.backends.pipeline.social.load_extra_data’,
‘cssocialprofile.pipeline.extra_values.twitter_extra_values’,
‘cssocialprofile.pipeline.extra_values.facebook_extra_values’,
‘cssocialprofile.pipeline.extra_values.openid_extra_values’,)
Package: css-parser
css-parserA fork of the cssutils project based on version 1.0.2.
This fork includes general bug fixes and extensions
specific to editing and working with ebooks.The main python source code has been modified so
that it will run without further conversion on both
Python >= 2.7 and Python 3.X without any further
modules required.  All required modifications
are handled local to each fileFor more information on usage, please see thecssutils documentation.
Package: cssrlib
CSSRlib - Toolkit for PPP-RTK/RTK in Python using Compact SSRWhat is CSSRlib?CSSRLIB is a open toolkit in Python for high accuracy GNSS positioning. It supports SSR (State-Space Representation) based positioning for PPP (Precise Point Positioning) or PPP-RTK (Realtime Kinematic), while also supporting RTK. The goal of the CSSRlib toolkit is to provide an easy-to-understand open implementation to learn PPP/PPP-RTK positioning provided by satellite-based open PPP/PPP-RTK services such as QZSS CLAS, Galileo HAS, and BeiDou 3 PPP. It also supports ground based open service by IGS. The code is based on RTKlib.It supports the following open format:The observation data and ephemeris in RINEXThe PPP/PPP-RTK correction data in RTCM SSR, IGS SSR, Compact SSR, ...The precise orbit/clock data in SP3 format.Click this button for a quick demo in Google ColabPrerequisitesAdditional python packages are required as prerequisites and can be installed via the following commandspip install bitstruct galois crccheck pysolid
pip install notebook numpy matplotlibOptionally, on linux, users can install thecartopypackage and thePySolidpackagepip install cartopy pysolidIf the installation ofcartopyfails, try installinglibgeos++-devfirst.sudo apt-get install libgeos++-devInstallYou can install the official version of CSSRlib using pippip install cssrlibIf you want to install the development version from this repository, first clone or download the sources and then runpip install .in the root directory, where thesetup.cfgfile is located.TestingRun orbit plot sample.python test_eph.pyRun RTK sample.python test_rtk.pyOther samples with dataset are also available in a separate repositorycssrlib-dataincluding :Galileo-HAS PPP (SIS/IDD) processing exampleBDS-PPP processing exampleQZSS MADOCA-PPP processing exampleQZSS CLAS PPP-RTK processing exampleIGS (SP3+BIAS) PPP-AR processing example(experimental) PPP via SouthPAN (PVS) processing exampleBinary message parser for Septentrio receiver (Mosaic/PolaRX5)
Package: cssselect
cssselectis a BSD-licensed Python library to parseCSS3 selectorsand
translate them toXPath 1.0expressions.XPath 1.0expressions can be used inlxmlor another XPath engine to find
the matching elements in an XML or HTML document.Find the cssselect online documentation athttps://cssselect.readthedocs.io.Quick facts:Source, issues and pull requestson GitHubReleaseson PyPIInstall withpip install cssselect
Package: cssselect2
cssselect2 is a straightforward implementation of CSS4 Selectors for markup
documents (HTML, XML, etc.) that can be read by ElementTree-like parsers
(including cElementTree, lxml, html5lib, etc.)Free software: BSD licenseFor Python 3.7+, tested on CPython and PyPyDocumentation:https://doc.courtbouillon.org/cssselect2Changelog:https://github.com/Kozea/cssselect2/releasesCode, issues, tests:https://github.com/Kozea/cssselect2Code of conduct:https://www.courtbouillon.org/code-of-conduct.htmlProfessional support:https://www.courtbouillon.orgDonation:https://opencollective.com/courtbouilloncssselect2 has been created and developed by Kozea (https://kozea.fr/).
Professional support, maintenance and community management is provided by
CourtBouillon (https://www.courtbouillon.org/).Copyrights are retained by their contributors, no copyright assignment is
required to contribute to cssselect2. Unless explicitly stated otherwise, any
contribution intentionally submitted for inclusion is licensed under the BSD
3-clause license, without any additional terms or conditions. For full
authorship information, see the version control history.
Package: css-sprite
A simple css sprite generator.Free software: BSD 2-Clause LicenseInstallationpip install css-spriteYou can also install the in-development version with:pip install https://github.com/ionelmc/python-css-sprite/archive/main.zipUsageTo generate a css sprite from images:css-sprite [-h] [--grid GRID] --output OUTPUT
    [--mode MODE] [--vertical] [--background BACKGROUND]
    [--template TEMPLATE | --template-path TEMPLATE_PATH]
    [--verbose] [--version] image [image ...]Output is mainly a new image but you can also generate the accompanying css.Positional arguments:image                 Path to image to include in sprite.Options:-h,--helpshow this help message and exit--gridGRID,-gGRIDGrid cell size to use. One of: auto, X:Y.--outputOUTPUT,-oOUTPUTOutput file.--modeMODE,-mMODEForce a certain image mode in the output, see:https://pillow.readthedocs.io/en/latest/handbook/concepts.html#modes.--vertical,-vStack the images vertically (they are stacked horizontally by default).--backgroundBACKGROUND,-bBACKGROUNDBackground color.--templateTEMPLATE,-tTEMPLATEJinja template for CSS output on stdout.--template-pathTEMPLATE_PATH,-pTEMPLATE_PATHJinja template path for CSS output on stdout.--verboseMake output verbose.--versionshow program’s version number and exitTemplate variables:images- list of dicts with fields:index- counter starting from 1index0- counter starting from 0filename- path to source imageoffset- dict with fields:xandy(integers)position- dict with fields:xandy(integers)width- integer (same ascell.widthfor now)height- integer (same ascell.heightfor now)grid- dict with fieldswidth- integerheight- integervertical- bool (Trueif you have used--vertical)cell- dict with fields:count- number of input imageswidth- integerheight- integeroutput- pathlib.Path of output fileDocumentationhttps://python-css-sprite.readthedocs.io/DevelopmentTo run all the tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append toxChangelog0.2.0 (2022-05-06)Allow images to overlap by using alpha composition. Useful when cell is smaller than images, and images are transparent.Restructure template context.BACKWARDS INCOMPATIBLE0.1.1 (2022-04-18)Remove the universal flag (don’t produce py2.py3 wheels since
py2 isn’t supported anyway).0.1.0 (2022-04-18)First release on PyPI.
Package: cssstyle2dict
cssstyle2dict方便查找css style里面的属性,css反爬虫用的比较多Sample Code>>>fromcssstyle2dictimportstyleParsel>>>css='.a { float:left } .b { margin-right:-1em } .c { float:left } .a { position:relative }'>>>style_dict=styleParsel(css)>>>print(style_dict){'a':{'float':'left','position':'relative'},'b':{'margin-right':'-1em'},'c':{'float':'left'}}Installationpip install cssstyle2dict
Package: cs-storage
Compute Studio StorageA light-weight package that is used byCompute Studioto read and write model results to Google Cloud Storage.Setuppipinstallcs-storageexportBUCKET=YOUR_BUCKETAuthenticategcloudauthlogin
gcloudauthapplication-defaultloginUseimportcs_storage# run_model returns data that is compliant with the C/S outputs api.local_result,task_id=run_model(**kwargs)remote_result=cs_storage.write(task_id,local_result)round_trip=cs_storage.read(remote_result)assertlocal_result==round_tripTestpy.test-v
Package: csstuning
CSSTuning - Configurable Software Configuration Optimization BenchmarkCSSTuning is a comprehensive benchmark tool that caters to various real-world software configuration optimization problems. It offers a simple and rapid setup process for creating a software configuration optimization environment on Linux systems, accurately replicating real software configuration challenges.IntroductionOptimizing software configurations is a crucial aspect of performance tuning for a wide array of applications and systems. CSSTuning aims to address this need by providing an extensive collection of benchmark scenarios, each representing authentic software configuration optimization problems. Whether you are a developer, researcher, or enthusiast, CSSTuning provides an invaluable resource for assessing and optimizing the performance of diverse software configurations.Benchmark ListCompilerData base manage system (DBMS) //to doWeb Server //to doBig data system //to doFeaturesDiverse Benchmark Scenarios: CSSTuning presents a rich set of benchmark scenarios that accurately emulate real-world software configuration optimization problems for multiple software systems.Multi-objective Optimization: For each software system, CSSTuning incorporates various officially recognized performance evaluation metrics, allowing the construction of multi-objective optimization problems.Containerized Benchmarks: All benchmarks in CSSTuning are containerized, eliminating dependency issues and ensuring easy reproducibility across different environments.Industrial Data-driven Tuning: CSSTuning goes beyond traditional benchmarks by providing the ability to optimize software systems using real-world industrial data, making the optimization process more relevant and practical.installationPrerequisites:POSIX System (i.e. Linux, MacOS)Docker installedPython 3.8+git clone https://github.com/neeetman/csstuning.git
cd path/to/csstuning
#modify PAPI permissions for compiler benchmark
sudo sh -c "echo -1 > /proc/sys/kernel/perf_event_paranoid"
##installation
python setup.py install --userUsage1.Compiler BenchmarksUse command lineGCC compiler# View the available benchmarks for GCC #
csstuning compiler:gcc list benchs
# View the available flags for GCC #
csstuning compiler:gcc list flags
# Help command #
csstuning --help
# Run GCC with specific benchmark and flags #
csstuning compiler:gcc run benchs=cbench-automotive-bitcount flags="ftree-loop-vectorize,ftree-partial-pre"LLVM compiler# View the available benchmarks for LLVM #
csstuning compiler:llvm cc list benchs
# View the available flags for LLVM #
csstuning compiler:llvm list flags
# Help command #
csstuning --help
# Run LLVM with specific benchmark and flags #
csstuning compiler:llvm run benchs=cbench-automotive-bitcount flags="vetor-combine"Use in python2.DBMS Benchmarks
Package: cs-sync
DescriptionsA custom syncing tool. Originally used to simply tasks such as checking on my local Git repositories and syncing to my Taskwarrior server. May someday add S3 support.InstallationPyPi - The Python Package Indexpip install cs-syncCurrent SupportGitWorks with bare reposTaskwarriorUsageUses async operations, alongside package such as Click (what Typer is built upon) and blessed to create a pleasant experience checking on your local repos and syncing your tasks with your Taskwarrior server.The default is to check your config file, located at~/.cssync, and load up your configuration details. If this is not the case, then it will use reasonable defaults for your local configuration.Gitcs-sync git: Pulls on all repositories.
: Shows Reponame(actually folder name), branch, diff information, diff files (added, deleted, changes, etc.).--short: Won't show the repos that are up to date.Taskwarriorcs-sync tasks: Simply runstask syncto sync your tasks with your Taskwarrior server.Example .cssync filerepo_paths:-~/Development/*-~/vimfiles-~/wiki-~/Work-~/.git-hooksbare_repos:-name:Dotfilesgit_dir:~/.dotfileswork_tree:~/
Package: cstack
🐍 Cstack - Python made EasyAn Opinionated Full Stack Framework for Web Development. Built on Python, Vite, and Vue.This stack can be used to create a fullstack application that can be deployed on Deta, or another python hosting.
It includes:Monadic Error HandlingORMTesting LibraryCLI GeneratorType SafetyProject Structureapp/
 | api/                  -- Python Project
    | app.py             -- API Entrypoint
    | models/            -- Database ORM Models
    | config/            -- Pydantic Configuration
       | db.py           -- Database Configuration
       | env.py          -- Environment Variables
       | settings.py     -- Application Settings
    | features/          -- Feature Libraries
    | shared/            -- Shared Code
    | tests/             -- Pytest Tests
 | view/                 -- Vue Project
 __init__.py             -- Application File
.env                     -- Env File
cstack                   -- CLI Tool
pyproject.toml           -- Poetry FileFeaturesThis is the lifeblood of a Cstack project.
Cstack is feature-driven, rather than layered.
The reason is feature code is co-located, rather than spread across directories.
A feature includes:__init__.pyrouter.pyservices/repositories/repositories/mocks/DTOs/router.pyThis is the fastapi router.
All endpoints for this function should be defined here.services/This is collection of services.
These services can be defined as a either a class or as a collection of functions.
They should be pure operations, and contain most of the business logic.
The reason for purity is testability and portability.
If for a reason you move away from Cstack, the code is easily usable again.
It also means that the feature logic could be shared if needed.A service can be generated as well, these are injected into routes through FastAPI's dependency injection.
A service includes:{{service_name}}.pytest_{{service_name}}.pyrepositories/A repository communicates with the database. The reason for both repositories and an ORM is it allows the business logic
to be completely decoupled from the database pattern. This is also means the services are easily testable.
A repository includes:{{repository_name}}.pymocks/{{repository_name}}.pyThe mocks folder contains dummy implementations of the repo, for use in testing.DTOs/This a collection of Pydantic Objects.
These are used for communicating data for the given feature.ORM Models ARE NOT DTOs. Use a Pydantic Model. Leave ORM code in the Repositories.config/db.pyAll the database setup code is contained here.
It is exposed to the user if the need arises to modify it.
All models should import the declared Database base.config/settings.pyThis includes versioning info, as well as other global settings used in the project.
This is instantiated as a singleton, and should only be used through that singleton.config/env.pyThis is influenced by T3-stack's env folder, where they define a runtime schema for Environment Variables.
These variables are defined here, and parsed through Pydantic.
This is instantiated as a singleton and should only be used through that singleton.
Package: cstag-cli
cstag-clicstag-cliis a command-line tool ofcstagfor manipulatingminimap2's CS tags.🌟Featurescstag append: Appends CS tags to a SAM/BAM file🛠 InstallationUsingPyPI:pipinstallcstag-cliUsingBioconda:condainstall-cbiocondacstag-cli💡UsageAppending CS Tags to a SAM/BAM Filecstagappend<file>[-l/--long]<file>:  Path to the SAM/BAM file. If omitted, the program reads from standard input.Note: The SAM/BAM file must contain an MD tag.-l/--long: Generates CS tags in long formatExamplesAppending CS tags in short format:cstagappendtests/append/data/example.bam>example_cs_short.samAppending CS tags in long format:cstagappendtests/append/data/example.bam--long>example_cs_long.samReading data from standard input:cattests/append/data/example.bam|cstagappend>example_cs_short.sam📣FeedbackFor questions, bug reports, or other forms of feedback, we'd love to hear from you!Please useGitHub Issuesfor all reporting purposes.Please note that this project is released with aContributor Code of Conduct.By participating in this project you agree to abide by its terms.
Package: cstat
cstatA visual stat tool for CrateDB clusters.cstatis ispired by the awesome interactive process monitoring toolhtop.cstatshould be a similar tool toiostat, but for monitoringCrateDBclusters.RequirementscstatrequiresPython >= 3.6and can connect toCrateDB >= 2.3.Installationcstatis available fromPypiso you can install it usingpip.pip install cstatIf you want to get the latest features and fixes, you can also install it
directly fromGithub.pip install git+https://github.com/chaudum/crate-top.git@masterUsageAfter installation you can monitor CrateDB running on localhost with default
configuration by invoking the following command:>>> cstat --user crateA full list of command line arguments are listed when invokingcstatwith
the--helpargument:>>> cstat --help
usage: cstat [-h] [--host HOST] [--port PORT] [--interval INTERVAL]
             [--user USER] [--version]

A visual stat tool for CrateDB clusters

optional arguments:
  -h, --help            show this help message and exit
  --host HOST, --crate-host HOST
                        CrateDB host to connect to
  --port PORT, --psql-port PORT
                        PSQL port of CrateDB host
  --interval INTERVAL, --refresh-interval INTERVAL
                        amount of time in seconds between each update
  --user USER, --db-user USER
                        database user
  --version             show program's version number and exitBy defaultcstatconnects tolocalhoston port5432if not
otherwise specified.Keyboard Shortcuts0… toggle cluster info1… show utilization for CPU, process, memory, heap and disk2… show I/O statistics for network and disk3… show aggregated query duration based onjobs_logx… toggle nodes/aggregation viewf3… enable/disable job logging (this also sets thestats.jobs_logcluster setting)Known IssuesSmall terminal sizes will raise CanvasErrors because of content overflow.Todo[x] display disk usage[x] display disk i/o[x] display network i/o[x] display node names in detail views[x] use asyncio to perform http requests[x] coloring of i/o stats[ ] responsive i/o widgetChangelog for cstatUnreleased0.3.0Released on2018/06/01with the following changes:Make cstat compatible with CrateDB version 2.3.0 and greater.Updated process CPU usage calculation to work with CrateDB 2.3 and newer.Updated disk usage and disk i/o calculation to work with CrateDB 2.3 and
newer.Added-V(prompt for username) argument.Added--passwordand-W(prompt for password) arguments.0.2.0Released on2017/11/14with the following changes:Implemented asynchronous database access usingaiopgwhich uses the Postgres
Wire Protocol instead of the official CrateDB Python client which uses the
HTTP protocol.Addedmedian,percentile 95, andpercentile 99to query stats
table view.Added--user/--db-usercommand line argument to support user
authentication for clusters which run CrateDB 2.0 or greater.Changed the toggle key for enabling/disabling query stats fromF1toF3, because in theTerminatorterminal theF1key is reserved for
“help”.Pre-calculate used and idle CPU in SQL statement to avoid rounding issues
that can cause an display overflow in CPU widget.0.1.0Initial release on2017/03/30:
Package: cstats
cstats generates information about your file directoryThe MIT License (MIT)Copyright (c) 2015 Miguel VelezPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.