Saravanan666/pypi-org huggingface dataset:
Package: omegapy
OMEGA-Py : Python tools for OMEGA dataImportation and display of OMEGA/MEx observations in Python 3, based on the IDLSOFT10routines developped in the IAS planetary team.Installation & UpdateMethod 1: from PyPI (recommended)Installation:pip3 install omegapyUpdate:pip3 install omegapy --upgradeMethod 2: from the GitHub repository (development version)Installation:Clone the repository and install with pip:gitclonehttps://github.com/AStcherbinine/omegapy.gitcdomegapy
pip3install.Update:Go to the previously cloned repository, pull the last updates, and install them with pip:cdomegapy
gitpull
pip3install.DocumentationFull documentation of the OMEGA-Py module is available atastcherbinine.github.io/omegapyPlanetary Data Workshop 2023:abstract&slidesCiting OMEGA-PyIf you are using OMEGA-Py in your research, please cite it according to the guidelines availablehere.Credits© Aurélien Stcherbinine (2020–2023)Institut d'Astrophysique Spatiale (IAS), Université Paris-Saclay, CNRS, Orsay, FranceLATMOS/IPSL, UVSQ Université Paris-Saclay, Sorbonne Université, CNRS, Guyancourt, FranceDepartment of Astronomy and Planetary Science, Northern Arizona University, Flagstaff, AZ, USALicenseThis package is released under a MIT open source license. SeeLICENSEfor more details.
Package: omegasensor
Omega Smartsensor Python SDKThis Python SDK allows you to communicate with Omega Smart Sensor devices via I2C interface or Modbus interface and easily integrate them to embedded platform such as Raspberry Pi, etc...RequirementsPython 3.5+Installation & UsagePC Installpip installWhen installing python, ensure the option to add python to PATH is checked.
If python is not part of the PATH, in command prompt change directory to the location of python.exe.
Execute the pip install command.python -m pip install omegasensorSetuptoolsAnother method to install omegasensor. Clone from repository. And Install via Setuptools from source directory:python setup.py install --userRaspberry Pi InstallSetuptoolsClone from repository. And Install via Setuptools from source directory:python3 setup.py install --userGetting startedimport time
from omegasensor import *  

def main():    
    bus = BusModbus('/dev/ttyUSB0', SMARTSENSOR_MODBUS_ADDR)   # for Modbus interface 
    # bus = BusI2C(1, SMARTSENSOR_I2C_ADDR) # for I2C interface
    ss = Smartsensor(bus)    

    ss.soft_reset()    
    ss.preset_config()    
    print("Firmware 0x%08x" % ss.read(R.FIRMARE_VERSION))    
    print("Device Id 0x%08x" % ss.read(R.DEVICE_ID))    
    print("Device %s" % ss.read(R.DEVICE_NAME))    
    sensor_cnt = ss.read(R.NUMBER_OF_SENSORS)    
    print("Onboard %d sensors" % sensor_cnt)    
    print("Onboard %d outputs" % ss.read(R.NUMBER_OF_OUTPUTS))    

    sensor_units = [ss.sensor_unit(i) for i in range(sensor_cnt)]    

    while True:    
        print("Time: ", ss.current_time_str())    
        for i in range(sensor_cnt):    
            print("%0.2f" % ss.sensor_reading(i),    
                  " %s" % sensor_units[i],    
                  "\t", end='')    
        print('\n')    
        time.sleep(1)    


