Saravanan666/pypi-org huggingface dataset:
Package: oscilloscope
OscilloscopeAn oscilloscope for python that just works™FeaturesSimple to useThisimportrandomfromtimeimportsleepfromoscilloscopeimportOscosc=Osc()@osc.signaldefsimple_random_signal(state):whileTrue:state.draw(random.random())sleep(0.1)osc.start()Gives you thisParallel computeEachosc.signalgets it's own process.ThisimportrandomfromtimeimportsleepfromoscilloscopeimportOscosc=Osc(nrows=2,ncols=3)@osc.signaldefsignal1(state):whileTrue:state.draw((random.random())sleep(0.1)@osc.signaldefsignal2(state):whileTrue:state.draw(random.random(),row=1,col=2)sleep(0.1)osc.start()Gives you thisP.S. Don't worry about race conditions,state.draw()is atomic. (Seezproc)Dynamic axis scaleThe Y-axis's scale is dynamic, meaning that the graph's y axis scales with your signal.ThisimportrandomfromtimeimportsleepfromoscilloscopeimportOsc# adjust window_sec and intensity to improve visibilityosc=Osc(window_sec=10,intensity=1)@osc.signaldefincreasing_signal(state):delta=1whileTrue:state.draw(random.randint(-delta,delta))delta+=5sleep(0.01)osc.start()Gives you thisAutomatic normalizationThisimportrandomfromtimeimportsleepfromoscilloscopeimportOsc# turn on normalizationosc=Osc(normalize=True)@osc.signaldefincreasing_signal(state):delta=1whileTrue:state.draw(random.randint(-delta,delta))delta+=5sleep(0.01)osc.start()Gives you thisThis was the same signal as the [earlier](#Automatic normalization) one,
but it looks a lot like the simple example, because we turned on normalization!The Y-axis will now show, % max-amplitude encountered at the time, not the raw value.Installpip install oscilloscopeMIT LicencePython 3.6+ only.🐍🏕️
Package: oscilloscope-scripts-xzf8971
Oscilloscope scriptsThis project contains interface to help you collect waveform data from osilloscope. TekTronix TBS2000B is supported now. If you prefer old version follow the course slides. Please check here:https://github.com/xzf89718/oscilloscope_scripts/tree/v7.2andhttps://github.com/xzf89718/oscilloscope_scripts/releases/tag/v7.2Getting startedSetup python and NI-VISAFor WindowsPython 3.8:https://www.python.org/downloads/release/python-383/NI-VISA:https://www.ni.com/zh-cn/support/downloads/drivers/download.ni-visa.htmlFor Linux/Mac OSPlease install libserial libusb pyserial pyusb and install pure python base pyvisa-pyInstallInstall package with pippipinstalloscilloscope-scripts-xzf8971Install package from github with pippipinstallgit+https://github.com/xzf89718/oscilloscope_scriptsGet source code from github:gitclonegit@github.com:xzf89718/oscilloscope_scripts.gitThe commands here aim to setup package for pythonpipinstall-Uvirtualenvvirtualenv-p3.8~/pyvisa_3d8~/pyvisa_3d8/Scripts/activateHow to use this packageEvery Logincd~/pyvisa_3d8/Scripts.\activateUse Tektronix_TBS2000B_scripts for TBS2000B DAQBatch modepython-mTektronix_TBS2000B_scriptsthis_is_an_example--n_save_waveforms5--save_channelsCH1,CH2--output_diroutput_dir--scope_nameauto--modebatch# On macOS or linux# python -m Tektronix_TBS2000B_scripts this_is_an_example --n_save_waveforms 5 --save_channels CH1,CH2 --output_dir output_dir --scope_name auto --mode batch --backend pyvisa-pyInteractive mode (for debug)python-mTektronix_TBS2000B_scriptsthis_is_an_example--n_save_waveforms5--save_channelsCH1,CH2--output_diroutput_dir--scope_nameauto--modeinter# On macOS or linux# python -m Tektronix_TBS2000B_scripts this_is_an_example --n_save_waveforms 5 --save_channels CH1,CH2 --output_dir output_dir --scope_name auto --mode inter --backend pyvisa-pyEnteryourscope_name,alsoprovide"default"and"auto"forquicksetupautoIf the setup is correct, you will got a plot contain waveforms from CH1 and CH2Get some helppythonxxx.py--helpRead the comments on the begin of each scriptsOther materialsIn order to use the root scripts, you need ROOT and pyroot setup. Get Ubuntu20.04 VM with ROOT here:https://box.nju.edu.cn/d/045506afb0f347b78806/How to build your own ROOT release on Ubuntu20.04:https://blog.csdn.net/weixin_44121665/article/details/102637844?spm=1001.2014.3001.5502Data collected by me, without proper Impedance matching:https://box.nju.edu.cn/d/8c35131d91e846c4ada6/Contact meAuthor: Zifeng XUEmail:zifeng.xu@foxmail.commg20220214@smail.nju.edu.cnzifeng.xu@cern.ch
Package: osc-ingest-tools
osc-ingest-toolspython tools to assist with standardized data ingestion workflowsInstall from PyPipip install osc-ingest-toolsExamples>>>fromosc_ingest_trinoimport*>>>importpandasaspd>>>data=[['tom',10],['nick',15],['juli',14]]>>>df=pd.DataFrame(data,columns=['First Name','Age In Years']).convert_dtypes()>>>dfFirstNameAgeInYears0tom101nick152juli14>>>enforce_sql_column_names(df)first_nameage_in_years0tom101nick152juli14>>>enforce_sql_column_names(df,inplace=True)>>>dffirst_nameage_in_years0tom101nick152juli14>>>df.info(verbose=True)<class'pandas.core.frame.DataFrame'>RangeIndex:3entries,0to2Datacolumns(total2columns):#   Column        Non-Null Count  Dtype----------------------------0first_name3non-nullstring1age_in_years3non-nullInt64dtypes:Int64(1),string(1)memoryusage:179.0bytes>>>p=create_table_schema_pairs(df)>>>print(p)first_namevarchar,age_in_yearsbigint>>>Adding custom type mappings tocreate_table_schema_pairs>>>df=pd.DataFrame(data,columns=['First Name','Age In Years'])>>>enforce_sql_column_names(df,inplace=True)>>>df.info(verbose=True)<class'pandas.core.frame.DataFrame'>RangeIndex:3entries,0to2Datacolumns(total2columns):#   Column        Non-Null Count  Dtype----------------------------0first_name3non-nullobject1age_in_years3non-nullint64dtypes:int64(1),object(1)memoryusage:176.0+bytes>>>p=create_table_schema_pairs(df,typemap={'object':'varchar'})>>>print(p)first_namevarchar,age_in_yearsbigint>>>DevelopmentPatches may be contributed via pull requests tohttps://github.com/os-climate/osc-ingest-tools.All changes must pass the automated test suite, along with various static
checks.Blackcode style andisortimport ordering are enforced.Enabling automatic formatting viapre-commitis
recommended:pip install black isort pre-commit
pre-commit installTo ensure compliance with static check tools, developers may wish to run;pip install black isort
# auto-sort imports
isort .
# auto-format code
black .Code can then be tested using tox.# run static checks and tests
tox
# run only tests
tox -e py3
# run only static checks
tox -e static
# run tests and produce a code coverage report
tox -e covReleasingTo release a new version of this library, authorized developers should;Prepare a signed release commit updatingversionin setup.pyTag the commit usingSemantic Versioningprepended with "v"Push the tagE.g.,git commit -sm "Release v0.3.4"
git tag v0.3.4
git push --follow-tagsA Github workflow will then automatically release the version to PyPI.
Package: oscliantivirus
"OS-CLI-antivirus" is an advanced, flexible and full-fledged antivirus package designed to provide a comprehensive security solution for both developers and standard users alike. With its cutting-edge technology, "Oscliantivirus" offers unparalleled security features that are tailor-made to address a wide range of security threats in modern operating systems.In addition to its robust security capabilities, "Oscliantivirus" boasts a user-friendly interface that provides users with an intuitive and customizable experience. This includes an optional Graphical User Interface (GUI) for standard users who may not be familiar with command-line tools."Oscliantivirus" is specifically designed to enhance operating system security defense by providing customizable and advanced security measures. It can be easily integrated into existing systems and is compatible with a wide range of operating systems, including Linux, Windows, and macOS.With "Oscliantivirus", developers can enjoy advanced features such as real-time monitoring, file and memory scanning, and rootkit detection. It also includes a range of customizable features, including the ability to exclude files or directories from scans, schedule scans at specific intervals, and set up notifications for potential security threats.For standard users, "Oscliantivirus" provides an easy-to-use interface that allows for customizable scans and real-time protection. Users can easily configure the software to meet their specific security needs, without having to possess advanced technical knowledge.Overall, "Oscliantivirus" is a powerful and adaptable security solution that provides cutting-edge security technology to developers and standard users alike. Whether you're looking for an antivirus solution for your personal or professional needs, "Oscliantivirus" is the perfect choice for enhancing your operating system's security defense.
Package: osc-lib
OpenStackClient (aka OSC) is a command-line client for OpenStack. osc-lib
is a package of common support modules for writing OSC plugins.PyPi- package installationOnline DocumentationLaunchpad project- part of OpenStackClientBugs- issue trackingSourceDeveloper- getting started as a developerContributing- contributing codeTesting- testing codeIRC: #openstack-sdks on OFTC (irc.oftc.net)License: Apache 2.0Getting Startedosc-lib can be installed from PyPI using pip:pip install osc-libTransition From OpenStackclientThis library was extracted from the main OSC repo after the OSC 2.4.0 release.
The following are the changes to imports that will cover the majority of
transition to using osc-lib:openstackclient.api.api -> osc_lib.api.apiopenstackclient.api.auth -> osc_lib.api.authopenstackclient.api.utils -> osc_lib.api.utilsopenstackclient.common.command -> osc_lib.command.commandopenstackclient.common.commandmanager -> osc_lib.command.commandmanageropenstackclient.common.exceptions -> osc_lib.exceptionsopenstackclient.common.logs -> osc_lib.logsopenstackclient.common.parseractions -> osc_lib.cli.parseractionsopenstackclient.common.session -> osc_lib.sessionopenstackclient.common.utils -> osc_lib.utilsopenstackclient.i18n -> osc_lib.i18nopenstackclient.shell -> osc_lib.shellAlso, some of the test fixtures and modules may be used:openstackclient.tests.fakes -> osc_lib.tests.fakesopenstackclient.tests.utils -> osc_lib.tests.utils
Package: os-client-config
Warningos-client-confighas been superceded byopenstacksdk. Whileos-client-configwill continue to exist, it is highly recommended that
users transition to usingopenstacksdkdirectly.os-client-configis a library for collecting client configuration for
using an OpenStack cloud in a consistent and comprehensive manner. It
will find cloud config for as few as 1 cloud and as many as you want to
put in a config file. It will read environment variables and config files,
and it also contains some vendor specific default values so that you don’t
have to know extra info to use OpenStackIf you have a config file, you will get the clouds listed in itIf you have environment variables, you will get a cloud namedenvvarsIf you have neither, you will get a cloud nameddefaultswith base defaultsSourceFree software: Apache licenseDocumentation:http://docs.openstack.org/os-client-config/latestSource:http://opendev.org/openstack/os-client-configBugs:https://storyboard.openstack.org/#!/project/openstack/os-client-configRelease Noteshttps://docs.openstack.org/releasenotes/os-client-config
Package: os-cloud-config
Warningos-cloud-config is DEPRECATED in the Ocata release and will be removed in
Pike.Team and repository tagsos-cloud-configConfiguration for OpenStack clouds.When first installing an OpenStack cloud there are a number of common
up-front configuration tasks that need to be performed. To alleviate
the need for different sets of tooling to reinvent solutions to these
problems, this package provides a set of tools.These tools are intended to be well-tested, and available as
importable Python modules as well as command-line tools.Free software: Apache licenseDocumentation:http://docs.openstack.org/developer/os-cloud-configFeaturesgenerate-keystone-pki:Generate a certificate authority and a signing key for use with Keystone
Public Key Infrastructure token signing.init-keystone:Initialize Keystone on a host with a provided admin token, admin e-mail
and admin password. Also allows optionally changing the region and the
public endpoint that Keystone registers with itself.register-nodes:Register nodes with a baremetal service, such as Nova-baremetal or Ironic.setup-endpoints:Register services, such as Glance and Cinder with a configured Keystone.setup-flavors:Creates flavors in Nova, either describing the distinct set of nodes the
cloud has registered, or a custom set of flavors that has been specified.setup-neutron:Configure Neutron at the cloud (not the host) level, setting up either a
physical control plane network suitable for deployment clouds, or an
external network with an internal floating network suitable for workload
clouds.
Package: oscodepoint
An interface to Ordnance Survey’s CodePoint-Open. CodePoint-Open is a free
dataset that maps UK postcodes to coordinates.oscodepointreads in this data, whether in the original zip or decompressed,
parses the data, and converts grid references to latitude and longitude.The dataset can be downloaded fromhttp://www.ordnancesurvey.co.uk/oswebsite/products/code-point-open/Example:>>> from oscodepoint import open_codepoint
>>> codepoint = open_codepoint('codepo_gb.zip')
>>> for entry in codepoint.entries():
...    print entry['Postcode'], entry['Latitude'], entry['Longitude']
...    break  # Over 1.6 million rows
AB101AA 57.1482995075 -2.09663094048Too much data? Try limiting the postcode areas:>>> from oscodepoint import open_codepoint
>>> codepoint = open_codepoint('codepo_gb.zip')
>>> for entry in codepoint.entries(areas=['NR', 'IP']):
...    print entry['Postcode'], entry['Eastings'], entry['Northings']
...    break
NR1 1AA 624068 308352Want the postcode’s county?Postcode entries have aAdmin_country_codefield.Doc/Codelist.xlsmaps
these codes to county names, andcodepoint.codelistcan be used to access
this file. For example:>>> from oscodepoint import open_codepoint
>>> codepoint = open_codepoint('codepo_gb.zip')
>>> county_list = codepoint.codelist['County']
>>> for entry in codepoint.entries(areas=['NR']):
...    print entry['Postcode'], entry['Latitude'], entry['Longitude'], county_list.get(entry['Admin_county_code'])
...    break
NR1 1AA 52.6266175146 1.30932087485 Norfolk CountyGet the total number of postcodes for your progress bar:>>> from oscodepoint import open_codepoint
>>> codepoint = open_codepoint('codepo_gb.zip')
>>> print codepoint.metadata['area_counts']['NR']
22730
>>> print codepoint.metadata['total_count']
1692241
Package: os-collect-config
Team and repository tagsos-collect-configCollect configuration from cloud metadata sourcesWhat does it do?It collects data from defined configuration sources and runs a defined
hook whenever the metadata has been changed.[1]UsageYou must define what sources to collect configuration data from in/etc/os-collect-config.conf.The format of this file is:[DEFAULT]
command=os-refresh-config

