semvec/pypi-packages huggingface dataset:
pfmongo 0.9.900
A mongodb (portable) "pf" client
License: MIT

pfmongo
=======

.. image:: https://badge.fury.io/py/pfmongo.svg
    :target: https://badge.fury.io/py/pfmongo

.. image:: https://travis-ci.org/FNNDSC/pfmongo.svg?branch=master
    :target: https://travis-ci.org/FNNDSC/pfmongo

.. image:: https://img.shields.io/badge/python-3.5%2B-blue.svg
    :target: https://badge.fury.io/py/pfmongo

.. contents:: Table of Contents


Quick Overview
--------------

``pfmongo`` is a python client/module (CLI and API) for simplifying the interaction with a MongoDB. The module provides some *idiosyncratic* abstractions that are nonetheless hoped to be logically straightforward. The repository includes a ``docker-compose.yml`` that allows for easy instantiation of the MongoDB infrastructure.

Warning, Will Robinson!
-----------------------

If you wish to use ``pfmongo`` on your own computer, you do need to note these prerequisites:

``docker`` and ``docker-compose``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Since ``pfmongo`` interacts with a MongoDB, the easiest mechanism to deploy this database is via ``docker-compose`` and hence ``docker``. Installation of these is beyond the scope of this document, but should be straightforward enough. Google is your friend in that quest.


Overview
--------

``pfmongo`` provides a somewhat opinionated abstraction for interacting with a MongoDB.


Installation
------------

Using ``PyPI``
~~~~~~~~~~~~~~

The best method of installing this script and all of its dependencies is by fetching it from PyPI using `a python virtual environment <https://medium.com/swlh/how-to-setup-your-python-projects-1eb5108086b1>`_.

.. code:: bash

        pip3 install pfmongo

Using CLI
~~~~~~~~~

Alternatively, from a cloned version of the repository:

.. code:: bash

        pip3 install -r requirements.txt -U ./

or for development purposes

.. code:: bash

        pip3 install -r requirements.txt -e ./


Running
-------

Ecosystem
~~~~~~~~~

Assuming you have `docker` and `docker-compose` on your system, do

.. code:: bash

    docker-compose up -d

Environment
~~~~~~~~~~~

Several environment variables need to be set prior to using ``pfmongo``:

Linux
^^^^^

.. code:: bash


    export MD_URI=mongodb://localhost:27017 && export MD_USERNAME=admin && export MD_PASSWORD=admin && export MD_SESSIONUSER=rudolph

Windows
^^^^^^^

.. code:: bash

    $env:MD_USERNAME=admin
    $env:MD_PASSWORD=admin
    $env:MD_URI=mongodb://localhost:27017
    $env:MD_SESSIONUER=rudolph


Command line arguments
----------------------

.. code:: console

    pfmongo --help


Examples
--------

.. code:: bash

  alias mdb='pfmongo'
  mdb database connect PACSDCM
  mdb collection connect MRN
  mdb document add --file examples/lld.json --id lld.json


*-30-*
pyprotostuben 0.3.4
Generate Python MyPy stub modules from protobuf files.
License: MIT
Requires Python: <4.0,>=3.9
Keywords: python, codegen, protobuf, grpc

# pyprotostuben

[![Latest Version](https://img.shields.io/pypi/v/pyprotostuben.svg)](https://pypi.python.org/pypi/pyprotostuben)
[![Python Supported Versions](https://img.shields.io/pypi/pyversions/pyprotostuben.svg)](https://pypi.python.org/pypi/pyprotostuben)
[![MyPy Strict](https://img.shields.io/badge/mypy-strict-blue)](https://mypy.readthedocs.io/en/stable/getting_started.html#strict-mode-and-configuration)
[![Test Coverage](https://codecov.io/gh/zerlok/pyprotostuben/branch/main/graph/badge.svg)](https://codecov.io/gh/zerlok/pyprotostuben)
[![Downloads](https://img.shields.io/pypi/dm/pyprotostuben.svg)](https://pypistats.org/packages/pyprotostuben)
[![GitHub stars](https://img.shields.io/github/stars/zerlok/pyprotostuben)](https://github.com/zerlok/pyprotostuben/stargazers)

Generate Python modules from protobuf files.

## usage

[pypi package](https://pypi.python.org/pypi/pyprotostuben)

install with your favorite python package manager

```bash
pip install pyprotostuben
```

Then use protoc plugins to generate python code. See [greeting examples](examples/greeting/README.md) for more info.

## protoc plugins

### protoc-gen-mypy-stub

Generates python stubs (`*_pb2.pyi` & `*_pb2_grpc.pyi` files which then used by MyPy type checker / IDE syntax highlits
& suggestions).

**features:**

* choose message structure immutability / mutability
* choose async / sync grpc module stubs
* grpc servicer abstract methods have full signature (with appropriate type args in generics), thus it is easier to
  implement methods in IDE

**plugin options:**

* `message-mutable` -- add setters for fields, use mutable containers
* `message-all-init-args-optional` -- each field is optional in message constructor (even if field is not optional)
* `grpc-sync` -- use sync grpc stubs instead of grpc.aio module and async defs
* `grpc-skip-servicer` -- don't generate code for servicers
* `grpc-skip-stub` -- don't generate code for stubs
* `no-parallel` -- disable multiprocessing
* `debug` -- turn on plugin debugging

### protoc-gen-brokrpc

Generates `*_brokrpc.py` modules for [BrokRPC](https://github.com/zerlok/BrokRPC) framework. This is similar to gRPC
codegen (`*_pb2_grpc.py` modules).

**plugin options:**

* `no-parallel` -- disable multiprocessing
* `debug` -- turn on plugin debugging

### protoc-gen-echo

Saves protoc plugin input to a file. Helps develop protoc plugins.

**plugin options:**

* `format={raw|binary|json}` (default = `raw`) -- specify output format
* `dest={path}` (default = `request.json`) -- specify file destination
pypricingchain 0.2.10
Pybacktestchain was cool, but it was missing a pricing feature ...
License: MIT
Requires Python: <4.0,>=3.11

# pypricingchain

pybacktestchain was cool, but it was missing a pricing feature ...

## Installation

```bash
$ pip install pypricingchain
```

## Usage

pypricing is a package built on top of pybacktestchain, meaning that all the functionalities are still available for use here. pypricingchain leverages several functionalities previously developed, and adds the possibility to price autocallable equity products, using a user-friendly interface developed with Streamlit. The package offers an interesting opportunity to price simultaneously 2 products with different features. Alongside the difference in prices, a visual understanding of these differences is made available by displaying the simulated trajectories used for the pricings, making it visually easy to explain pricing differences depending on pricing inputs.

To use my package, create a python file (i.e. name.py) containing the following lines

```python
from pypricingchain.launch_app import launch_app

if __name__ == "__main__":
    launch_app()
```

then type the following command in a terminal (make sure the terminal is in the same file directory as name.py)

### Important: Make sure you verify the YahooFinance tickers to make sure the pricing runs smoothly.

```bash
$ streamlit run name.py
```

## Contributing

Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.

## License

`pypricingchain` was created by Louis Schiele. It is licensed under the terms of the MIT license.

## Credits

`pypricingchain` was created with [`cookiecutter`](https://cookiecutter.readthedocs.io/en/latest/) and the `py-pkgs-cookiecutter` [template](https://github.com/py-pkgs/py-pkgs-cookiecutter).