semvec/pypi-packages huggingface dataset:
portfolio-analysis-library 0.0.8
#WIP: Analysing Stock Returns & Constructing Portfolios with Python
Requires Python: >=3.6

# Portfolio-Analysis-Library (PAL)

## WORK IN PROGRESS (WIP)

## Usage:
```
pip install portfolio-analysis-library
```

in python:
```
import pal
import pandas as pd

portfolio = pal.Portfolio(pd.Series([0.2, 0.3, -0.1, 0.2, -0.5]), 12)
portfolio.get_annual_sharpe(risk_free_rate=0.02)
print(portfolio.annual_sharpe)
```

## Development
```bash
pip install -r .[dev]
```
bayfile 1.0.2
upload and download to bayfile server
Requires Python: >=3
Keywords: bayfiles,bayfiles-api,bayfiles-cli,anonymous,upload,anonfile,anonfile-api,anonfile-cli

# bayfiles-upload-script
An upload and download script for bayfiles.com made in python. Supports multiple files.

 [![PyPI version](https://badge.fury.io/py/bayfile.svg)](https://pypi.org/project/bayfile/)
 [![Downloads](https://pepy.tech/badge/bayfile/month)](https://pepy.tech/project/bayfile)
 [![Downloads](https://static.pepy.tech/personalized-badge/bayfile?period=total&units=international_system&left_color=green&right_color=blue&left_text=Total%20Downloads)](https://pepy.tech/project/bayfile)
 ![GitHub Contributors](https://img.shields.io/github/contributors/redevil1/bayfiles)
 ![GitHub commit activity](https://img.shields.io/github/commit-activity/m/redevil1/bayfiles)
 ![GitHub last commit](https://img.shields.io/github/last-commit/redevil1/bayfiles)
 ![Python 3.6](https://img.shields.io/badge/python-3.6-yellow.svg)


## Installation

```sh
pip3 install bayfile
```

## Usage 
```sh
bayfile up {path-to-file_1} {path-to-file _2} ...  # upload file to bayfiles server
bayfile d {url1} {url2} ...              # download file 
```
vulfocus 0.0.2
The Api for vulfocus

# vulfocus-py

[![GitHub (pre-)release](https://img.shields.io/github/release/fofapro/vulfocus-py/all.svg)](https://github.com/fofapro/vulfocus-py/releases) [![stars](https://img.shields.io/github/stars/fofapro/vulfocus-py.svg)](https://github.com/fofapro/vulfocus-py/stargazers) [![license](https://img.shields.io/github/license/fofapro/vulfocus-py.svg)](https://github.com/fofapro/vulfocus-py/blob/master/LICENSE)

[Chinese document](https://github.com/fofapro/vulfocus-py/blob/master/README_zh.md)

## Vulfocus API

[`Vulfocus API`](https://fofapro.github.io/vulfocus/#/VULFOCUSAPI) is the `RESUFul API` interface provided by [`Vulfocus`](http://vulfocus.io/) for development, allowing Developers integrate [`Vulfocus`](http://vulfocus.io) in their own projects.

## Vulfocus SDK

The `Python` version of `SDK` written based on the [`Vulfocus API`](https://fofapro.github.io/vulfocus/#/VULFOCUSAPI) makes it easy for `Python` developers to quickly integrate [`Vulfocus`](http://vulfocus.io/)  into their projects.

## Install

pip install vulfocus

## USE

|field|description|
| ---- | ---- |
|`username`|User login [`Vulfocus`](http://vulfocus.io/) userbox `username`|
|licence|Please go to the [`personal center`](http://vulfocus.fofa.so/#/profile/index) to view `API licence`|

### Pull Images

```python
from vulfocus.vulfocusClient import VulfocusClient
clinet = VulfocusClient(username="xxxx",licence="xxxxxx")
images = clinet.get_images()
print(images)
```

#### Response

ImageEntity(image_name='vulfocus/webmin-cve_2020_35606:latest', image_vul_name='Webmin 命令执行漏洞 （CVE-2020-35606）', image_desc='Webmin是Webmin社区的一套基于Web的用于类Unix操作系统中的系统管理工具。\nWebmin 1.962版本及之前版本存在安全漏洞，该漏洞允许执行任意命令。任何被授权使用Package Updates模块的用户都可以使用根权限通过包含和的向量执行任意命令。\n账户密码：root:password')

### Start

```python
from vulfocus.vulfocusClient import VulfocusClient
clinet = VulfocusClient(username="xxxxx",licence="xxxxxxx")
images = clinet.get_images()
print(clinet.start_container(images[0].get_image_name()))
```

#### Response

HostEntity(host=x.x.x.x:57581,port={'10000': '57581'})

### Stop

```python
from vulfocus.vulfocusClient import VulfocusClient
clinet = VulfocusClient(username="xxx",licence="xxxxx")
images = clinet.get_images()
print(clinet.stop_container(images[0].get_image_name()))
```

#### Response

停止成功

### Delete

```python
from vulfocus.vulfocusClient import VulfocusClient
clinet = VulfocusClient(username="xxx",licence="xxxxx")
images = clinet.get_images()
print(clinet.delete_container(images[0].get_image_name()))
```
#### Response

删除成功

## Update Log

2021-11-29

```
Release
```
palib 0.0.3
PA-Lib, i.e: Portfolio Analysis Library, is built for Analysing Stock Returns & Constructing Portfolios with Python
Requires Python: >=3.6

# Portfolio-Analysis-Library (PA-Lib)

## WORK IN PROGRESS (WIP)

## Usage:
```
pip install palib
```

in python:
```
import palib
import pandas as pd

portfolio = palib.Portfolio(pd.Series([0.2, 0.3, -0.1, 0.2, -0.5]), 12)
portfolio.get_annual_sharpe(risk_free_rate=0.02)
print(portfolio.annual_sharpe)
```

## Development
```bash
pip install -r .[dev]
```
filesculpt 0.0.6
Abstraction of Regex find and replace on a file
Requires Python: >=3.6

# File Sculpt

![example workflow](https://github.com/juansantosgomez/filesculpt/actions/workflows/python-publish.yml/badge.svg)
![example workflow](https://github.com/juansantosgomez/filesculpt/actions/workflows/test-python-publish.yml/badge.svg)

##### current version: v0.0.6

This python module abstracts finding and replacing certain portions of a file through regular expressions. It is a class that creates abstraction of the inner workings of opening and closing a file when finding and replacing its contents.

##### REQUIREMENTS:

- Python v3.9
- pip

##### INSTALLATION:

On your command line inside your project directory type the following:

```
pip install filesculpt
```

##### USAGE:

Importing to your code:

```
from fileSculpt.filesculpt import Sculptfile
```

##### EXAMPLE:

Given a file `foo.txt` containing the text "A quick brown fox jumps under the lazy dog.", we want the text to become "_The_ quick brown fox jumps _over_ the lazy dog"and save it to another file, `foorect.txt`.

```
from fileSculpt.filesculpt import Sculptfile

a = Sculptfile(r'^A(.+)under(.+)',["The",0,"over",1],'foo.txt','foorect.text')
a.sculpt()
```

##### CLASS DEFINITION:

This is how the Sculptfile object is defined:

```
Sculptfile( tofind : re , replacewith : list, inpath : str, outpath : str)
```

###### CLASS ARGUMENTS:

- **tofind** - is of type re or regular expression which is used to find/define portions of the file to be replaced with

  > See https://docs.python.org/3/howto/regex.html for more info on regular expressions

- **replacewith** - is a list that should contain either a string or an integer. This list will be rendered in ascending order as replacement for the objects found through regex. An integer refers to the grouping order in a regex query.

  - ##### For example:

    If a file contains 'The quick brown fox' and after regex operations (quick,fox) is obtained, The file's contents can be replaced by assigning a replacewith list formatted as ["A ",0," yellow ",1]. The integers' 0 and 1 represent quick and fox, and when rendered 'A quick yellow fox' is obtained

- **inpath** - is a string filepath for the file to be read

- **outpath** - is an optional string filepath for the file to be written after operations are done. If not specified the inpath is set as the outpath and changes will overwrite the file.

##### CLASS METHODS:

- **scuttle()** - opens the file specified by inpath as read and returns the regular expression findall() list of the tofind argument

- **sculpt()** - executes the scuttle method and then executes the replacement specified by replacewith. Writes the result to the file specified in outpath