[cfn]
metadata_url=http://192.0.2.99:8000/v1/
access_key_id = ABCDEFGHIJLMNOP01234567890
secret_access_key = 01234567890ABCDEFGHIJKLMNOP
path = MyResource
stack_name = my.stackThese sources will be polled and whenever any of them is changed,default.commandwill be run. A file will be written to the cache
dir, os_config_files.json, which will be a json list of the file paths
to the current copy of each metadata source. This list will also be
set as a colon separated list in the environment variableOS_CONFIG_FILESfor the command that is run. So in the example
above,os-refresh-configwould be executed with something like this
inOS_CONFIG_FILES:/var/lib/os-collect-config/ec2.json:/var/lib/os-collect-config/cfn.jsonThe previous version of the metadata from a source (if available) is present at $FILENAME.last.When run without a command, the metadata sources are printed as a json document.Quick StartInstall:sudo pip install -U git+https://opendev.org/openstack/os-collect-config.gitRun it on an OpenStack instance with access to ec2 metadata:os-collect-configThat should print out a json representation of the entire ec2 metadata tree.[1]Recommend using LibreOffice draw to edit os-collect-config-and-friends.odg and regenerate the svg file. Alternatively edit the svg directly, but remove the .odg file if that is done.
Package: os-command-py
Os_Command_pyOs_Command_py is a python library allowing a simplified use of the OS commands.Online Documentation:https://os-command-py.readthedocs.io/en/latest/Source code repository:https://github.com/samuelmurail/os_command_pyMain features:Basic OS operationdirectory creationchange working pathdelete files and directoriesCommand simplied use with subprocessInstallationUsing Pypipip3installos_command_pyUsing Condacondainstallos_command_py-cconda-forgeFrom source codeGet the os_command_py library fromgithub.gitclonehttps://github.com/samuelmurail/os_command_py.git./setup.pyinstall--userAuthorSamuel Murail, Associate Professor -Université Paris Diderot,CMPLI.See also the list ofcontributorswho participated in this project.LicenseThis project is licensed under the GNU General Public License v2.0 - see theLICENSEfile for details.
Package: os-config
# os-config[![Build Status](https://www.travis-ci.org/cfhamlet/os-config.svg?branch=master)](https://www.travis-ci.org/cfhamlet/os-config)[![codecov](https://codecov.io/gh/cfhamlet/os-config/branch/master/graph/badge.svg)](https://codecov.io/gh/cfhamlet/os-config)[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/os-config.svg)](https://pypi.python.org/pypi/os-config)[![PyPI](https://img.shields.io/pypi/v/os-config.svg)](https://pypi.python.org/pypi/os-config)Config utility.In python world, it is common to use an object as config. But normal object lacks of some useful features for config purpose. This library offers an ``Config`` object which support create, update, attribute access, etc. Consider the usability and complexity in real programming work, config attribute types are limited into: ``int``, ``long``, ``float``, ``NoneType``, ``bool``, ``str``, ``unicode``, ``tuple`` and ``Config``. ``list``, ``dict`` will convert to ``tuple`` and ``Config``.# Install`pip install os-config`# Usage* create an empty config```from os_config import Configconfig = Config.create()```* create from params```config = Config.create(a=1, b=2)assert config.a == 1assert config.b == 2```* create from dict```config = Config.from_dict({'a':1, 'b':2})```* create from json```json_string = '{"a": 1, "b": 2}'config = Config.from_json(json_string)```* update from another config/dict```config1 = Config.create(a=1)config2 = Config.create(a=2, b=3)Config.update(config2, config1)```# Unit Tests`$ tox`# LicenseMIT licensed.
Package: oscontainer
OverviewThe simple library to gather CPU and memory resource limits from within OS Container bases on Linux.InstallpipinstalloscontainerUsage in codeThe library can be used to acquire current limits exposed to the container or process as following:fromoscontainerimportOSContainer# Get the container instancecontainer=OSContainer()# Check if current process runs inside containerifcontainer.is_containerized():# Get active processorscpus_count=container.active_processor_count()# Get the limit of available memory for this process.mem_limit=container.memory_limit_in_bytes()else:print("No Container support detected")For extra metrics available seeOSContainer.Run in Docker from source codeTo run library in the test container you need to build the docker image and run it as container.Checkout the repository.gitclonegit@github.com:yaricom/oscontainer.gitBuild local image withoscontainername.cdoscontainer

