Saravanan666/pypi-org huggingface dataset:
Package: gnpy
GNPy: Optical Route Planning and DWDM Network OptimizationGNPy is an open-source, community-developed library for building route planning and optimization tools in real-world mesh optical networks.
We are a consortium of operators, vendors, and academic researchers sponsored via theTelecom Infra Project'sOOPT/PSEworking group.
Together, we are building this tool for rapid development of production-grade route planning tools which is easily extensible to include custom network elements and performant to the scale of real-world mesh optical networks.Quick StartInstall either viaDocker, or as aPython package.
Read ourdocumentation, learn from the demos, andget in touch with us.This example demonstrates how GNPy can be used to check the expected SNR at the end of the line by varying the channel input power:GNPy can do much more, including acting as a Path Computation Engine, tracking bandwidth requests, or advising the SDN controller about a best possible path through a large DWDM network.
Learn more about thisin the documentation, or give it atry online atgnpy.app:
Package: gnr
gnrThis file will become your README and also the index of your
documentation.Developer GuideSetup# create conda environment$mambaenvcreate-fenv.yml# update conda environment$mambaenvupdate-ngnr--fileenv.yml# $ mamba env update -n gnr --file env.mac.ymlInstallpipinstall-e.# install from pypipipinstallgnrnbdev# activate conda environment$condaactivategnr# make sure the gnr package is installed in development mode$pipinstall-e.# make changes under nbs/ directory# ...# compile to have changes apply to the gnr package$nbdev_prepareNote: it might be useful to use the following snippet to enable hot
reloading:%load_extautoreload%autoreload2Publishing# publish to pypi$nbdev_pypi# publish to conda$nbdev_conda--build_args'-c conda-forge'UsageInstallationInstall latest from the GitHubrepository:$pipinstallgit+https://github.com/dsm-72/gnr.gitor fromconda$condainstall-cdsm-72gnror frompypi$pipinstallgnrdf_trj=make_mock_genes_x_tbins()df_trj.head()<style scoped>
    .dataframe tbody tr th:only-of-type {
        vertical-align: middle;
    }

    .dataframe tbody tr th {
        vertical-align: top;
    }

    .dataframe thead th {
        text-align: right;
    }
</style>0123456789...90919293949596979899wasf0000000000...9999999999colq9999999999...1000000000gpr10000000000...9999999999chrm39999999999...1100000000lmod20000000111...88899999995 rows × 100 columnsgc_op=GrangerCausality(n_jobs=2)df_res=gc_op.fit_transform(df_trj,fit_params={'standard_scaler':True,'signed_correlation':True})df_res.head()<style scoped>
    .dataframe tbody tr th:only-of-type {
        vertical-align: middle;
    }

    .dataframe tbody tr th {
        vertical-align: top;
    }

    .dataframe thead th {
        text-align: right;
    }
