Saravanan666/pypi-org huggingface dataset:
Package: cs.clockutils
A framework to present system clocks by feature, intended to avoid
the library-as-policy pitfalls of the discussion around PEP 418.My 2c:http://www.gossamer-threads.com/lists/python/dev/977474#977474http://www.gossamer-threads.com/lists/python/dev/977495#977495or:http://www.mail-archive.com/python-dev@python.org/msg66174.htmlhttp://www.mail-archive.com/python-dev@python.org/msg66179.htmlCameron Simpsoncs@cskk.id.au02apr2012ClassBaseClockA BaseClock is the private base class of clock objects.A clock has the following mandatory attributes:.flags: Feature flags describing the clock.A clock may have the following optional attributes:.epoch:
If present, the offset from time.time()'s epoch of this
clock's epoch(). Not all clocks have epochs; some measure
elapsed time from an unknown point and only the  difference
in two measurements is useful..resolution:
The resolution of the underlying clock facility's
reporting units. The clock can never be more precise than
this value. The actual accuracy of the reported time may
vary with adjustments and the real accuracy of the
underlying OS clock facility (which in turn may be
dependent on the precision of some hardware clock).A clock must also supply the following methods:.now(): Report the current time in seconds, a float.ClassClockEntryMRO:builtins.tupleClockEntry(flags, factory)ClassClockFlagsMRO:builtins.intAn int with human friendly str() and repr() for clock flags.The flag names are:HIGHRES: clock with the highest resolution.MONOTONIC: clock does not go backwards.STEADY: clock with highstabilityand relatively highaccuracyandprecision.ADJUSTED: clock whose value may be changed
to the correct time.WALLCLOCK: what the clock on the wall shows.RUNTIME: clock based on the process running time.SYNTHETIC: clock computed from other clocks,
such as a monotonic clock computed from other
nonmonotonic clocks.Functionget_clock(flags=0, clocklist=None)Return a clock based on the suppliedflags.
The returned clock shall have all the requested flags.
If no clock matches, return None.Functionget_clocks(flags=0, clocklist=None)Yield all clocks matching the suppliedflags.
The returned clocks shall have all the requested flags.Functionhighres()Return the current time according to the default high resolution clock.Functionhighres_clock(other_flags=0)Return a high resolution clock, preferably steady.Functionmonotonic()Return the current time according to the default monotonic clock.Functionmonotonic_clock(other_flags=0)Return a monotonic clock, preferably high resolution.Functionsteady()Return the current time according to the default steady clock.Functionsteady_clock(other_flags=0)Return a steady clock, preferably high resolution.ClassSyntheticMonotonicMRO:BaseClockAn example synthetic clock.This class comes after time.time() because I think synthetic
clocks should be less desired - they tend to have side
effects; but perhaps offered anyway because they can offer
flag combinations not always presented by the system clocks.A simple synthetic monotonic clock may skew with respect to other
instances.
Steven D'Aprano wrote a better one.
Package: cscmiko
cscmiko SDKSDK for cisco Catalyst , Nexus, ASA, wireless lan controllers, built using Netmiko and ntc-templates,Installingpip install cscmikoGetting StartedExample 1:to get interfaces from the device:from cscmiko.devices import CatSwitch
my_switch = CatSwitch(host='192.168.1.1', username='admin', password='admin')
my_switch.fetch_interfaces()

for interface in my_switch.interfaces :
    print(interface.name , " is " , interface.link_status)results :GigabitEthernet1/1/1  is  administratively down
GigabitEthernet1/1/2  is  administratively down
GigabitEthernet1/1/3  is  administratively down
TenGigabitEthernet1/1/4  is  up
TenGigabitEthernet1/1/5  is  up
TenGigabitEthernet1/2/1  is  down
TenGigabitEthernet1/2/2  is  upyou can also filter:filtered = my_switch.filter(status = 'down')  # return list of down interfaces objectsExample 2:to add a VLAN to the device:from cscmiko.devices import CatSwitch
my_switch = CatSwitch(host='192.168.1.1', username='admin', password='admin')
my_switch.fetch_vlans()
my_switch.vlans.add(id='911', name="Vlan911")
is_ok, msgs = my_switch.commit()
print(is_ok)results:TrueExample 3:Nexus switchfrom cscmiko.devices import NexusSwitch
my_switch = NexusSwitch(host='192.168.1.2', username='admin', password='admin')
my_switch.fetch_vpc()

