semvec/pypi-packages huggingface dataset:
vedro-import-profiler 0.0.2
Import profiler for Vedro framework
License: Apache-2.0
Requires Python: >=3.8

# Vedro Import Profiler

Vedro Import Profiler allows you to profile your imports in [Vedro](https://vedro.io) projects, helping you identify and optimize import statements for better performance.

## Installation

To get started, you first need to install the [vedro-import-profiler](https://pypi.org/project/vedro-import-profiler/) plugin. Open your terminal and run the following command:

```shell
$ pip install vedro-import-profiler
```

## Enabling the Plugin Temporarily

Once installed, you can temporarily enable the Vedro Import Profiler for your current session. Additionally, you may need to disable the `assert_rewriter` plugin to avoid conflicts. Run these commands in your terminal:

```shell
$ vedro plugins enable vedro-import-profiler
$ vedro plugins disable vedro.plugins.assert_rewriter
```

## Running the Profiler

To run the profiler and generate a log of your import times, use the command below. Make sure to prepend `PYTHONPROFILEIMPORTTIME=yes` to capture the necessary data:

```shell
$ PYTHONPROFILEIMPORTTIME=yes vedro run --vedro-import-profiler 2> import.log
```

## Visualizing Import Times

After running the profiler, you can visualize the import times using the [tuna](https://github.com/nschloe/tuna) viewer. Tuna provides an intuitive interface for analyzing the performance of your imports. To use Tuna with your generated log file, execute the following command:

```shell
$ tuna import.log
```
pyprotonrebar 0.0.1
Interact with the RackN Digital Rebar API
License: Apache-2.0
Requires Python: >=3.8

========
Overview
========

Interact with the RackN Digital Rebar API (in a way that's useful *to
us*).

* Free software: Apache Software License 2.0

Installation
============

::

    pip install pyprotonrebar

You can also install the in-development version with::

    pip install git+ssh://git@github.com/ProtonMail/pyprotonrebar.git@main

Documentation
=============


While primarily intended as common code for
https://github.com/ProtonMail/proton.rackndr, it can also be used as is.

For example, to use the project to create a new Param:

.. code-block:: python

    import pyprotonrebar.pyrackndr
    TOKEN = pyprotonrebar.pyrackndr.fetch_token_requests(
        'superuser',
        'user:pass',
        'https://localhost:8092')
    AUTH = TOKEN['header']

    rebar_object = pyprotonrebar.pyrackndr.RackNDr(
        'https://localhost:8092',
        AUTH,
        'params')

    data = pyprotonrebar.CONSTANTS['params'].copy()
    data['Description'] = 'new-param description goes here'
    data['Documentation'] = 'new-param documentation goes here'
    data['Name'] = 'new-param'
    data['Secure'] = False
    data['Schema'] = {
      'type': 'string',
      'default': 'hello'
    }

    rebar_object.create(data)


Development
===========

To run all the tests run::

    tox

Note, to combine the coverage data from all the tox environments run:

.. list-table::
    :widths: 10 90
    :stub-columns: 1

    - - Windows
      - ::

            set PYTEST_ADDOPTS=--cov-append
            tox

    - - Other
      - ::

            PYTEST_ADDOPTS=--cov-append tox


Changelog
=========

0.0.0 (2024-02-01)
------------------

* First release on PyPI.