</style>wasf_ycolq_ygpr1_ychrm3_ylmod2_ytek_ykank3_yoca2_ytaz_ymap4k1_ywasf_x1.0000000.6830910.3144580.1441270.0008181.0000001.0000000.0000660.1024700.006449colq_x1.0000001.0000000.7792841.0000001.0000000.0010910.1926850.6750901.0000000.806543gpr1_x0.8055410.0422861.0000000.8922510.7954180.8230631.0000000.5424520.0010910.852052chrm3_x0.0010910.0736380.1684251.0000000.6325851.0000000.1024700.5424521.0000000.367649lmod2_x0.6830910.0001040.0310860.2206711.0000000.6830910.0008180.3676491.0000000.017608gc_op.plot_df_org(figsize=(4,4))gc_op.plot_df_res(figsize=(4,4))DocumentationDocumentation can be found hosted on GitHubrepositorypages. Additionally you can find
package manager specific guidelines oncondaandpypirespectively.
Package: gns3-client
gns3-clientgns3-clientis a Python library that can be used to interact with aGNS3 serverusing its HTTP REST API. A GNS3 server manages emulators or hypervisors such as Dynamips, VirtualBox or Qemu/KVM.DisclaimerThis library does not aim at explaining nor documenting in any way the GNS3 server API. Please check
theGNS3 server official documentationfor further
information.Getting StartedTests provide a very good starting point.PrerequisitesYou'll need aGNS3 serverappliance or virtual machine to use the library.
Instructions on how to install a server appliance or virtual machine can be found on
theGNS3 website.Installingpip install gns3-clientRunning the testsYou'll need aGNS3 serverappliance or virtual machine to test the library.
Instructions on how to install a server appliance or virtual machine can be found on
theGNS3 website.Location of this test server is provided via these 2 environment variables:Environment variable nameDescriptionExampleGNS3_SERVER_URLThe URL of the GNS3 test serverhttp://gns3.example.com:3080/v2You then simply need to perform apython -v tests/.LimitationsIn this version, allCRUD operationsof the following
object types have been implemented:projectstemplatesnodeslinksdrawingsContributingPlease readCONTRIBUTING.mdfor details on our code of conduct.Buildingpoetry build
poetry publishVersioningWe useSemVerfor versioning. For the versions available, see
thetags on this repository.AuthorsOlivier Desnoë-Initial work-Albatross NetworksSee also the list ofcontributorswho participated in this
project.LicenseThis project is licensed under the MIT License - see theLICENSE.mdfile for details
Package: gns3-converter
GNS3 Converter is designed to convert old ini-style GNS3 topologies (<=0.8.7)
to the newer version v1+ JSON format for use in GNS3 v1+The converter will convert all IOS, Cloud and VirtualBox devices to the new
format. It will also convert all QEMU based devices (QEMU VM, ASA, PIX, JUNOS &
IDS). VPCS nodes will be converted to cloud devices due to lack of information
the 0.8.7 topology files.For topologies containing snapshots, the snapshots will also be converted to
the new format automatically.DocumentationCurrent documentation for gns3-converter can be found here:http://gns3-converter.readthedocs.org/en/latest/
Package: gns3-gui
GNS3-guiGNS3 GUI repository.InstallationPlease seehttps://docs.gns3.com/Software dependenciesPyQt5 which is either part of the Linux distribution or installable from
PyPi. The other Python dependencies are automatically installed during
the GNS3 GUI installation and are listedhereFor connecting to nodes using Telnet, a Telnet client is required. On
Linux that's a terminal emulator like xterm, gnome-terminal, konsole
plus the telnet program. For connecting to nodes with a GUI, a VNC
client is required, optionally a SPICE client can be used for Qemu
nodes.For using packet captures within GNS3, Wireshark should be installed.
It's recommended, but if you don't need that functionality you can go
without it.DevelopmentIf you want to update the interface, modify the .ui files using QT
tools. And:cd scripts
python build_pyqt.pyDebugIf you want to see the full logs in the internal shell you can type:debug 2Or start the app with --debug flag.Due to the fact PyQT intercept you can use a web debugger for inspecting
stuff:https://github.com/Kozea/wdbSecurity issuesPlease contact us atsecurity@gns3.net
Package: gns3inspector
GNS3InspectorOverviewA simple python-package to help get an overview of what is configured in a network-project that was created using GNS3. It also allows to configure several routers at the same time.NOTE: This tool doesn't verify any of the inputs you give to it. You should know what you're doing. Preferably you should run the commands on one router to see if they work. If they work as intended, you can usegns3inspectorfor an easier way to deploy the same configuration to other routers.This tool was written to make your life a little easier using GNS3. It doesn't aim to be perfect or solve all the problems GNS3 has. I just wrote it quickly to help my group solve a university assignment easier. Feedback is still welcome, just hmu here on GitHub.InstallationSimply runpip install gns3inspectorto install the package. By adding.local/binto yourPATHvariable, you can use the commandgns3inspectorfrom any directory.gns3inspectoruses the readline-library, to make it work make surencurses-devis installed viaapt.UsageNavigate to your GNS3 project directory (where the*.gns3-file is located), and open a terminal there. Then rungns3inspectorto start the tool. If you opened a valid GNS3-project-directory, you will now see a terminal input>>>indicating that you can now rungns3inspectorcommands to see your project.gns3inspector commandsThe letter in parantesis can be used as a shortcut to run the commands, e.g.helpwill open the help-text, buthwill also do that.(h)elp: Shows a list of the available commands(l)ist: Shows all the routers in the current project. It generates abbreviations and id's for each router, which can be used to not have to write out the full router name each time.(s)elect: select the following device(s) as shown in (l)ist. E.g. TeleStar_R1 or TS_R1 or 3. The id's can also be selected as ranges, e.g. 3-5 or 4-9.
To select all devices leave the parameter empty, defaults to all devices.(c)config: shows all commands in the configuration starting with the provided prefix, e.g. "interface f/." If no parameter is provided, all the startup configuration is shown.(e)dit: Like c, but now the selected configuration can be edited in a file called tmp_gns3.txt in the current working directory.Make sure that all the devices whose configuration you would like to edit are turned off in GNS3 before using this command!(r)eload: reloads all the router's startup config files from diskexit: or quit, ends the shell
Package: gns3-net-converter
The original code is from Daniel Lintott:https://github.com/dlintott/gns3-converterThe GNS3 team forked it in order to update it for the last versions of GNS3.GNS3 Converter is designed to convert old ini-style GNS3 topologies (<=0.8.7)
to the newer version v1+ JSON format for use in GNS3 v1+The converter will convert all IOS, Cloud and VirtualBox devices to the new
format. It will also convert all QEMU based devices (QEMU VM, ASA, PIX, JUNOS &
IDS). VPCS nodes will be converted to cloud devices due to lack of information
the 0.8.7 topology files.For topologies containing snapshots, the snapshots will also be converted to
the new format automatically.DocumentationCurrent documentation for gns3-converter can be found here:http://gns3-converter.readthedocs.org/en/latest/
Package: gns3-webclient-pack
GNS3 WebClient packClient pack to use with the web Ui via protocol handlersSupported protocol handlersThe GNS3 WebClient currently support these URL schemes:gns3+telnetfor Telnet consolesgns3+vncfor VNC consolesgns3+spicefor SPICE consolesgns3+pcapfor packet capturesURLs can include the following parameters:nameis the name or hostname of a GNS3 node or the description of a packet captureproject_idis the GNS3 project UUIDnode_idis the GNS3 node UUIDlink_idis the GNS3 link UUIDURL examplesTelnet console with all parametersgns3+telnet://localhost:6000?name=R1&project_id=1234&node_id=5678VNC consolegns3+vnc://localhost:5901SPICE consolegns3+spice://localhost:5000Packet capturegns3+pcap://localhost:3080?project_id=d991dbc0-b98f-42aa-88b2-288170cca9c7&link_id=5c7f5285-ba2f-4ff6-8741-d1a77324441a&name=MyPacketCaptureInstallationWindowsUse the provided installer. Protocol handlers are registered during the installation.macOSDrag and drop the app from the DMG into /Applications. Start the app at least once to register the protocol handlers.Linux (Debian package)ONLY FOR UBUNTU AT THE MOMENTYou can install gns3-webclient-pack from our officialPPA:sudo add-apt-repository ppa:gns3/unstable
sudo apt-get update
sudo apt-get install gns3-webclient-packor download .deb packages fromhere.The Debian package will install all dependencies including telnet, vinagre, virt-viewer and wireshark.Linux (Pypi package)sudo python3 -m pip install gns3-webclient-pack
sudo gns3-webclient-config --install-mime-typesYou may have to manually install dependencies including telnet, vinagre, virt-viewer and wireshark.Linux script installationAlternatively, you can install gns3-webclient-pack from terminal using the following command:wget -qO- https://raw.githubusercontent.com/GNS3/gns3-webclient-pack/master/install.sh | shThis method should work on most Linux distros. Please open an new issue if this is not the case.DebuggingUse thexdg-opentool on Linux (from thexdg-utilspackage). For instance to start a Telnet console:xdg-open "gns3+telnet://127.0.0.1:5000/PC1"On other platforms, check the launcher logs:Windows:%APPDATA%\GNS3\WebClient\launcher.logLinux and MacOS:~/.config/GNS3/WebClient/launcher.logTipsHow to fix Chrome protocol handler “Always open these types of links in the associated app” pop up.WindowsSave the following content in a .reg file and execute as an Administrator.[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome]
"ExternalProtocolDialogShowAlwaysOpenCheckbox"=dword:00000001Note: the GNS3 all-in-one installer already does this.LinuxFirst, start bash as root:sudobashThen execute the following to allow Chrome to open the GNS3 protocol handlers.mkdir-p/etc/opt/chrome/policies/{managed,recommended}cat<<EOF >/etc/opt/chrome/policies/managed/allow_gns3_protocols.json{"URLAllowlist": ["gns3+telnet:*","gns3+vnc:*","gns3+spice:*","gns3+pcap:*"]}EOFMacOSRun the following in a terminal.defaults write com.google.Chrome URLWhitelist -array 'gns3+telnet://*' 'gns3+vnc://*' 'gns3+spice://*' 'gns3+pcap://*'
Package: gns-deb-diff
A script that generates differences between gNewSense and Debian.sourcegit clone git://git.ricketyspace.net/gns-deb-diff.gitdevelopment environmentcd gns-deb-diff
virtualenv --python=python3 .
source activate
pip install -r requirements.txt
python setup developinstallationpip install gns-deb-diffusagegd-diff RELEASE RELEASE_NUMBERconfig{
    "user": "sddhrth",
    "pass": "weasaspeciesarenicelyfckd"
}config directory structure~/.config/gns-deb-diff/
    config  # json format
    pkgs/
        parkes # \n seperated list o' pkgs
        ucclia
    readmes/
        parkes/
            pkg-foo/debian/README.gNewSense
            pkg-bar/debian/README.gNewSense
            .
            .
        ucclia/
            pkg-foo/debian/README.gNewSense
            pkg-bar/debian/README.gNewSense
            .
            .
    wiki-page/
        parkes/
            wiki.page # contains latest generated page.
        ucclia/
            wiki.pagelicenseUnderPublic Domain.