print("list of up VPCs :")
for vpc in my_switch.vpcs:
    if vpc.is_up:
        print("id:",vpc.id,"- port: ",vpc.port)results:list of up VPCs :
id: 1 - port:  Po99ContributingPlease readCONTRIBUTING.mdfor details on our code of conduct, and the process for submitting pull requests to us.
Package: cs.collage
cs.collageSome improvements and modifications for Products.CollageChangelog1.4 (2014-09-23)Fix views
[erral]New collage views
[erral]1.3 (2014-03-13)Change rss.gif to rss.png
[erral]Add z3c.autoinclude plugin support
[erral]1.0 - UnreleasedAdded a four column view for Collage rows
[erral]
Package: cs.commenteditor
IntroductionA view to edit a comment created using plone.app.discussion.It doesn’t expose any link, so just add a link to COMMENT_URL/edit in your templateThe permission required to edit comments is the one used to review them:
plone.app.discussion.ReviewCommentsChangelog1.1.1 (2017-11-24)unicode handling [Mikel Larreategi <mlarreategi@codesyntax.com>]1.1 (2015-01-13)add manifest [Mikel Larreategi <mlarreategi@codesyntax.com>]notify object modification [Mikel Larreategi <mlarreategi@codesyntax.com>]bump [Mikel Larreategi <mlarreategi@codesyntax.com>]Updating version on trunk after tagging [Mikel Larreategi <mlarreategi@codesyntax.com>]1.0 (2013-11-15)Bigger textarea for comment-text
[erral]1.0b3 (2012/10/02)Require plone.app.discussion.ReviewComments permission to edit the comment
instead of cmf.ManagePortal
[erral]1.0b2 (2012/10/02)Improve package metadata
[erral]1.0b1 (2012/10/01)Initial release
[erral]
Package: cscomms
Python Script CommunicationThis script provides functions for communication between scripts using message passing. It includes a decoratorlistento mark a function as a message listener and a functionsendto send messages to specific channels.UsageInitFunction to initialise a channel (create the files). run this before using the channel!init(channel)channel: an integer representing the channel to initialiseListenDecorator to make a function a message listener. The function needs a parameter for the message, which it will return as a dictionary.@listen(channel, interval=1.0)
def listener_func(message):
    # Process the received messagechannel: An integer representing the channel to listen to.interval(optional): The interval in seconds to check for new messages (default is 1.0 second).SendFunction to send a message to a specific channel.send(channel, message, metadata={"source": main_file_name})channel: An integer representing the channel to send the message to.message: A dictionary containing the message data.metadata(optional): A dictionary containing additional metadata for the message. By default, it includes the source file name where thesendfunction is called.cleanupFunction to clean up used files. WARNING! ONLY RUN THIS WHEN YOU ARE DONE USING THE PACKAGE! it WILL halt running scriptscleanup()ExampleHere's an example of how to use the script:from cscomms import messaging as cscomms

cscomms.init(1)

@cscomms.listen(channel=1, interval=0.5)
def message_listener(message):
  print(message)

