Saravanan666/pypi-org huggingface dataset:
Package: ovp-organizations
==========OVP Organizations==========.. image:: https://img.shields.io/codeship/5364c170-9e01-0134-9ca2-328bd15b6072/master.svg?style=flat-square.. image:: https://img.shields.io/codecov/c/github/OpenVolunteeringPlatform/django-ovp-organizations.svg?style=flat-square:target: https://codecov.io/gh/OpenVolunteeringPlatform/django-ovp-organizations.. image:: https://img.shields.io/pypi/v/ovp-organizations.svg?style=flat-square:target: https://pypi.python.org/pypi/ovp-organizations/This module implements core organization functionality.Getting Started---------------Installing""""""""""""""1. Install django-ovp-organizations::pip install ovp-organizations2. Add it to `INSTALLED_APPS` on `settings.py`Forking""""""""""""""If you have your own OVP installation and want to fork this moduleto implement custom features while still merging changes from upstream,take a look at `django-git-submodules <https://github.com/leonardoarroyo/django-git-submodules>`_.Testing---------------To test this module::python ovp_organizations/tests/runtests.pyContributing---------------Please read `CONTRIBUTING.md <https://github.com/OpenVolunteeringPlatform/django-ovp-organizations/blob/master/CONTRIBUTING.md>`_ for details on our code of conduct, and the process for submitting pull requests to us.Versioning---------------We use `SemVer <http://semver.org/>`_ for versioning. For the versions available, see the `tags on this repository <https://github.com/OpenVolunteeringPlatform/django-ovp-organizations/tags>`_.License---------------This project is licensed under the GNU GPLv3 License see the `LICENSE.md <https://github.com/OpenVolunteeringPlatform/django-ovp-organizations/blob/master/LICENSE.md>`_ file for details
Package: ovp-projects
==========OVP Projects==========.. image:: https://img.shields.io/codeship/01c71ae0-73a1-0134-6261-42bac1247deb/master.svg?style=flat-square.. image:: https://img.shields.io/codecov/c/github/OpenVolunteeringPlatform/django-ovp-projects.svg?style=flat-square:target: https://codecov.io/gh/OpenVolunteeringPlatform/django-ovp-projects.. image:: https://img.shields.io/pypi/v/ovp-projects.svg?style=flat-square:target: https://pypi.python.org/pypi/ovp-projects/This module implements core user functionality.Getting Started---------------Installing""""""""""""""1. Install django-ovp-projects::pip install ovp-projects2. Add it to `INSTALLED_APPS` on `settings.py`Forking""""""""""""""If you have your own OVP installation and want to fork this moduleto implement custom features while still merging changes from upstream,take a look at `django-git-submodules <https://github.com/leonardoarroyo/django-git-submodules>`_.Testing---------------To test this module::python ovp_projects/tests/runtests.pyContributing---------------Please read `CONTRIBUTING.md <https://github.com/OpenVolunteeringPlatform/django-ovp-users/blob/master/CONTRIBUTING.md>`_ for details on our code of conduct, and the process for submitting pull requests to us.Versioning---------------We use `SemVer <http://semver.org/>`_ for versioning. For the versions available, see the `tags on this repository <https://github.com/OpenVolunteeringPlatform/django-ovp-users/tags>`_.License---------------This project is licensed under the GNU GPLv3 License see the `LICENSE.md <https://github.com/OpenVolunteeringPlatform/django-ovp-users/blob/master/LICENSE.md>`_ file for details
Package: ovp-search
This module implements core search functionality. It is responsible for searching projects and nonprofits.Getting StartedPrerequisitesThis module relies on django-haystack to do full-text search. It was implemented and tested on top of ElasticSearch but should work with any backend.InstallingInstall django-ovp-search:pip install ovp-searchAdd it toINSTALLED_APPSonsettings.pyAddhaystacktoINSTALLED_APPSSet up haystack connection:HAYSTACK_CONNECTIONS = {
  'default': {
    'ENGINE': 'haystack.backends.elasticsearch_backend.ElasticsearchSearchEngine',
    'URL': 'http://%s/' % (os.environ.get('HS_SEARCH_ENDPOINT', '127.0.0.1:9200')),
    'INDEX_NAME': 'atadosovp'
  },
}ForkingIf you have your own OVP installation and want to fork this module
to implement custom features while still merging changes from upstream,
take a look atdjango-git-submodules.TestingTo test this modulepython ovp_searcb/tests/runtests.pyContributingPlease readCONTRIBUTING.mdfor details on our code of conduct, and the process for submitting pull requests to us.VersioningWe useSemVerfor versioning. For the versions available, see thetags on this repository.LicenseThis project is licensed under the AGPLv3 License see theLICENSE.mdfile for details
Package: ovp-testimonials
==========OVP Testimonials==========.. image:: https://img.shields.io/codeship/43065b30-0cd6-0135-c90d-7e832b94bec5/master.svg?style=flat-square:target: https://img.shields.io/codeship/43065b30-0cd6-0135-c90d-7e832b94bec5/master.svg?style=flat-square.. image:: https://img.shields.io/codecov/c/github/OpenVolunteeringPlatform/django-ovp-testimonials.svg?style=flat-square:target: https://codecov.io/gh/OpenVolunteeringPlatform/django-ovp-testimonials.. image:: https://img.shields.io/pypi/v/ovp-testimonials.svg?style=flat-square:target: https://pypi.python.org/pypi/ovp-testimonials/This module implements user testimonial functionality.Getting Started---------------Installing""""""""""""""1. Install django-ovp-testimonials::pip install ovp-testimonials2. Add it to `INSTALLED_APPS` on `settings.py`Forking""""""""""""""If you have your own OVP installation and want to fork this moduleto implement custom features while still merging changes from upstream,take a look at `django-git-submodules <https://github.com/leonardoarroyo/django-git-submodules>`_.Testing---------------To test this module::python ovp_testimonials/tests/runtests.pyContributing---------------Please read `CONTRIBUTING.md <https://github.com/OpenVolunteeringPlatform/django-ovp-testimonials/blob/master/CONTRIBUTING.md>`_ for details on our code of conduct, and the process for submitting pull requests to us.Versioning---------------We use `SemVer <http://semver.org/>`_ for versioning. For the versions available, see the `tags on this repository <https://github.com/OpenVolunteeringPlatform/django-ovp-testimonials/tags>`_.License---------------This project is licensed under the AGPLv3 License see the `LICENSE.md <https://github.com/OpenVolunteeringPlatform/django-ovp-testimonials/blob/master/LICENSE.md>`_ file for details
Package: ovp-uploads
==========OVP Uploads==========.. image:: https://img.shields.io/codeship/468bb4d0-7850-0134-a43d-7aa8687239c4/master.svg?style=flat-square.. image:: https://img.shields.io/codecov/c/github/OpenVolunteeringPlatform/django-ovp-uploads.svg?style=flat-square:target: https://codecov.io/gh/OpenVolunteeringPlatform/django-ovp-uploads/.. image:: https://img.shields.io/pypi/v/ovp-uploads.svg?style=flat-square:target: https://pypi.python.org/pypi/ovp-uploads/This module implements core upload functionality.Getting Started---------------Requirements""""""""""""""This module uses pillow. Don't forget installing your `libjpeg` and your `zlib` through your distribution package manager.Installing""""""""""""""1. Install django-ovp-uploads::pip install ovp-uploads2. Add it to `INSTALLED_APPS` on `settings.py`3. Include urls to your url_patterns4. Setup your file storage backend on settings::DJANGO_DEFAULT_STORAGE = '...'Forking""""""""""""""If you have your own OVP installation and want to fork this moduleto implement custom features while still merging changes from upstream,take a look at `django-git-submodules <https://github.com/leonardoarroyo/django-git-submodules>`_.Testing---------------To test this module::python ovp_uploads/tests/runtests.pyContributing---------------Please read `CONTRIBUTING.md <https://github.com/OpenVolunteeringPlatform/django-ovp-users/blob/master/CONTRIBUTING.md>`_ for details on our code of conduct, and the process for submitting pull requests to us.Versioning---------------We use `SemVer <http://semver.org/>`_ for versioning. For the versions available, see the `tags on this repository <https://github.com/OpenVolunteeringPlatform/django-ovp-/tags>`_.License---------------This project is licensed under the GNU GPLv3 License see the `LICENSE.md <https://github.com/OpenVolunteeringPlatform/django-ovp-users/blob/master/LICENSE.md>`_ file for details
Package: ovp-users
This module implements core user functionality.Getting StartedInstallingInstall django-ovp-users:pip install ovp-usersAdd it toINSTALLED_APPSonsettings.pyAddrest_framework_jwttoINSTALLED_APPSSet up REST Framework Authentication:# Rest framework
REST_FRAMEWORK = {
  'DEFAULT_AUTHENTICATION_CLASSES': (
    'rest_framework.authentication.SessionAuthentication',
    'rest_framework.authentication.BasicAuthentication',
    'rest_framework_jwt.authentication.JSONWebTokenAuthentication',
  )
}