dockerbuild-fDockerfile-toscontainer.Run the image we built within container with specific CPU limits set.
For details about setting container resources limits with Docker, see:Runtime options with Memory, CPUs, and GPUs.The following command will start container and open interactive shell:dockerrun-it--cpus=".5"oscontainer/bin/bashNow, executemain.pyscript within shell to see resource constraints that was detected:pythonmain.pyThis will produce the output like following:OSContainer:
==========================
   active processors: 1
      container type: cgroup2
--------------------------
 > MEMORY:
--------------------------
memory limit (bytes): -1
memory usage (bytes): 8413184
--------------------------
 > CPU:
--------------------------
               quota: 50000
              period: 100000
              shares: -1
         cpuset cpus: 0-2
==========================
System information:
==========================
multiprocessing.cpu_count: 3
     process cpu affinity: {0, 1, 2}
==========================
Package: osc-openapi-framework
OSC OpenAPI FrameworkBuild and parse OpenAPI data using its own structured python object.FeaturesBuild OpenAPI data from structured objectParse OpenAPI data to structured objectInstallationYou can install the pre-built python package through this command:$pipinstallosc-openapi-frameworkBuildingTo build the package yourself:$makepackageYou can then install it with:$pipinstalldist/osc_openapi_framework-*.whlUsageParsing OpenAPI Datafromosc_openapi_framework.openapi.parserimportparseasopenapi_parseopenapi_data='''openapi: 3.0.0info:title: Sample APIdescription: Optional multiline or single-line description in [CommonMark](http://commonmark.org/help/) or HTML.version: 0.1.9security:- ApiKeyAuth: []servers:- url: http://api.example.com/v1description: Optional server description, e.g. Main (production) server- url: http://staging-api.example.comdescription: Optional server description, e.g. Internal staging server for testingpaths:/users:get:summary: Returns a list of users.description: Optional extended description in CommonMark or HTML.responses:'200':    # status codedescription: A JSON array of user namescontent:application/json:schema:type: arrayitems:type: string'''withopen('/tmp/openapi_test','w')asfd:fd.write(openapi_data)oapi=openapi_parse('/tmp/openapi_test')LicenseCopyright Outscale SASBSD-3-ClauseThis project is compliant withREUSE.
Package: oscovida
Most content has moved to the temporary websitehttps://oscovida.github.ioThe remaining content here is only for developers.DisclaimerThe plots and code here has been put together by volunteers who have no training
in epidemiology. THere are likely to be errors in the processing. You are welcome
to use the material at your own risk. Thelicense is available.AcknowledgementsJohns Hopkins University provides data for countriesRobert Koch Institute provides data for within GermanyOpen source and scientific computing community for the data toolsGithub for hosting repository and html filesProject Jupyter for the Notebook and Binder serviceThe H2020 project Photon and Neutron Open Science Cloud (PaNOSC)
Package: osc-placement
OpenStackClient plugin for the Placement serviceThis is an OpenStackClient plugin, that provides CLI for the Placement service.
Python API binding is not implemented - Placement API consumers are encouraged
to use the REST API directly, CLI is provided only for convenience of users.Free software: Apache licenseDocumentation:https://docs.openstack.org/osc-placement/latest/index.htmlSource:https://opendev.org/openstack/osc-placementBugs:https://storyboard.openstack.org/#!/project/openstack/osc-placementRelease notes:https://docs.openstack.org/releasenotes/osc-placement/
Package: osc-placement-tree
osc-placement-treeOpenStackClient plugin for advanced operations for the Placement serviceThis is an OpenStackClient plugin, that provides extra CLI commands for the
Placement service to visualize what is stored in placement.Free software: Apache licenseExamplesUse it from theopenstackCLI:$openstackresourceprovidertreelist|dot-TsvgUse it in placement functional test environment:fromosc_placement_treeimportutilsasplacement_visualfromplacementimportdirectwithdirect.PlacementDirect(self.conf_fixture.conf,latest_microversion=True)asclient:placement_visual.dump_placement_db_to_dot(placement_visual.PlacementDirectAsClientWrapper(client),'/tmp/dump.dot')Use it in nova functional test environment:fromosc_placement_treeimportutilsasplacement_visualplacement_visual.dump_placement_db_to_dot(placement_visual.PlacementFixtureAsClientWrapper(self.placement_api),'/tmp/dump.dot')