cscomms.send(channel=1, message={"user": "username", "message": "message"})In this example, the script listens to channel 1 and prints any received message. It then sends a message with the key-value pair{"key": "value"}to channel 1.
Package: cs.configutils
Utility functions and classes for .ini style configuration files.Latest release 20220606:
HasConfigIni: new info_dict() method (name subject to change) to return a descriptive dict, part of a new scheme I'm trying out to report summary data from commands.ClassConfigSectionWatcher(collections.abc.Mapping, collections.abc.Collection, collections.abc.Sized, collections.abc.Iterable, collections.abc.Container)A class for monitoring a particular clause in a config file.MethodConfigSectionWatcher.__init__(self, config, section, defaults=None):
Initialise aConfigSectionWatcherto monitor a particular section
of a config file.config: path of config file orConfigWatchersection: the section to watchdefaults: the defaults section to use, default 'DEFAULT'ClassConfigWatcher(collections.abc.Mapping, collections.abc.Collection, collections.abc.Sized, collections.abc.Iterable, collections.abc.Container)A monitor for a windows style.inifile.
The currentSafeConfigParserobject is presented as the.configproperty.ClassHasConfigIniClass for objects with aconfig.inifile.
A section of the config is designated "our" configuration
and its fields parsed into aTagSet;
in particular the field values use theTagSettranscription syntax.The default implementation is expected to be mixed into a
class with a.pathto(rpath)method, such as one which
inherits fromHasFSPath.The mixin provides the following attributes:config: an on demand property which is aTagSetmade
from the configuration file sectionconfig_ini: the relative path to the configuration fileconfigpath: the full pathname of the configuration fileconfig_flush(): update the configuration file if the tags
have been modifiedMethodHasConfigIni.__init__(self, section, config_ini=None):
Initialise the configuration.Functionload_config(config_path, parser=None)Load a configuration from the namedconfig_path.Ifparseris missing orNone, useSafeConfigParser(justConfigParserin Python 3).
Return the parser.Release LogRelease 20220606:
HasConfigIni: new info_dict() method (name subject to change) to return a descriptive dict, part of a new scheme I'm trying out to report summary data from commands.Release 20220430:
New HasConfigIni mixin for classes keeping some configuration in a .ini config file section.Release 20210306:
Fix imports from collections.abc.Release 20190101:
Internal changes.Release 20160828:
Update metadata with "install_requires" instead of "requires".Release 20150118:
Initial PyPI release.
Package: csconverter
CSConverterConnectionString ConverterUsageModule created to easily generate ODBC connection string from other standards.
For now, it's logic is dumb, but it suits my needs.If You found a bug, need another conversion method or just want to enhance library, pull requests are welcome ☺!Supported conversionsfrom ADO.NETfrom ODBCfrom JDBCto ADO.NETto ODBCto JDBC
Package: cscope-manager
cscope-managerA tool helps you manage cscope/ctags tagsInstallationpipinstallcscope-managerCustimizationYou can create a config file in ~/.csmgr.config to customize your preference# Supported configurations and format
project_list = .csmgr.project
suffixes = .cpp
out_list = map.files
meta_files = cscope.in.out cscope.out cscope.po.out tags
exclude_dirs = dir
# Note: Only supprot $out_list. Not support other variables interpolation
exec_cmds = cscope -bqk -i $out_list && ctags -L $out_list
display_max = 20
delim     = ........................................
delim_end = ****************************************FeaturesGenerate file list (cscope.files) for cscope/ctags through a customize project list (.csmgr.project)Remove duplicate file pathes in cscope.filesRemove symbolic link in cscope.filesRemove not existed files in cscope.filesCheck redudant path in project listUsageusage: csmgr [-h] [-u] [-f] [-s SUFFIXES [SUFFIXES ...]] [-c CONFIG_FILE]
             [-o OUT_LIST] [-m META_FILES [META_FILES ...]]
             [-e EXCLUDE_DIRS [EXCLUDE_DIRS ...]] [-d] [--dry-run]
             [--max-display MAX_DISPLAY] [-x EXEC_CMDS [EXEC_CMDS ...]]
             [--verbose] [-v]
             [path [path ...]]

positional arguments:
  path                  add path to project list (.csmgr.project) and run
                        commands for tag generation if cscope.files is changed
                        ex. dir/, file.c