Package: gnsentiment
Natural Language API - Sentiment (GCP)GN-Sentiment (Natural language API - Sentiment) is a Python library for analyzing sentiments with GCP.InstallationUse the package managerpipto install gnsentiment.pipinstallgnsentimentorpipinstall-ihttps://test.pypi.org/simple/gnsentimentUsagefromgnsentimentimportGnsentiments=Gnsentiment('path_key.json')s.analyze_sentiment('ejemplo texto')# return: dict(...)s.sentiment(1)# return: 1LicenseMIT
Package: gnsocket
GPS Network SocketEste módulo habilita la operación de un socket comoclienteoservidor, soporta:socket unixsocket tcp/ipsslComunica la información serializada en estruturas de datos JSON. Permite tamaños grandes de información ya que empaqueta en pequeños trozos la información.La clase principal, que puede ser utilizada para diversas implementaciones, es:GNCSocket.Además, considerando que socket es una estructura para comunicar y usualmente deba ser usada de manera parmente y conexión continua, se implementan las siguientes clases.GNCSocketBase, que habilita métodos asíncronos para leer y escribir entre sockets, tomando información de colas o entregando a colas. Para comunicar con otros bloques.Para esto, se heredan dos clases específicas que implementan de manera sencillas unservidory uncliente.GNCSocketServerGNCSocketClientEn ambos casos, para cualquier programa, como por ejemplo una interfaz gráfica, bastará con entregarle una cola para recibir y una para entregar información (de estructuras Queue de python).InstalarPara instalar será suficiente con pippipinstallgnsocketPero también, clonando el repositorio e instalando.gitclonehttps://gitlab.com/pineiden/gus.git
pythonsetup.pyinstallHabilitar los puertos para TCPEn caso de habilitar elsocketcomoserveren producción, será necesario que habilites el puerto seleccionado en firewall (si es que está habilitado).Realizar algunas pruebasDentro de la carpeta test, están los directoriosadvance_x, para probar los scripts basta ejecutar en dos terminales diferentesserveryclient.Te recomiendo probartest/advanceytest/advance_ssl.Más información, en la documentaciónEn el directorio doc existe un documento con información mas descriptiva.
Package: gnsq
Ageventbased python client forNSQdistributed messaging platform.Features include:Free software: BSD licenseDocumentation:https://gnsq.readthedocs.orgBattle tested on billions and billions of messages</sagan>Based ongeventfor fast concurrent networkingFast and flexible signals withBlinkerAutomatic nsqlookupd discovery and back-offSupport for TLS, DEFLATE, and SnappyFull HTTP clients for both nsqd and nsqlookupdInstallationAt the command line:$ easy_install gnsqOr even better, if you have virtualenvwrapper installed:$ mkvirtualenv gnsq
$ pip install gnsqCurrently there is support for Python 2.7+, Python 3.4+ and PyPy.UsageFirst make sure nsq isinstalled and running. Next create a producer and
publish some messages to your topic:import gnsq

