semvec/pypi-packages huggingface dataset:
pyfunc-invoker 0.0.1
Python function invoker
Requires Python: >=3.6

# PyFunc

This package provides a mechanism to write Function-as-a-Service style code in
Python for handling HTTP events, including CloudEvents delivered via HTTP.

This framework is primarily intended to work with
[Knative](https://knative.dev/), but also works to provide a generic server for
handling CloudEvents over HTTP (e.g. from Kubernetes or on a local machine).

The framework uses reflection to find a suitable function to wrap; it should not
be necessary to import any of the following modules in your own code unless you
want (e.g. for type definitions):

- `pyfunc` (this module; on PyPi as `pyfunc`)
- `flask`
- `cloudevents`

Instead, simply ensure that you have a single non-`_` prefixed function which
uses some combination of the following:

- HTTP request arguments (named `req`, `request`, `body`, `headers` or of the
  `flask.Request` type)
- CloudEvent arguments (named `event`, `payload`, `data`, `attributes` or of the
  `cloudevents.sdk.event.v1.Event` type)

Usage:

```python
import logging
from typing import Any

counter = 0

def handler(data: Any, attributes: dict, req: Any):
    global counter
    counter = counter + 1

    logging.info(f"Got data: {data}")
    logging.info(f"From {req.origin}, my {counter}th request!")

    attributes["type"] = "com.example.reply"
    attributes["datacontenttype"] = "text/plain"

    return attributes, "It's a demo"

```

### Usage

To check the current working directory for a module called `handler` and function `handler`:
```
python -m pyfunc
```

To check the current working directory for a module called `myhandler` and function `func`:
```
PYTHON_HANDLER=myhandler.func python -m pyfunc
```

To check a specific directory `./myfuncs/http/` for a module called `handler` and function `handler`:
```
python -m pyfunc ./myfuncs/http/
```

To check a specific directory `./myfuncs/http/` for a module called `myhandler` and function `func`:
```
PYTHON_HANDLER=myhandler.func python -m pyfunc ./myfuncs/http/
```
mystdscl 0.1
this is my standardscaler

# about
this a simple package which is take only DataFrame or numpy array and give the output StandardScaler

## installation
'''pip install mystd'''

##Modules
there is one modules in the package 'mystd'.
In mystd module there is two function.
1. std
2. myshape

## How to use it?
Open terminl

type 

'''mystd.std(df)'''

This is take pandas DataFrame or Numpy array and return the StandardScaler

'''mystd.myshape(df)'''

this is take a pandas dataFrame or numpy array and return the shape

## License

Copyright 2021 Bibekananda Nayak


Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
mystdsl 0.1
this is my standardscaler

# about
this a simple package which is take only DataFrame or numpy array and give the output StandardScaler

## installation
'''pip install mystd'''

##Modules
there is one modules in the package 'mystd'.
In mystd module there is two function.
1. std
2. myshape

## How to use it?
Open terminl

type 

'''mystd.std(df)'''

This is take pandas DataFrame or Numpy array and return the StandardScaler

'''mystd.myshape(df)'''

this is take a pandas dataFrame or numpy array and return the shape

## License

Copyright 2021 Bibekananda Nayak


Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.