optional arguments:
  -h, --help            show this help message and exit
  -u, --update          Update cscope.files if necessary and run commands for
                        tag generation
  -f, --force           delete meta data and run commands for tag generation
  -s SUFFIXES [SUFFIXES ...], --suffixes SUFFIXES [SUFFIXES ...]
                        assign suffixes filter (default: .c .h .js .cpp .py
                        .scss .css .java)
  -c CONFIG_FILE, --config-file CONFIG_FILE
                        assign config file (default: ~/.csmgr.config)
  -o OUT_LIST, --out-list OUT_LIST
                        assign the name of output list file (default:
                        cscope.files)
  -m META_FILES [META_FILES ...], --meta-files META_FILES [META_FILES ...]
                        assign meta data files (default: cscope.in.out
                        cscope.out cscope.po.out tags)
  -e EXCLUDE_DIRS [EXCLUDE_DIRS ...], --exclude-dirs EXCLUDE_DIRS [EXCLUDE_DIRS ...]
                        assign exclude dirs (default: .git node_modules)
  -d, --delete-meta     delete all meta data
  --dry-run             show what would be done
  --max-display MAX_DISPLAY
                        assign how many paths will be shown in the log
  -x EXEC_CMDS [EXEC_CMDS ...], --exec-cmds EXEC_CMDS [EXEC_CMDS ...]
                        assign commands for tag generation. $out_list will be
                        replaced by list file name (check -o for details).
                        (default: cscope -bqk -i $out_list && ctags -L
                        $out_list)
  --verbose             show more logs
  -v, --version         show program's version number and exit
