Saravanan666/pypi-org huggingface dataset:
Package: odoo-tools-grap
Installationpip3installodoo-tools-grapUsageDiff toolsBased on a repos config file (repos.yml file, used by gitaggregate by
exemple), this script will display the result of thegit difffor each
repository.odoo-tools-grapdiff\-crepos.ymlGenerate Odoo config FilesBase on a repos config file, (used by gitaggregate by exemple), template(s)
of odoo config file, this script will generate a complete config file for Odoo
with addons_path depending on the repos config file.odoo-tools-grapgenerate\-crepos.yml\-i./template.config.cfg\-o./odoo.cfgDevelopement# Pull Codegitclonehttps://gitlab.com/grap-rhone-alpes/odoo-tools-grapcdodoo-tools-grap# Create virtual env and activate itvirtualenvenv--python=python3../env/bin/activate# Install dependencies./env/bin/pipinstall-rrequirements.txt# Run the scriptpython-modoo_toolsCOMMANDOPTIONSPackage deploymentpip3install--upgradesetuptoolswheelpip3install--upgradetwine# Generate wheel and packagepython3setup.pysdistbdist_wheel# Push on pyPi Testtwineupload--repository-urlhttps://test.pypi.org/legacy/dist/*# Push on pyPi Productiontwineuploaddist/*Roadmap / Know issuesodoo-tools-grap diff tools will not works in a non french context, because
a test based on the result ofgit diffis hardcoded with french sentence.
It could be fixed by using git-python librairie, instead of calling
subprocess ofgit statusAdd tests.CreditsAuthorsGRAP, Groupement Régional Alimentaire de Proximité (http://www.grap.coop)ContributorsSylvain LE GAL (https://www.twitter.com/legalsylvain)
Package: odootools-openapi
OdooTools OpenAPIThis package is a library and an a plugin forodoo-tools.When used as a library, it define an orm that helps unwrap json body into python objects and Odoo
objects back into JSON.When used as a command, it will generate an Odoo Module with api models and controllers as defined
in an openapi3 spec with custom extensions for Odoo.The command can be invoked as such:odootools gen openapi --destination my_module_api --path path_to_spec
odootools gen openapi --destination my_module_api --url url_to_specThen the module will be created inside the destination path. It will use
the title/description of the api to define the name/summary of the module.Example API:openapi: 3.0.0
info:
  contact:
    email: info@odoo.plus
    name: Loïc Faure-Lacroix
    url: https://www.odoo.plus
  description: ''
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
  title: ''
  version: '1'

tags:
  - name: projects
    description: Super projects

components:
  schemas:
    ApiResult:
      description: Api Result
      properties:
        id:
          title: Resource Id
          type: integer
      type: object
    Project:
      description: Project
      x-model: project.project
      properties:
        id:
          title: ID
          type: integer
        name:
          title: Name
          type: string

paths:
  /project/{project}:
    get:
      tags:
        - projects
      parameters:
        - name: project
          x-model:
            $ref: "#/components/schemas/Project"
          in: path
          required: true
          schema:
            type: integer
      description: Get a project
      operationId: get_project
      responses:
        200:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResult'
          description: ProjectResult controller:from odootools_openapi.odoo.http import request, route, Controller

from ..api_models.apiresult import ApiResult


class Projects(Controller):
    """
    Super projects
    """

    @route(
        route=["/project/<model('project.project'):project>"],
        methods=['GET'],
        csrf=False,
        type='plainjson',
        auth='none',
    )
    def get_project(self, project):
        """
        Get a project
        """
        pass
Package: odoo-ule-handler
ODOO ULE HANDLERInternal script to read Odoo's DB dataRelease processThis repository is not linked to the PyPi repository (https://pypi.org/project/odoo-ule-handler/), so new versions must be manually created and deployed.
The process is really simple: clone the GitHub repository and execute the following command:Warning: you should use a virtual enviroment for dependency/library management.pip install twinepython setup.py sdist bdist_wheeltwine upload dist/*Introduce the PyPi account credentials and you are done.LicenseEverything in this repository is licensed under the MIT license.
Package: odooup
odooupis your best Odoo project compaion. Don’t ask for docs, just
try it out. It is self-explanatoryandself-exploratory.ContentsQuickstartUseful linksCreditsMaintainerChanges0.1.2 (2019-09-24)0.1.1 (2019-05-14)0.1.0 (2019-05-14)[…]0.0.4 (2019-05-14)0.0.3 (2019-05-02)0.0.1 (2019-04-18)Quickstart$pipinstallodooup$odooupinitUseful linksdockery-odoo:https://xoe-labs.github.io/dockery-odoo/dodoo:https://github.com/xoe-labs/dodoododoo migrator:https://github.com/xoe-labs/dodoo-migratordodoo initializer:https://github.com/xoe-labs/dodoo-initializerreport issues at:https://github.com/xoe-labs/odooup/issuesCreditsContributors:David Arnold (XOE)Deiber Rincón (XOE)Yan Chirino (XOE)Vladislav Shepilov (SHEPI)Ildar Nasyrov (ITPP)MaintainerThis project is maintained by XOE Copr. SAS.Changes0.1.2 (2019-09-24)Fix graph loading order for drop in module overridesImprove wihtelisting logs further (shotest path, longest path, deps)0.1.1 (2019-05-14)Fix global src modules whitelisting (whitelist without argument)Add more useful dependency logs (no more longest dep warning)Add more useful dependency logs (show successors of missing deps)Fix autoinstall whitlisted modules0.1.0 (2019-05-14)Be forgiving on non parsable manifests for dep whitelisting[…]0.0.4 (2019-05-14)FixedFix shallow submodules for any version of Odoo0.0.3 (2019-05-02)FixedFix duplicated tag “{BACKPORT_FLAG}-{TAG}”Fix error passing candidate as a tuple backporting a specific commit0.0.1 (2019-04-18)Carve out functionality from dockery-odoo-scaffold hackinit: helper to initialize an odoo projectrepo: toolset to manage your own odoo-dev / patches
Package: odoo-utilities
OdooToolsSet of tools for Odoo developpement.. code:: pythonimport OdooToolsDebugDebug utilities.. code:: pythonfrom odoo.ONS import debugprint_func_code: print function code and its inheritance
(considering loading order)python   print_func_code(env, model, function)env: odoo environnementmodel: model _name value, e.g. "sale.order"function: function to analyse, e.g. "onchange_partner_id"printTraceBack: print the call path up to this function callpython   printTraceBack(printer)printer: display function, default is "print", we can use the logger
from logging library.. code:: pythonprintTraceBack(_logger.critical)get_depends_methods: return a list of dict containing trigger
keys and function object of all "api.depends" of a modelpython   for depends in get_onchange_methods(env, model):       print(x["keys"], x["function"])env: environnement odoomodel: model from which to extract depends methods, e.g. "sale.order"get_onchange_methods: same as get_depends_methods but for
"api.onchange"analyse_depends: call print_func_code on get_depends_methods
resultpython   analyse_depends(env, model)analyse_onchange: call print_func_code on
get_onchange_methods resultpython   analyse_onchange(env, model)RecordsTools to handle recordsetgroupby: group recordset according to list of key (or key getter)python   groupby(records, attributes)records: recordset to groupattributes: list of grouping key, that can be either:an object attribute's name as string, e.g."name"a function taking a record and returning the key, e.g.lambda line: line.move_id.sale_line_id.order_idExample:python   lines = self.mapped("move_line_ids").filtered("result_package_id")   grouped = groupby(lines, [       "result_package_id",       "picking_id",       lambda line: line.move_id.sale_line_id.order_id,   ])   for package, package_data in grouped.items():      for picking_id, picking_id_data in package_data.items():         for sale_id, records in package_data.items():               print(records)DatetimeTools to handle date and datetime.client_specific_to_utc: There 's some cases where you need to
convert a datetime for the write, for example a datetime built from
the controllerpython   utc_date = client_specific_to_utc(env, mydate)
Package: odorik
DocumentationSeehttp://odorik.readthedocs.org/en/latest/for module documentation.Seehttp://www.odorik.cz/w/apifor API documentation.InstallationUse pip to install:pip install odorikCommand line utilityThe module comes with handy command line utility:$ odorik balance
balance: 123.45

$ odorik mobile-data --phone 00420789123456
bytes_total: 111593707
bytes_down: 87039672
bytes_up: 24554035
price: 0

$ odorik send-sms 00420789123456 "Ahoj, jak se mas?"

$ odorik summary
Pepa
id: 716000
public_number: 00420789789789
call_count: 58
sms_count: 42
bytes_total: 145921813
data_price: 0.01
call_price: 24.28
sms_price: 12.31
price: 36.59

Franta
id: 717000
public_number: 00420789123456
call_count: 11
sms_count: 0
bytes_total: 0
data_price: 0
call_price: 2.20
sms_price: 0
price: 2.20Seehttp://odorik.readthedocs.org/en/latest/command.htmlfor more information.
Package: odp2md
odp2mdodp2mdextracts presentation data from ODP files and converts it topandocmarkdown. This allows conversion toreveal.jsandBeamer. It was developed to rescue my lecture notes and slide decks, which resided in huge piles of documents made in PowerPoint and LibreOffice.InstallFrom Sourcepip install .From PyPipip install odp2mdToDoNormalize text output, which needs to remove trailing spaces which are generated by the hierarchy leveldetect formulas and convert them into proper pandoc Math/inline Math formatdetect WMF or other obscure formats and use imagemagick or ffmpeg to convert themrename media files with a derivative of the slide titleCopyright and License© 2019-2021 Hartmut SeichterThis software is licensed under the terms of the GPLv3. Please consultLICENSE.md
Package: odp-sdk
ODP Python SDKConnect to the Ocean Data Platform with Python through the Python SDK. Download queried ocean data easily and efficiently into data frames, for easy exploring and further processing in your data science project.Documentation[WIP]InstallationUse the package managerpipto install the Ocean Data Platform Python SDK.pip3installodp_sdkUsageNote: Accessing the Ocean Data Platform requires an authorzed account. Contact ODP to require one.fromodp_sdk.clientimportOdpClientclient=OdpClient()foriteminclient.catalog.list():print(item)Examples can be found in /examples.
Package: odp-sdk-python
ODP Python SDKConnect to the Ocean Data Platform with Python through the Python SDK. Download queried ocean data easily and efficiently into data frames, for easy exploring and further processing in your data science project.Documentation[WIP]InstallationUse the package managerpipto install the Ocean Data Platform Python SDK.pip3installodp_sdkUsageNote: Accessing the Ocean Data Platform requires an authorzed account. Contact ODP to require one.fromodp_sdk.clientimportOdpClientclient=OdpClient()foriteminclient.catalog.list():print(item)Examples can be found in /examples.
Package: odp-sdk-python-ingest
ODP Ingest SDKWelcome!INTROSetting up developer environmentThis project uses thePoetrypackage manager.
Please follow theofficialdocumentation for installation detailsIn addition to Poetry, this project also uses the packagePoe the Poetfor running simple tasks with poetry.With Poetry installed, you set up the virtual environment and install the dependencies with a single command:poetryinstallConfigure the pre-commit hookspre-commitinstall
Package: odpslides
Creates Opendocument Presentations For Microsoft PowerPoint, LibreOffice And OpenOfficeSee the Code at:https://github.com/sonofeft/ODPSlidesSee the Docs at:http://odpslides.readthedocs.org/en/latest/See PyPI page at:https://pypi.python.org/pypi/odpslidesODPSlides will create odp files readable by Microsoft PowerPoint, LibreOffice or OpenOffice.There are about a dozen slide page layouts that are supported with three slide background formats.Solid colorColor gradientBitmat imageThere is no attempt to supply a full API interface, simply a mechanism for making cross-platform slide presentations.
Package: odpxprueba
outdpik: Fundamental toolkit for outlier analysis and visualizationWhat is it?Outdpik is an open source Python package that provides different methods for outlier detection.
It aims to be the fundamental high-level package for this purpose.
Additionally, it offers visualization methods for the outlier analysis.Main FeaturesHere are just a few of the things that outdpik does well:It supports numpy arrays and pandas dataframesMultiple outlier detection techniques that can be combinedPowerful visualizationsFlexible at including one or more columns for the analysisWhere to get itThe source code is currently hosted on GitHub at:https://github.com/DanielPuentee/outdpikInstaller for the latest released version is available at thePython
Package Index (PyPI)# PyPIpipinstalloutdpikHow to use outdpikExamples of configuring and running outpdik:importoutpdikasoutdpoutdp=outdp()We proceed to detect outliers returning a dictionary of numeric features and the outliers instances:outliers_dict=outdp.outliers(df=df,cols="all")Plotting advantages:outdp.plot_outliers(df=df,col="x")Dependenciespandas - Provides fast, flexible, and expressive data structures designed to make working with "relational" or "labeled" data both easy and intuitiveNumPy - Adds support for large, multi-dimensional arrays, matrices and high-level mathematical functions to operate on these arraysSciPy - Includes modules for statistics, optimization, integration, linear algebra, Fourier transforms, signal and image processing, ODE solvers, and morematplotlib - Comprehensive library for creating static, animated, and interactive visualizations in Pythonseaborn - Provides a high-level interface for drawing attractive statistical graphicsLicenseThis project is licensed under the terms of theGNU- see the LICENSE file for details.DocumentationThe official documentation is hosted on FALTA:https://pandas.pydata.org/pandas-docs/stableDevelopmentWant to contribute? Great!
Open a discussion in Github in this repo and we will answer as soon as possible.
Package: odri-control-interface
odri_control_interfaceWhat it isCommon interface for controlling robots build with the odri master board.InstallationDownload the package:We usetreepto download the required packages. Make sure your ssh key is unlocked. Thenmkdir -p ~/devel
pip install treep  # This installs treep
cd ~/devel
git clone git@github.com:machines-in-motion/treep_machines_in_motion.git
treep --clone master-board
treep --clone odri_control_interfaceBuild the packageWe usecolconto build this package:cd mkdir -p ~/devel/workspace
colcon buildUsage:Demos/ExamplesYou find examples in forms of demos under thedemos/folder. The demos show how to use the python and C++ interface for talking to the library and setting up a robot.License and CopyrightsLicense BSD-3-Clause
Copyright (c) 2021, New York University and Max Planck Gesellschaft.
Package: odrive-can
Asyncio driver for ODrive V3.6Command ODrive over CAN with a simple interface.Source code:https://gitlab.com/roxautomation/components/odrive-canDocumentation:https://roxautomation.gitlab.io/components/odrive-canFeaturesdesigned to work withasyncioimplements full odrive can protocol.includesOdriveMockclass for device simulationcli tools for message inspection, backup and demo's.Installationpip install odrive-canBasic usageimportasynciofromodrive_canimportODriveCAN,CanMsgfromodrive_can.toolsimportUDP_ClientAXIS_ID=0INTERFACE="vcan0"SETPOINT=50udp=UDP_Client()# send data to UDP server for plottingdeffeedback_callback_fcn(msg:CanMsg,caller:ODriveCAN):"""called on position estimate"""print(msg)udp.send(msg.data)asyncdefmain():"""connect to odrive"""drv=ODriveCAN(axis_id=AXIS_ID,interface=INTERFACE)# set up callback (optional)drv.feedback_callback=feedback_callback_fcn# startawaitdrv.start()# check errors (raises exception if any)drv.check_errors()# set controller modedrv.set_controller_mode("POSITION_CONTROL","POS_FILTER")# reset encoderdrv.set_linear_count(0)# set axis stateawaitdrv.set_axis_state("CLOSED_LOOP_CONTROL")# set position gaindrv.set_pos_gain(3.0)for_inrange(2):# setpointdrv.set_input_pos(SETPOINT)awaitasyncio.sleep(5.0)drv.set_input_pos(-SETPOINT)awaitasyncio.sleep(5.0)drv.set_input_pos(0.0)asyncio.run(main())CLI interfaceUsage: odrive_can [OPTIONS] COMMAND [ARGS]...

Options:
--help  Show this message and exit.

Commands:
backup   Backup config to config folder
demo     demonstration of control modes
info     Print package info
inspect  Inspect and decode ODrive CAN messages
mock     Mock ODrive CAN interfaceUsing virtual devicescreate a virtual can adapter (seedocs)in first terminal runodrive_can mockin second terminal runodrive_can inspect vcan0Position control demoodrive_can demo position --interface vcan0Live plotting dataDemo scripts send data asjsontoudp://localhost:5005.
This data can be visualized withplotjuggler(sender code is found intools.UDP_Client)DevelopmentVirtual environmentcreate virtual envrionment withmake venvDevcontainerdockerfolder contains devcontainer environment..devcontaineris VSCode devcontainer environmentSupportcommercial support is available throughwww.roxautomation.com
Package: odroid-wiringpi
This is an unofficial port of Gordon’s WiringPi library. Please do not
email Gordon if you have issues, he will not be able to help.For support, comments, questions, etc please join the WiringPi Discord
channel:https://discord.gg/SM4WUVGWiringPi for PythonWiringPi: An implementation of most of the Arduino Wiring functions for
the Raspberry Pi.WiringPi implements new functions for managing IO expanders.Quick InstallThe library is packaged on PyPI and can be installed with pip:pip installodroid-wiringpiUsageimportodroid_wiringpiaswiringpi# One of the following MUST be called before using IO functions:wiringpi.wiringPiSetup()# For sequential pin numbering# ORwiringpi.wiringPiSetupSys()# For /sys/class/gpio with GPIO pin numbering# ORwiringpi.wiringPiSetupGpio()# For GPIO pin numberingGeneral IO:wiringpi.pinMode(6,1)# Set pin 6 to 1 ( OUTPUT )wiringpi.digitalWrite(6,1)# Write 1 ( HIGH ) to pin 6wiringpi.digitalRead(6)# Read pin 6Setting up a peripheral:WiringPi supports expanding your range of available “pins” by setting up
a port expander. The implementation details of your port expander will
be handled transparently, and you can write to the additional pins
(starting from PIN_OFFSET >= 64) as if they were normal pins on the Pi.wiringpi.mcp23017Setup(PIN_OFFSET,I2C_ADDR)This example was tested on a quick2wire board with one digital IO
expansion board connected via I2C:wiringpi.mcp23017Setup(65,0x20)wiringpi.pinMode(65,1)wiringpi.digitalWrite(65,1)Soft Tone:Hook a speaker up to your Pi and generate music with softTone. Also
useful for generating frequencies for other uses such as modulating A/C.wiringpi.softToneCreate(PIN)wiringpi.softToneWrite(PIN,FREQUENCY)Bit shifting:wiringpi.shiftOut(1,2,0,123)# Shift out 123 (b1110110, byte 0-255) to data pin 1, clock pin 2Serial:serial=wiringpi.serialOpen('/dev/ttyAMA0',9600)# Requires device/baud and returns an IDwiringpi.serialPuts(serial,"hello")wiringpi.serialClose(serial)# Pass in IDSPI:ThewiringPiSPIDataRW()function needs to be passed abytesobject in Python 3. In Python 2, it takes a string. The following should
work in either Python 2 or 3:wiringpi.wiringPiSPISetup(channel,speed)buf=bytes([yourdatahere])retlen,retdata=wiringpi.wiringPiSPIDataRW(0,buf)Now,retlenwill contain the number of bytes received/read by the
call.retdatawill contain the data itself, and in Python 3,bufwill have been modified to contain it as well (that won’t happen in
Python 2, because thenbufis a string, and strings are immutable).Full details of the API at:http://www.wiringpi.comManual BuildGet/setup repogitclone--recursivehttps://github.com/WiringPi/WiringPi-Python.gitcdWiringPi-PythonDon’t forget the--recursive; it is required to also pull in the
WiringPi C code from its own repository.PrerequisitesTo rebuild the bindings youmustfirst have installedswig,python-dev, andpython-setuptools(or theirpython3-equivalents). WiringPi should also be installed system-wide for access
to thegpiotool.sudoapt-getinstallpython-devpython-setuptoolsswigwiringpiBuild & install withsudo python setup.py installOr Python 3:sudo python3 setup.py install
Package: ods
Open data studio python clientOpen data studiois a managed computing service on Staroid. Run your machine learning and large scale data processing workloads without managing clusters and servers.This repository provides a python client library.
Currently, the following computing frameworks are supported in the library.Apache SparkDask (coming soon)Ray (coming soon)Let's get started!Quick startInstallpip install odsPython3.6,3.7,3.8are supported.InitializeLogin staroid.com and get anaccess token. And set theSTAROID_ACCESS_TOKENenvironment variable. Seeherefor more detail.Login staroid.com and create a SKE (Star Kubernetes engine) cluster.importods# 'ske' is the name of kubernetes cluster created from staroid.com.# Alternatively, you can set the 'STAROID_SKE' environment variable.ods.init(ske="kube-cluster-1")SparkQuick start videoCreate spark sessionCreate a spark session with the default configuration.
You don't need to install/configure spark manually.importodsspark=ods.spark("spark-1").session()# 'spark-1' is name of spark-serverless instance to create.df=spark.createDataFrame(....)Configure initial number of worker nodesimportodsspark=ods.spark("spark-1",worker_num=3).session()df=spark.createDataFrame(....)detal=Trueto automatically download & configure delta lakeimportodsspark=ods.spark("spark-delta",delta=True).session()spark.read.format("delta").load(....)passspark_confdictionary for additonal configurationimportodsspark=ods.spark(spark_conf={"spark.hadoop.fs.s3a.access.key":"...","spark.hadoop.fs.s3a.secret.key":"..."}).session()configure spark versionimportodsspark=ods.spark(spark_version="3.0.1").session()Currently, spark3.0.1,3.0.0are supported.Checktests/test_spark.pyfor complete working example.DaskComing soon 🚛importodscluster=ods.dask("dask-1",worker_num=10)fromdask.distributedimportClientclient=Client(cluster)RayComing soon 🚛importodsods.ray(cluster_name="")Get involvedOpen data studio is an open source project. Please give us feedback and feel free to get involved!Feedbacks, questions -ods issue trackerStaroid public dev roadmapCommercial supportStaroidactively contributes to Open data studio and provides commercial support. Pleasecontact.