producer = gnsq.Producer('localhost:4150')
producer.start()

producer.publish('topic', 'hello gevent!')
producer.publish('topic', 'hello nsq!')Then create a Consumer to consume messages from your topic:consumer = gnsq.Consumer('topic', 'channel', 'localhost:4150')

@consumer.on_message.connect
def handler(consumer, message):
    print 'got message:', message.body

consumer.start()CompatibilityForNSQ 1.0and later, use the major version 1 (1.x.y) of gnsq.ForNSQ 0.3.8and earlier, use the major version 0 (0.x.y) of the
library.The recommended way to set your requirements in yoursetup.pyorrequirements.txtis:# NSQ 1.x.y
gnsq>=1.0.0

# NSQ 0.x.y
gnsq<1.0.0DependenciesOptional snappy support depends on thepython-snappypackage which in turn
depends on libsnappy:# Debian
$ sudo apt-get install libsnappy-dev

# Or OS X
$ brew install snappy

# And then install python-snappy
$ pip install python-snappyContributingFeedback, issues, and contributions are always gratefully welcomed. See thecontributing guidefor details on how to help and setup a development
environment.
Package: gnss-benchmark
GNSS processing engine benchmarking data setThis repository contains several datasets to compute the performance of a
GNSS processing engine. This repository has been developed to help Rokubun
Jason users to assess the expected performance of the platform. However, the
orchestrator can be also used to test your own engine.The repository includes also a tool to run the complete pipeline. Pandoc and
textlive packages are required. To do that, simply use these commands:apt-getupdate
apt-getinstall-ypandoctexlive
pipinstallgnss-benchmark
gnss_benchmarkmake_reportThis tool will take a while to process (ca. 5 minutes), and after that a PDF
report should have been generated.Note that if you do not have LaTEX installed in your system you may not be able
to generate the report in PDF. In this case, you can try other formats such as
LibreOffice ODT. To do that typegnss_benchmarkmake_report--filenamereport.odtUse the help of the tool to get more informationgnss_benchmark-hRunning and developing in a containerTo make sure you have all necessary components in the system, you can work
using Docker containers (recommended).The first step would be to build the containerdockerbuild-tgnss-benchmark.# Usage with docker rundockerrun-v`pwd`:/gnss_benchmark-w/gnss_benchmark-tignss-benchmarkbash# Development with Jupyterdockerrun--env-file.env-v`pwd`:/data-w/data-p8888:8888-tignss-benchmarkjupyternotebook# Usage with docker compose (recommended)docker-compose-fdocker-compose.ymlbuild
docker-compose-fdocker-compose.ymlrungnss_benchmarkbash
pythonsetup.pyinstall
gnss_benchmarkmake_report-lDEBUGWhen usingdocker-composeremember to place your Jason credentials in an.envfile with these contents:JASON_API_KEY=<apikey>JASON_SECRET_TOKEN=<yoursecrettoken>Although probably not used for the end user, just for debugging purposes,
in the event that you have a local instance of the Jason service running
in your facilities, you can set the Jason entry point by defining theJASON_API_URLenvironment variable (along with its corresponding credentials).
As an example:JASON_API_URL=http://192.168.1.54:10000/apiJASON_API_KEY=<apikey>JASON_SECRET_TOKEN=<yoursecrettoken>Using custom processing engineBy default, the tool comes bundled withRokubun Jason's processing engine, but the user can specify its own processing engine. This
cannot be done with the command line tool: a custom Python code will have to
be made using thegnss_benchmarkmodule. In this module, there is a package
namedjasonwith an example ofprocessing_enginethat the user can follow
to define other processing engines.
Package: gnsscal
This module contains functions for converting between Gregorian date, day of year and GNSS calendar, now support GNSS calendar for GPS and BDS.There are 3 functions for converting between Gregorian date and day of year (doy):date2doy(date)date2yrdoy(date)yrdoy2date(year,doy)Using them like:>>>fromdatetimeimportdate>>>date2doy(date(2017,5,17))137>>>date2yrdoy(date(2017,5,17))(2017,137)>>>yrdoy2date(2017,137)datetime.date(2017,5,17)There are 4 functions for converting between Gregorian date and GNSS calendars (GPS or BDS):date2gpswd(date)date2bdswd(date)gpswd2date(gpsweek,dayofweek)bdswd2date(bdsweek,dayofweek)Using them like:>>>fromdatetimeimportdate>>>date2gpswd(date(2017,5,17))(1949,3)>>>date2bdswd(date(2017,5,17))(593,3)>>>gpswd2date(1949,3)datetime.date(2017,5,17)>>>bdswd2date(593,3)datetime.date(2017,5,17)There are 4 functions for converting between year, day of year (doy) and GNSS calendars (GPS or BDS):yrdoy2gpswd(year,doy)yrdoy2bdswd(year,doy)gpswd2yrdoy(gpsweek,dayofweek)bdswd2yrdoy(bdsweek,dayofweek)Using them like:>>>yrdoy2gpswd(2017,137)(1949,3)>>>yrdoy2bdswd(2017,137)(593,3)>>>gpswd2yrdoy(1949,3)(2017,137)>>>bdswd2yrdoy(593,3)(2017,137)There are also 2 functions for converting between GPS calendar and BDS calendar:gpsw2bdsw(gpsweek)bdsw2gpsw(bdsweek)Using them like:>>>gpsw2bdsw(1949)593>>>bdsw2gpsw(593)1949Where the type of date isdatetime.dateand others areintor tuple ofint.Zero point of GPS and BDS are also given as module level constains in Gregorian date.Examplesimportgnsscalfromdatetimeimportdate# Convert Gregorian date to GPS calendartoday=date.today()gpsweek,days=gnsscal.date2gpswd(today)# Convert GPS week to BDS weekgpsweek=1812bdsweek=gnsscal.gpsw2bdsw(gpsweek)# Get zero point of GPS and BDS calendargps_zero=gnsscal.GPS_START_DATEbds_zero=gnsscal.BDS_START_DATECLI modeYou can also using gnsscal in CLI mode:$ python -m gnsscal [options]Set input date using the optional arguments:-h, --help                          show this help message and exit
-v, --version                       show program's version number and exit
-date <year> <month> <day>          year, month, day
-ydoy <year> <doy>                  year, day of year
-gpswd <GPS week> <day of week>     GPS week, day of week
-bdswd <BDS week> <day of week>     BDS week, day of weekExample, typing this command in terminal:$ python -m gnsscal -date 2017 5 17Then it will print:Gregorian date: 2017-05-17
year, doy: 2017, 137
GPS week: 1949, 3
BDS week: 0593, 3InstallationThe module can be installed using pip:$ pip install gnsscalTestTest gnsscal.py using command:$ python test_gnsscal.pyLicenseReleased under BSD, see LICENSE for more details.For comments and suggestions, please send email to: jiangyingming(at)live.com