Package: csc-pysparse
Pysparse is a fast sparse matrix library for Python. It provides several sparse
matrix storage formats and conversion methods. It also implements a number of
iterative solvers, preconditioners, and interfaces to efficient factorization
packages. Both low-level and high-level interfaces are available, each with
different strengths.This is not the official source to PySparse. This is csc-pysparse, a downstream
package maintained by the Commonsense Computing Group
(http://csc.media.mit.edu) with the goal of making it install automatically
through Pip or easy_install.Original authors of PySparse:Geus    <hamsel@sf.net>Orban   <d-orban@sf.net>Wheeler <wd15@sf.net>Packaged by: Rob Speer <rspeer@mit.edu>
Package: csc-recorder
csc-recorderPython wrapper for CSC Recorder.pip install csc-recorderUsuagefrom csc_recorder.CSCRecorder import CSCRecorder


client = CSCRecorder('host', 'username', 'password')

# Sending a package
data, response = client.send_package('1234_TEST', '48201', 'Default Office', {'document_name': 'test', 'document_type': 'Deed'}, 'paperfulfillment', True)The first three params are required:client_package_idfipsassigned_officeThe dictionary in the params supports the below attributes, they're not required:document_namedocument_typesend_to_countysend_to_stategrantee_first_namegrantee_last_namegrantee_middle_namegrantee_suffixgrantee_titlegrantor_first_namegrantor_first_namegrantor_last_namegrantor_middle_namegrantor_suffixgrantor_titleconsideration_amountoriginal_recording_dateoriginal_instrument_nooriginal_deed_bookoriginal_deed_pageassesors_parcel_iddate_of_noteamount_of_noteproperty_street_address_1property_cityproperty_stateproperty_ziprequesting_namereturn_namereturn_companyreturn_street_address_1return_cityreturn_statereturn_ziprequesting_companyrequesting_address_1requesting_cityrequesting_staterequesting_zipdoc_image **(NOTE: base64 PDF's)The last 2 params are optional as well.service_type, defaults to None, but currently you can also add 'paperfulillment'no_document, defaults to False, but you can make the package send 0 document attributes by marking True
Package: cscribe
cscribe 🐫🖋️cscribeis acmlkitplugin fordscribe.It providescmlkit-styleComponentsfor the representations implemented indscribe. At the moment, it supports:SOAP: Supported, tested, used inrepbench.SF: Supported, but onlyg2andg4. Untested in production.MBTR: Supported, but untested in production. Local MBTR is also supported, but also untested.Coulomb matrix, sine matrix, or ewald sum matrix are not currently supported. (Please submit a pull request!)In general,cscribeimplements a subset of the full capabilities ofdscribe, in order to stay consistent with the choices made incmlkit. For instance, you can't specify whetherperiodicis turned on or not, andsparseis not implemented. Please feel free to build your own customisedComponentsbased on the code here!The exact parameters are documented in the code itself, please have a look!Installationpip install cscribe
export CML_PLUGINS=cscribeOr addcscribeto$CML_PLUGINSin your.bashrcor equivalent.
Package: cs.cssbrowserselector
IntroductionThis products adds css_browser_selector javascript as a registered JS file to portal_javascripts in Plone.It uses the latest version of css_browser_selector published by Andrew Relkin on GitHub as far as the original
mantainer has not updated the product for some time.https://github.com/verbatim/css_browser_selector/The original author of css_browser_selector is Rafael Lima (http://rafael.adm.br)Credit is given according to the original file’s CC-BY licenseThe products contains both the original version of the js file and also a minified version created by
YUI-compressor 2.4.7The JS added to Plone is the minified one.Changelog1.0 (2012/03/07)Initial release
[erral]
Package: csctracker-py-core
CscTrackerPyCoreKey FeaturesDocumentation and ExamplesCOMING SOONTestingCurrently, this project does not have automated tests. They may be added in the future as needed.ContributingIf you would like to contribute to this project, feel free to fork the repository, make your changes, and propose a pull
request.LicenseThis project is under the MIT license. Please refer to theLICENSEfile for more details.
Package: csctracker-queue-scheduler
CscTrackerQueueSchedulerThis project is a Python job scheduling and queuing library. It allows jobs to be scheduled to run at specific periods
and queues these jobs for execution.Key FeaturesJob Scheduling: The Scheduler service (SchedulerService) allows jobs to be scheduled for execution at specified
intervals. It supports intervals in seconds, minutes, hours, days, and weeks, as well as daily scheduling at a
specific time.Queue Service: Scheduled tasks are put in a queue (QueueService) for execution. Tasks can be queued with or
without priority, which determines their order of execution.InstallingInstall and update using pip:pip install csctracker-queue-schedulerDocumentation and ExamplesCOMING SOONSimple Examplefromcsctracker_queue_scheduler.models.enums.time_unitimportTimeUnitfromcsctracker_queue_scheduler.services.scheduler_serviceimportSchedulerServicedefmy_function():print("Hello, world!")SchedulerService.start_scheduled_job(function=my_function,period=5,time_unit=TimeUnit.SECONDS)In the above example,my_functionwould be scheduled to run every 5 minutes.TestingCurrently, this project does not have automated tests. They may be added in the future as needed.ContributingIf you would like to contribute to this project, feel free to fork the repository, make your changes, and propose a pull
request.LicenseThis project is under the MIT license. Please refer to theLICENSEfile for more details.
Package: csdaily
===============================cn_stock_daily===============================.. image:: https://img.shields.io/pypi/v/csdaily.svg:target: https://pypi.python.org/pypi/csdaily.. image:: https://img.shields.io/travis/qytz/cn_stock_daily.svg:target: https://travis-ci.org/qytz/cn_stock_daily.. image:: https://readthedocs.org/projects/csdaily/badge/?version=latest:target: https://csdaily.readthedocs.io/en/latest/?badge=latest:alt: Documentation Status.. image:: https://pyup.io/repos/github/qytz/cn_stock_daily/shield.svg:target: https://pyup.io/repos/github/qytz/cn_stock_daily/:alt: UpdatesChina Stock Daily* Free software: Apache License 2.0* Documentation: https://csdaily.readthedocs.io.Features--------* TODO==================CHANGELOG==================0.0.1==================- 搭建基本的框架
Package: cs.dateutils
A few conveniences to do with dates and times.Latest release 20230210:Drop Python 2 support.Make timezones mandatory where previously they were assumed.There are some other PyPI modules providing richer date handling
than the stdlibdatetimemodule.
This module mostly contains conveniences used in my other code;
you're welcome to it, but it does not pretend to be large or complete.Functiondatetime2unixtime(dt)Convert a timezone awaredatetimeto a UNIX timestamp.Functionisodate(when=None, dashed=True)Return a date in ISO8601 YYYY-MM-DD format, or YYYYMMDD if notdashed.Modern Pythons have adatetime.isoformatmethod, you use that.Functionlocaldate2unixtime(d)Convert a localtimedateinto a UNIX timestamp.ClasstzinfoHHMM(datetime.tzinfo)tzinfo class based on +HHMM / -HHMM strings.Functionunixtime2datetime(unixtime, *, tz: datetime.tzinfo)Convert a a UNIX timestamp to adatetimein the timezonetz.ClassUNIXTimeMixinA mixin for classes with a.unixtimeattribute,
afloatstoring a UNIX timestamp.Release LogRelease 20230210:Drop Python 2 support.Make timezones mandatory where previously they were assumed.Release 20210306:
Initial release, used by cs.sqltags.
Package: cs.delta
Utility functions around state changes.Latest release 20240214:
Initial PyPI release.Functiondelta(old, new, keys=None)Return a mapping representing differences between the mappingsoldandnewfor the specifiedkeys.
Ifkeysis not specified, the union of the keys ofoldandnewis used.The returned mapping has a key for each changed value.
If the key does not exist innewthe value is theMISSINGsentinel object otherwise it isnew[key].
Values are compared using==; if that raisesTypeErrorthe values are considered not equal.Example:d1 = {1: 2, 3: 4, 5: 6}
d2 = {1: 2, 3: 44, 7: 8}
diff = delta(d1, d2)
diff  # doctest: +ELLIPSIS
{3: 44, 5: <object object at ...>, 7: 8}
diff[5] is MISSING
TrueFunctionmonitor(get_state, keys=None, *, ifunchanged=False, interval=0.3, runstate=None)A generator yielding 3-tuples of(old,new,delta(old,new,keys))at poll intervals ofintervalseconds.Parameters:get_state: a callable which polls the current state,
returning a mappingkeys: an optional iterable of keys of interest;
if omitted, all the old and new mapping keys are examinedifunchanged: optional flag, defaultFalse;
if true yield a tuple on every poll instead of only when a
state change is seeninterval: an optional interpolltime.sleepperiod,
default0.3srunstate: an optionalRunState, whosecancelledattribute will be polled for loop terminationRelease LogRelease 20240214:
Initial PyPI release.
Package: cs.discussionextender
cs.discussionextenderThis product adds 2 extra fields to discussion form provided
by plone.app.discussion: url and email.The url is directly shown in the template and email is only
shown for logged-in users.Changelog1.0.4 (2013-11-18)Register a new viewlet instead of overriding the existing one
[erral]1.0.3 (2012/05/28)Translations
[erral]1.0.2 (2012/05/28)Backport comments template from p.a.d to avoid exceptions
when using un-moderated commenting system
[erral]1.0.1 (2012/05/24)Packaging fixes
[erral]1.0 (2012/05/24)Initial release
[erral]
Package: csdjango.contactform
# IntroductionStrongly based on the James Bennett / ubernostrum’s contact_form1.3 (2022-10-28)README format changed [Urtzi Odriozola <uodriozola@codesyntax.com>]typing error [Urtzi Odriozola <uodriozola@codesyntax.com>]README in markdown format [Urtzi Odriozola <uodriozola@codesyntax.com>]python3 django 4.1 adaptation [Urtzi Odriozola <uodriozola@codesyntax.com>]1.2 (2019-07-23)
Package: csdn
# -- coding:utf-8 --csdncsdn blog backup (.md file), offline(.html file)###**ExtraRequirement:**
webdriver in PATH (chrome driver or geckodriver, used for backup)geckodriver 0.16
chromedriver 2.29
###**AboutBackUp:**You should always run the application in your directory
which used to place the .md file.recommended avtiviti:firsr-step:  download .md file by running the application.
second-step: If failed, you can run the app again to continue.