# User models
AUTH_USER_MODEL = 'ovp_users.User'ForkingIf you have your own OVP installation and want to fork this module
to implement custom features while still merging changes from upstream,
take a look atdjango-git-submodules.TestingTo test this modulepython ovp_users/tests/runtests.pyContributingPlease readCONTRIBUTING.mdfor details on our code of conduct, and the process for submitting pull requests to us.VersioningWe useSemVerfor versioning. For the versions available, see thetags on this repository.LicenseThis project is licensed under the GNU GPLv3 License see theLICENSE.mdfile for details
Package: ovs-cluster-agent
cluster-agentTable of contentsProject setupDependenciesInstall the packageSetup parametersLocal usage exampleProject SetupDependenciespython3-venvInstall the packageTo install the package from Pypi simply runpip install ovs-cluster-agent.Setup parametersSetup dependencies
You can use whenever dependency manager you want to. Just run the command below (and the ones following) on behalf of the manager you prefer.makedependenciesSetup.envparametersCLUSTER_AGENT_BASE_API_URL="<base-api-url>"CLUSTER_AGENT_BASE_SLURMRESTD_URL="<slurmrestd-endpoint>"CLUSTER_AGENT_X_SLURM_USER_NAME="<slurmrestd-user-name>"CLUSTER_AGENT_SLURMRESTD_JWT_KEY_PATH="/path/to/the/jwt/secret/key"CLUSTER_AGENT_SLURMRESTD_JWT_KEY_STRING="jwt-secret-key-in-plain-text"CLUSTER_AGENT_SENTRY_DSN="<sentry-dsn-key>"CLUSTER_AGENT_OIDC_DOMAIN="<OIDC-domain>"CLUSTER_AGENT_OIDC_AUDIENCE="<OIDC-audience>"CLUSTER_AGENT_OIDC_CLIENT_ID="<OIDC-app-client-id>"CLUSTER_AGENT_OIDC_CLIENT_SECRET="<OIDC-app-client-secret>"CLUSTER_AGENT_LDAP_HOST="<hostname-for-ldap>"CLUSTER_AGENT_LDAP_DOMAIN="<LDAP-domain>"# Defaults to match LDAP_HOSTCLUSTER_AGENT_LDAP_USERNAME="<admin-user>"CLUSTER_AGENT_LDAP_PASSWORD="<admin-password>"NOTE:CLUSTER_AGENT_SENTRY_DSNis optional. If you do not pass it the agent understands Sentry will not be used.NOTE: When bothCLUSTER_AGENT_SLURMRESTD_JWT_KEY_PATHandCLUSTER_AGENT_SLURMRESTD_JWT_KEY_STRINGare passed, the agent will completely ignore theCLUSTER_AGENT_SLURMRESTD_JWT_KEY_PATHand will prioritize theCLUSTER_AGENT_SLURMRESTD_JWT_KEY_STRING. Beware this behaviour.Local usage exampleRun appagentrunNote: this command assumes you're inside a virtual environment in which the package is installed.NOTE: beware you should care about having the same user name you're using to run the code in the slurmctld node. For example, ifcluster_agentwill run themake runcommand then the slurmctld node also must have a user calledcluster_agent.
Package: ovsdbapp
A library for creating OVSDB applicationsThe ovdsbapp library is useful for creating applications that communicate
via Open_vSwitch’s OVSDB protocol (https://tools.ietf.org/html/rfc7047). It
wraps the Python ‘ovs’ and adds an event loop and friendly transactions.Free software: Apache licenseSource:https://opendev.org/openstack/ovsdbapp/Bugs:https://bugs.launchpad.net/ovsdbappFeatures:An thread-based event loop for using ovs.db.IdlTransaction supportNative OVSDB communication
Package: ovs-dbg
ovs-dbgScripts to help debug OVS and OVNFull documentation here:https://ovs-dbg.readthedocs.io/en/latestInstallLatest released version:pip install ovs-dbgFrom the git checkout./prepare.sh && pip install .Enable bash autocompleteeval "$(ovs-dbg-complete)"Available toolsovs-ofparseofparseparses the output of commands such asovs-ofproto dump-flowsand
prints the files in different outputs including json and html. It suports
formatting and filtering.ovs-ofparse --helpovs-lgrepovs-lgrephelps you grep though many OVS log files to find interleaving the results to help you find what happened on a OVS/OVN clusterovs-lgrep --helpovs-offlineovs-offlineis a script that locally recreates a running OVS so you can debug offline (including runningovs-appctl ofproto/trace)ovs-offlineContributePRs are welcome!
Package: ovsdbmanager
Ovsdb ManagerOvSDB Manager is an OpenVSwitch Database Protocol (OVSDB) Python Client
developed by thei2CAT Foundation(Barcelona).
It implements the basic functionalities to interact with OpenVSwitch switches (addport, delete port
, add bridge, delete bridge, etc).Author: Ferran Cañellasferran.canellas@i2cat.netRequirementsPython 3.5 or greaterInstallationIf you are using PiP:pip install ovsdbmanagerOtherwise, you can clone this repo and install the module manually.git clone https://github.com/Fundacio-i2CAT/ovsdb-manager.git
cd ovsdb-manager
python3 setup.py installUsageTo start using Ovsdb Manager simply dofromovsdbmanagerimportOvsdbManagerovs=OvsdbManager(ip="X.X.X.X",port="Y")If you are running the OVSDB server locally you can ommit the IP address. The default port is 6640.Examples of use:fromovsdbmanagerimportOvsdbManagerfromovsdbmanager.db.bridgeimportFailModefromovsdbmanager.db.controllerimportConnectionModeovs=OvsdbManager(ip="X.X.X.X",port="Y")# Create a bridgebr1=ovs.add_bridge("br1")# Add a portp1=br1.add_port("p1")# Delete a portbr1.del_port(p1)# Set controllerctrl=br1.set_controller("tcp:10.0.10.1:6653")# Set controller's connection mode as out of bandctrl.set_connection_mode(ConnectionMode.OUTOFBAND)# Set fail mode as securebr1.set_fail_mode(FailMode.SECURE)# Enable RSTPbr1.set_rstp(True)# Add a patch portbr1.add_port("p2",patch_peer="p3")# Delete a bridgeovs.del_bridge(br1)
Package: ovs-helper
# ovs-helper[![Build Status](https://img.shields.io/travis/sw4iot/ovs-helper.svg)](https://travis-ci.org/sw4iot/ovs-helper)
[![PyPI](https://img.shields.io/pypi/v/ovs-helper.svg)](https://pypi.org/project/ovs-helper/)
[![Updates](https://pyup.io/repos/github/sw4iot/ovs-helper/shield.svg)](https://pyup.io/repos/github/sw4iot/ovs-helper/)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/ovs-helper.svg)](https://pypi.org/project/ovs-helper/)
[![Hex.pm](https://img.shields.io/hexpm/l/plug.svg)](https://www.apache.org/licenses/LICENSE-2.0)
Package: ovs-p4
RequirementsThis package has not only PyPi dependencies. It needs installation of PI:https://github.com/p4lang/PIInstall PI and its dependencies usinginstall_P4Runtime.shscript (this script comes fromhttps://github.com/jafingerhut/p4-guide).cd scriptschmod +x install_P4Runtime.sh./install_P4Runtime.shCopy from this repository p4runtime.proto file to folder
PI/proto/p4runtime/proto/p4/v1cp <path to ovs-p4 repository>/proto/p4runtime.proto <path to PI>/proto/p4runtime/proto/p4/v1Run PI installation once again:./autogen.sh./configure --with-protomakemake check[sudo] make installInstall PI and its dependencies usinginstall_P4Runtime.shscript (this script comes fromhttps://github.com/jafingerhut/p4-guide).cd scriptschmod +x install_P4Runtime.sh./install_P4Runtime.shClone PI and submodulesgit clone https://github.com/p4lang/PIcd PIgit submodule update --init --recursiveInstall PI according to its own instructions (including grpc, protobuf, etc.).Probably before protobuf installation you will have to install following dependencies on your own:sudo apt-get --yes install autoconf automake libtool curl make g++ unzipsudo apt-get --yes install zlib1g-devsudo apt-get --yes install cmake g++ git automake libtool libgc-dev bison flex libfl-dev libgmp-dev libboost-dev libboost-iostreams-dev libboost-graph-dev llvm pkg-config python python-scapy python-ipaddr python-ply tcpdumpP4Runtime server - ovs-p4srvThe ovs-p4srv P4Runtime server translates requests from P4Runtime to oko switch CLI commands.How to run?Run following command:user@hostname:~$ ovs-p4srvCommand line tool - ovs-p4ctlThe ovs-p4ctl program is a command line tool for monitoring and administering oko switch via P4Runtime.How to use?The tool can be used as follows:user@hostname:~$ ovs-p4ctl [command] [args...]CommandsEvery command requires at least one argument--pipeline-id- an identifier of a programme.Switch can have multiple programs.load_configLoads compiled program to a switch.Arguments:--pipeline-id | --p4info-path | --config-pathget_configDownloads current program from a switchArguments:--pipeline-id | --response-type | --show | --p4info-path | --config-pathtable_updateUpdates table entriesArguments:--pipeline-id | --p4info-path | --entrytable_dumpPrints to the console information about table entriesArguments:--pipeline-id | --p4info-path | --tableContactTomek Osiński <tomasz.osinski2@orange.com/osinstom@gmail.com>Mateusz Kossakowski <mateusz.kossakowski@orange.com/mateusz.kossakowski.10@gmail.com>
Package: ovsportranges
# ovsportranges### DescriptionOpenflow requires port ranges to be defined as bitwise matches. This moduleprovides an easy way to the port/mask ranges for a specified port range.As described in the [ovs-ofctl](http://www.openvswitch.org/support/dist-docs-2.5/ovs-ofctl.8.txt) documentation:> Bitwise  match  on  TCP  (or  UDP or SCTP) source or destination> port.  The port and mask are 16-bit numbers written  in  decimal> or  in  hexadecimal prefixed by 0x.  Each 1-bit in mask requires> that the corresponding bit in port must match.   Each  0-bit  in> mask causes the corresponding bit to be ignored.It is recommended to only use this for large ranges that would require a large number of flows.### Installation`pip install ovsportranges`### Basic Usage``` pythonfrom ovsportrange import OvsPortsif __name__ == "__main__":ovsports = OvsPorts()ranges = ovsports.get_port_ranges(1000, 1999)for r in ranges:print("Port: {}, Bitmask: {}".format(r.port, r.bitmask))```### Output```textPort: 1000, Bitmask: 65528Port: 1008, Bitmask: 65520Port: 1024, Bitmask: 65024Port: 1536, Bitmask: 65280Port: 1792, Bitmask: 65408Port: 1920, Bitmask: 65472Port: 1984, Bitmask: 65520```
Package: ovspy
ovspyOpen vSwitch Library written in Pythonovspy · PyPISupported OperationBridgeGet(name, uuid, port)AddDeletePortGet(name, uuid, vlan)Add(with VLAN)Deleteinstallpip install ovspyGetting StartedConfigure Open vSwitch ManagerThis library manipulate Open vSwitch by access OVSDBYou need to configure OVSDB manager port to manipulate OVSDB from ovspy via TCP.sudo ovs-vsctl set-manager ptcp:5678Bridgeimport ovspy.client

ovs = ovspy.client.OvsClient(5678)

#Get exist all bridges
#This function return list of OvsBridge instance
for br in ovs.get_bridges():
    print(br.get_name())

#Find bridge by bridge name
#This function return OvsBridge instance
#If specified bridge is not found, the function return None
bridge = ovs.find_bridge("br0")
print(bridge.get_name())


#Add bridge
#If specified bridge is already exist, This function raise ovspy.ovs_error.Duplicate
ovs.add_bridge("br1")

#Delete bridge
#If specified bridge is not exist, This function raise ovspy.ovs_error.NotFound
ovs.del_bridge("br1")Portimport ovspy.client

ovs = ovspy.client.OvsClient(5678)

#Get Bridge instance
bridge = ovs.find_bridge("br0")

#Get all ports which is associate to birgde
for p in bridge.get_ports():
    print("%s:(%s)" % (p.get_name(), p.get_vlan_info()))

#Find port by name
port =  bridge.find_port("p0")
print(port.get_name())

#Add port(Access port)
bridge.add_port("p1", 10)

#Add port(Trunk port)
bridge.add_port("p2")
bridge.add_port("p3", [])

#Add port(Trunk port with restrict vlan)
bridge.add_port("p4", [10, 20])

#Delete port
bridge.del_port("p3")Errorsovspy has following class as custom exceptionovspy.ovs_error.OvspyErrorSuper class of custom exceptionsovspy.ovs_error.DuplicateThe error is raise when user operation cause duplicate status(e.g. Case of try to create port with same name as existing port)ovspy.ovs_error.NotFoundThe error is raise when user specified resource is not exist. (e.g. Case of try to delete port but the port is not existing)ovspy.ovs_error.TransactionErrorThe error is raise when failed to transaction with OVSDB. (e.g. Timeout for connection)ovspy.ovs_error.UnsupportedThe error is raise when user try to unsupported operation with ovspy.
Package: ovtable
ovtable💻 based on curses, ovtable is a table displayed in the terminal with Python APIInstallationInstall via pip:python -m pip install -U prettytableOr install from source:gitclonegit@github.com:PiperLiu/ovtable.gitcdovtable
makerefreshGet the best experience withMonospaced Fonts!e.g. Let's getFira Code!Tutorial on how to use ovtable>>> import ovtable

>>> ot = ovtable.OvTable(60, 30, True)
>>> # 60 is width, 30 is height
>>> # True means you want to use __str__
>>> # False means you want to render it (use ot.render())

>>> ot.add_row(1)
>>> ot[0, 0] = "Hello, OvTable"
>>> print(ot)
┌──────────────────────────────────────────────────────────┐
│                      Hello, OvTable                      │
└──────────────────────────────────────────────────────────┘

>>> ot.add_row(2)
>>> ot[1, 0] = [("I'm red", "r"), (" ok, I'm blue", "b")]
>>> ot[1, 1] = "I am in row 2, col 2"
>>> print(ot)
┌──────────────────────────────────────────────────────────┐
│                      Hello, OvTable                      │
├────────────────────────────┬─────────────────────────────┤
│    I'm red ok, I'm blue    │    I am in row 2, col 2     │
└────────────────────────────┴─────────────────────────────┘Withot[x, y] = valueorot[x, y] = [(s1, color1), (s2, color2), ...], we can render some interesting things! See./examples/.python examples/walker.pyas below:Why not PrettyTable?Why created ovtable when we already havePrettyTable?Well, mainly two reasons:First, PrettyTable does not support different number of rows per line.Second, our APIs is more suitable for rendering tables dynamically.ContributionWe welcome all forms of contributions (including but not limited to issues and pull requests).
Package: ov-wag
Open Vault: WagtailFrom GBHWagtail CMS forOpen VaultDocumentationUser DocumentationUsageInstallThe published version can be installed using pip:pip install ov-wagLocal installationFor local devopment, installPDMfor dependency management.pip install pdmClone the repo:git clone https://github.com/WGBH-MLA/ov-wag.gitInstall the package:pdm installInit scriptSeveral common functions can be executed with theovinit script (using Docker)Seeov -hfor more detailed usageFor exampleov devwill start the development server locally.NoteFor most commands, additional args will be passed on to the parent command.dev|dstarts a local development serverbuild|bbuild (or rebuild) the docker imageshell|sstarts a shell with all django variables loadedmanage|mrun amanage.pycommandcmd|crun a command directly on the containere.g.ov c bashov c python3 -c "print('OpenVault!')"developpre-commit secret scanningInstallggshieldpipinstallggshield# orbrewinstallgitguardian/tap/ggshieldLogin to gitguardianggshieldauthloginInstall the pre-commit hookspre-commitinstall