if __name__ == "__main__":    
    main()Enable Software I2C interface:(supports clock stretching for SmartSensor's I2C Interface)Open config.txtsudo nano /boot/config.txtAdd the following entry to the filedtoverlay=i2c-gpio,bus=3Save the file by hitting Ctrl+O. Enter. Reboot the Pi.A new I2C interface can be found at/dev/i2c-3SDA is BCM23 (header pin 16)CLK is BCM24 (header pin 18)Software I2C requires manual pull-up resistors of about 2.2k on SDA and CLK to Vcc. It may be possible to enable GPIO internal pull-up by the following commands:# enable internal pull-up on pin BCM23
gpio -g mode 23 up
# enable internal pull-up on pin BCM24
gpio -g mode 24 upExamplesExamples can be found in SDK Example directoryHardware SetupOmega BTH-SMP smart probes can be used with the I2C interface. On Raspberry Pi, here are the connections:Raspberry PiBTH-SMPPin 3 /BCM 2SDAPin 5 /BCM 3CLKPin 13.3VPin 6GNDAlternatively, Omega Smart sensor dongle can be used which converts I2C interface to Modbus interface. On Linux system, the dongle will show up as /dev/ttyUSB0 or /dev/ttyACM0 for example.
Package: omegatau-dl
RequirementsPython 3andpipfor Python 3.UsageUsepipto install this packagepip install omegatau-dl
pip3 install omegatau-dldepending on your OS and Python version supported bypip.
On most Linux distributionspython/piprefers to Python 2 andpython3/pip3to Python 3.Then run the script withpython -m omegatau_dl
python3 -m omegatau_dldepending on your OS.The script will download all numbered episodes into the same folder.
It won't redownload existing episodes.
Itdoes notsupport continuation of download, so if you stop in the middle of a download delete that (incomplete) file.
The numbers of all downloaded episodes will all be converted to 4 digit numbers.With the options-deor-enthe script will only download th episodes of the respective language.
Package: omega-tx
omega-txNOTE: This is in very early stages of development.Python ≥3.8 driver and command-line tool for OmegaITHXandIBTHXtransmitters.Installationpython3pip install omega-txUsageCommand Lineomega-tx<MODEL>192.178.6.12--port2000--timeout1.0--unit_systemmetricwhereMODELis eitheribthxorithxPythonThis driver uses Python ≥3.8's async/await syntax to asynchronously communicate with the
transmitter. For example:importasynciofromomega_tximportBarometerasyncdefread_once():asyncwithBarometer('the-tx-ip-address','the-tx-port')astx:print(awaittx.get())asyncio.run(read_once())Returns:{"Dewpoint in °C":10.9,"Humidity in %":35.9,"Pressure in mbar/hPa":996.0,"Pressure in mmHg":747.1,"Temperature in °C":27.3,}
Package: omegaup
omegaUpLibrary for interacting with omegaUp.omegaup.validator.validatortestAllows an input validator to be modeled as a standard unit test.To use, write your validator as if it were a normalunittest.TestCase:importloggingimportunittestimportsysfromomegaup.validatorimportvalidatortestclassMyTest(unittest.TestCase):deftest_foo(self):contestant_output=sys.stdincase_name=sys.argv[1]withopen('data.in','r')asoriginal_input,\open('data.out','r')asoriginal_output:logging.info('This will be printed to stderr')self.assertAlmostEqual(float(contestant_output.readline().strip()),float(original_output.readline().strip()))if__name__=='__main__':validatortest.main()
Package: omegaup-cli
OmegaUp CLIOmegaUp CLI es una interfaz que te permite interactuar con OmegaUp desde la linea de comandos. Actualmente el proyecto se encuentra en faseAlphapor lo que hace falta implementar soporte para muchas secciones de la API. Todo issue y pull request es bienvenido.CambiosEl parsing de argumentos ahora es gestionado mediante el moduloClick.Las interacciones con la API se realizan por medio de APITokens.Se removiotemporalmentela función de "entornos".Se migro parte de el codigo alibomegaup.InstalaciónEl proyecto se encuentra en faseAlpha, por lo que el codigo actual estaINCOMPLETO. Para descargar la versión en desarrollo, se recomienda instalar la CLI desde el repositorio en GitHub o desdepipxen lugar de las GH Releases.Instalación desdepipxpipxinstallomegaup-cli# Instalación global y segura.Instalación desde la fuentegitclonehttps://github.com/Apocryphon-X/omegaup-cli# Clona el repositorio.cdomegaup-cli# Accede al directorio../linux-install.sh# Ejecuta el script de instalación.Grupos de comandos actualesGrupoDescripciónuclMuestra los grupos de comandosucl runMenu de ayuda para enviosucl contestMenu de ayuda para concursosucl problemMenu de ayuda para problemasInspiracionesOmegaUp API¹:"OmegaUp: Open source platform to learn and improve Computer Science skills".ProtonVPN Linux CLI¹:"Linux command-line client for ProtonVPN. Written in Python".CF-Tool¹:"Codeforces Tool is a command-line interface tool for Codeforces".Codeforces CLI¹:"A simple command line tool for Codeforces coders".Github CLI¹:"GitHub’s official command line tool".¹:omegaup-cliisnotformally affiliated with this organization or project.LicenseApocryphon-X/omegaup-cliis licensed under the MIT License. A short and simple permissive license with conditions only requiring preservation of copyright and license notices. Licensed works, modifications, and larger works may be distributed under different terms and without source code.
More details can be found in theLICENSE.mdfile.
Package: omegaup-hook-tools
hook_toolsEstas son herramientas que ayudan a mantener el código en los distintos
repositorios del proyectoomegaUpcon un estilo
consistente.Para agregarhook_toolsa tu repositorio:Agregahook_toolscomo submódulo de
git en algún lugar de tu repositorio.Agrega un archivo.lint.config.jsonen la raíz de tu repositorio.Invocahook_tools/lint.py validate --allen tu archivo.travis.ymlo en
los git pre-upload hooks.Si estás en un sistema que soporta correrDocker,
puedes también correrdocker run -v $PWD:/src omegaup/hook_tools validate --all..lint.config.jsonEste es un diccionario de configuración de los linters que se van a correr. Los
linters soportados (con sus respectivas opciones) son:clang-format: CorreClangFormat.html: Corre HTML Tidy.strict: Un bool que indica si se va a correr en modo estrictojavascript: Corre el linter dePrettier.extra_js_linters: Un arreglo con comandos que se van a correr.json: Corre el linter dePrettier.karel: Corre el linter dePrettier.markdown: Corre el linter dePrettier.php: Corre PHP Code Beautifier.standard: Una cadena con la ruta del estándar de phpcbf.problematic-terms: Busca términos problemáticos.terms: Una lista de objetos con las siguientes llaves:regexps: Una lista de expresiones regulares a buscar.message: El mensaje a desplegar.allowlist: (Opcional) Una lista de expresiones regulares. Si está
definido yningunade estas expresiones regulares hace match con el
nombre del archivo, el archivo se ignora.denylist: (Opcional) Una lista de expresiones regulares. Si está
definido yalgunade estas expresiones regulares hace match con el
nombre del archivo, el archivo se ignora.whitespace: Elimina molestos espacios en blanco, como espacios al final de
la línea, múltiples líneas vacías, saltos de línea estilo Windows.style: Correstylelint.typescript: Corre el linter dePrettier.vue: Corre los linters dejavascriptyhtmlen las distintas secciones
de un Vue template.extra_js_linters: Un arreglo con comandos que se van a correr en la
sección<script>..</script>del template.stylelint: Un booleano que determina si también se va a correr stylelint
en la sección<style>..</style>del template.python: Corre pep8 y pylint.pep8_config: Una cadena con la ruta del archivo de configuración para
pep8.pylint_config: Una cadena con la ruta del archivo de configuración para
pylint.custom: Corre comandos personalizados.commands: Un arreglo con comandos.Todos los linters soportan dos opciones adicionales:allowlist: Un arreglo con expresiones regulares. Los archivos a considerar
para el linter actual deben de hacer match conal menos unregex de este
arreglo.denylist: Un arreglo con expresiones regulares. Los archivos a considerar
para el linter actual deben denohacer match conningúnregex de este
arreglo.Comandos personalizadosTanto el lintercustomcomojavascriptsoportan comandos personalizados.
Estos comandos se van a correr tal-cual con dos argumentos extra: el nombre del
archivo (temporal) que debe de actualizarse con el contenido correctamente
formateado, y el nombre de archivo original (si se desea escribir información
de depuración a stderr). Este comando se ejecutará mediante/bin/bash.
Package: omega-wp
Omega - From Wordpress admin to ptyThe Linux tool to automate the process of getting a pty once you got admin credentials in a Wordpress site. Works in Linux, Windows and MacOS hosts!The shell code used for Windows hosts is a modified version of thePHP reverse shellbyivan-sincek, credits to the author.How does it work?First, Omega gets an admin session in the Wordpress site and using web scrapping, it extracts the current template used by Wordpress. After that, it will use the template editor to inject a payload with a simple web shell and a base64 PHP code evaluation function.Once everything is set up, Omega will spin up a listener, execute a reverse shell using the payload injected and wait for the shell to connect back. Before giving the control to the user, Omega will try to stabilize the shell and get a pty (Only for Linux and MacOS hosts).If stabilization is not possible using the methods Omega has, a non tty shell will be provided that can be stabilized without problems using any method you want.InstallationJust executepip3 install omega-wpand enjoy! You can use a virtual env or intall it system wide.UsageIf you have all the requirements you can start playing with Omega!Omega - From Wordpress admin to pty

usage: omega [-h] [-v] [--no-pty] -u WP_URL -l USERNAME -p PASSWORD -H LHOST [-P LPORT]

Provides a reverse shell (stabilized if possible) to a Wordpress host. You need admin credentials!

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
  --no-pty              if this flag is set, no shell stabilization is perform
  -u WP_URL, --wp-url WP_URL
                        the target Wordpress url
  -l USERNAME, --username USERNAME
                        Wordpress admin user to use for login
  -p PASSWORD, --password PASSWORD
                        Wordpress admin password to use for login
  -H LHOST, --lhost LHOST
                        the ip where the reverse shell should connect to
  -P LPORT, --lport LPORT
                        the port used to listen for the reverse shell (Default: 8080)
Package: omegle-translator-v1
if the program Crashes,restart the program by killing the terminal.enter exit() to start new Chatselect your language and the language in which you want to translate.language will be translated irrespective of the stranger's language.'Type 'exit()' to exit the chat.'
'Type 'change()' to change the language.'
'Type 'change(a,b)',where 'a' means user lang code and 'b' means stranger lang code '
'Type 'kill()' to exit the chat.'
Package: omego
The omego command provides utilities for installing and managing OME applications.Getting StartedFor Python 2.6, you will need to installargparse$ pip install argparseWith that, it’s possible to execute omego:$ python omego/main.pyPip installationTo install the latest release of omego use pip install:$ pip install omego
$ omegoLicenseomego is released under the GPL.Copyright2013-2016, The Open Microscopy Environment
Package: omeka-s-gateway
omeka-s-gatewayThis is a thin wrapper for the Omeka-S REST API.  It's rather
unprincipled/pragmatic depending on how complimentary you would like to be.  It
was developed as part of the Queer Heritage South digital archive project.This is far from industrial strength, please do not rely on it./connection_details.pysites = {
    'steenvlieg': {
        'install_location': 'http://omeka-s.steenvlieg.phys.solasistim.net',
        'key_identity': 'SOMELONGKEY',
        'key_credential': 'SOMELONGCREDENTIAL'
    }
}
Package: omeka-s-tools
Omeka S ToolsTools for working with data in an instance of Omeka SInstallpip install omeka-s-toolsHow to useSee the documentationfor full details of the Omeka API Client.fromomeka_s_tools.apiimportOmekaAPIClientomeka=OmekaAPIClient('http://timsherratt.org/collections/api')items=omeka.get_resources('items')items['total_results']49items['results'][0]{'@context': 'http://timsherratt.org/collections/api-context',
 '@id': 'http://timsherratt.org/collections/api/items/671',
 '@type': ['o:Item', 'schema:Newspaper'],
 'o:id': 671,
 'o:is_public': True,
 'o:owner': {'@id': 'http://timsherratt.org/collections/api/users/1',
  'o:id': 1},
 'o:resource_class': {'@id': 'http://timsherratt.org/collections/api/resource_classes/161',
  'o:id': 161},
 'o:resource_template': {'@id': 'http://timsherratt.org/collections/api/resource_templates/5',
  'o:id': 5},
 'o:thumbnail': None,
 'o:title': "Newcastle Morning Herald and Miners' Advocate (NSW : 1876 - 1954)",
 'thumbnail_display_urls': {'large': None, 'medium': None, 'square': None},
 'o:created': {'@value': '2022-01-20T06:36:11+00:00',
  '@type': 'http://www.w3.org/2001/XMLSchema#dateTime'},
 'o:modified': {'@value': '2022-01-20T06:36:11+00:00',
  '@type': 'http://www.w3.org/2001/XMLSchema#dateTime'},
 'o:media': [],
 'o:item_set': [],
 'o:site': [],
 'schema:name': [{'type': 'literal',
   'property_id': 1116,
   'property_label': 'name',
   'is_public': True,
   '@value': "Newcastle Morning Herald and Miners' Advocate (NSW : 1876 - 1954)"}],
 'schema:url': [{'type': 'uri',
   'property_id': 393,
   'property_label': 'url',
   'is_public': True,
   '@id': 'http://nla.gov.au/nla.news-title356'}],
 'schema:identifier': [{'type': 'literal',
   'property_id': 190,
   'property_label': 'identifier',
   'is_public': True,
   '@value': '356'}]}Seethe documentationfor more examples.Created byTim Sherratt(@wragge) for theGLAM Workbench.
Package: omeka-s-tools2
Omeka S Tools 2This repository is based onOmeka S
ToolsbyTim
Sherratt.Installpip install omeka-s-tools2How to useSee the
documentationfor
full details of the Omeka API Client.fromomeka_s_tools2.apiimport*omeka=OmekaAPIClient('http://timsherratt.org/collections/api')items=omeka.get_resources('items')items['total_results']140items['results'][0]{'@context': 'http://timsherratt.org/collections/api-context',
 '@id': 'http://timsherratt.org/collections/api/items/677',
 '@type': ['o:Item', 'schema:Newspaper'],
 'o:id': 677,
 'o:is_public': True,
 'o:owner': {'@id': 'http://timsherratt.org/collections/api/users/1',
  'o:id': 1},
 'o:resource_class': {'@id': 'http://timsherratt.org/collections/api/resource_classes/161',
  'o:id': 161},
 'o:resource_template': {'@id': 'http://timsherratt.org/collections/api/resource_templates/5',
  'o:id': 5},
 'o:thumbnail': None,
 'o:title': 'Manilla Express (NSW : 1899 - 1954)',
 'thumbnail_display_urls': {'large': 'http://timsherratt.org/collections/files/large/aa1fb4063116fc889418ce6dc20af3cb7e7bd0db.jpg',
  'medium': 'http://timsherratt.org/collections/files/medium/aa1fb4063116fc889418ce6dc20af3cb7e7bd0db.jpg',
  'square': 'http://timsherratt.org/collections/files/square/aa1fb4063116fc889418ce6dc20af3cb7e7bd0db.jpg'},
 'o:created': {'@value': '2022-01-20T06:37:50+00:00',
  '@type': 'http://www.w3.org/2001/XMLSchema#dateTime'},
 'o:modified': {'@value': '2022-01-20T06:37:50+00:00',
  '@type': 'http://www.w3.org/2001/XMLSchema#dateTime'},
 'o:media': [{'@id': 'http://timsherratt.org/collections/api/media/882',
   'o:id': 882},
  {'@id': 'http://timsherratt.org/collections/api/media/897', 'o:id': 897},
  {'@id': 'http://timsherratt.org/collections/api/media/929', 'o:id': 929},
  {'@id': 'http://timsherratt.org/collections/api/media/994', 'o:id': 994},
  {'@id': 'http://timsherratt.org/collections/api/media/995', 'o:id': 995},
  {'@id': 'http://timsherratt.org/collections/api/media/996', 'o:id': 996},
  {'@id': 'http://timsherratt.org/collections/api/media/997', 'o:id': 997}],
 'o:item_set': [],
 'o:site': [],
 'schema:name': [{'type': 'literal',
   'property_id': 1116,
   'property_label': 'name',
   'is_public': True,
   '@value': 'Manilla Express (NSW : 1899 - 1954)'}],
 'schema:url': [{'type': 'uri',
   'property_id': 393,
   'property_label': 'url',
   'is_public': True,
   '@id': 'http://nla.gov.au/nla.news-title1006'}],
 'schema:identifier': [{'type': 'literal',
   'property_id': 190,
   'property_label': 'identifier',
   'is_public': True,
   '@value': '1006'}],
 '@reverse': []}Seethe
documentationfor
more examples.Created byTim Sherratt(@wragge) for theGLAM
Workbench.Created by@satoru196.
Package: omemdb
# omemdbIn memory orm.## users documentationsee [doc-users.md](doc/doc-users.md) (use doc-users.py to modify)## developer documentationsee [doc-developers.md](doc/doc-developers.md)Field validation is based on [Marshmallow v2.x framework](https://marshmallow.readthedocs.io/en/2.x-line/).
Package: omemo-backend-signal
python-omemo-backend-signalA backend for python-omemo offering compatibility with libsignal.This library implements a backend forpython-omemooffering compatibility with libsignal (C,Java,JavaScript). Look atpython-omemofor further usage information.NOTE: This repository contains a compiled version of aprotobufstructure definition file. The Makefile can be used to reproduce the compilation step. Tested to work with protoc v2.*, v3.0.0 and v3.6.1.
Package: omemo-dr
Initial codebase was forked fromhttps://github.com/tgalal/python-axolotlbut has since been heavily rewritten.Dependenciesprotobuf(>=4.21.0)cryptographyLinuxpip install .UsageThis library handles only the crypto part of OMEMO, not the XMPP protocol part. This means you need to take care yourself of things like publishing/downloading bundles, publishing/subscribing to PEP deviceliste updates, sending and receiving messages.Building a sessionA OMEMO client needs to implement the Store interface (omemo_dr.state.store.Store). This will manage loading and storing of identity, prekeys, signed prekeys, and session state.Once this is implemented, building a session is fairly straightforward:storage=MyStorage()config=OMEMOConfig(default_prekey_amount=100,min_prekey_amount=80,spk_archive_seconds=86400*15,spk_cycle_seconds=86400,unacknowledged_count=2000)manager=OMEMOSessionManager(address,storage,config)# Get your bundle for publishingbundle=manager.get_bundle('eu.siacs.conversations.axolotl')my_publish_method(bundle)# Build a session with a downloaded bundle of a remote contactbundle=my_receive_bundle_method()manager.build_session(remote_address,bundle)# Encrypt a message to a remote contactmessage=manager.encrypt(remote_address,plaintext)my_send_message_method(message)# Descrypt a messagemessage=my_receive_message_method()plaintext,fingerprint,trust=manager.decrypt(message,remote_address)DevelopmentGenerating protobuf filesDownload the protobuf-compiler > 3.19 and execute$protoc-I=src/omemo_dr/protobuf--python_out=src/omemo_dr/protocolomemo.protowhisper.proto
$protoc-I=src/omemo_dr/protobuf--python_out=src/omemo_dr/statestorage.proto