semvec/pypi-packages huggingface dataset:
troj 1.0.0
TrojAI provides the troj Python convenience package to allow users to integrate TrojAI adversarial protections and robustness metrics seamlessly into their AI development pipelines.
Requires Python: >=3.6

# TrojAI Integration Package
TrojAI provides the troj Python convenience package to allow users to integrate TrojAI adversarial protections and robustness metrics seamlessly into their AI development pipelines.

## Installation
Run the following to install:
```python
pip install troj["dev"]
pip install troj["nlp"]
pip install troj["cv"]
```

## Usage
The troj package has support for Image Classification and Object Detection tasks. The notebooks in the demos folder contain examples to get set up on either task using PyTorch or TensorFlow (limited support for now). The test_troj.py file also contains our tests that run on deployment and could also be helpful for understanding our API better.

One more thing is that our package expects specific data formats for now until we can support more formats.
The two formats are described by the following:
```python
'''
ImageNet folder style (Image Classification): 
/train
----/class1
----/class2
...
/test
----/class1
----/class2
...etc 

CoCo annotation style (Object Detection):
/images
----image1.jpg
----image2.jpg
...etc
annotation.json

'''

```

## Examples
Example notebooks for many use cases are contained in the demos folder. If there are errors in the notebook, cross reference the syntax with test_troj.py, the tests will always contain the most updated working version of our packages and the notebooks may lag a bit. 

## Command Line Tool
Troj package use via command line is currently in development. After package install the command line tool can be accessed through the command "troj" which currently takes two arguments, an attacking config file and a user config file to authenticate with our AWS infrastructure. The command line files can be found under trojai/cmd. If you want to run the NLP demo we currently have setup, try out the following command:

```
 troj --c "trojai\cmd\example.json" --a "trojai\cmd\user-config.json"
```
   
## How to develop locally (MOSTLY INTERNAL ONLY)
Here are three commands to run after cloning the repo to install the cloned version to your environment (changes in code will be reflected immediately if using this).
```
pip install wheel
python setup.py bdist_wheel
pip install -e.[dev]
```

## How to build and upload to pypi (INTERNAL ONLY)
Build the package under dist folder using this, will create tar.gz and .whl for version id in setup.py:
```
python -m build
```

Upload it to testpypi repo using this (remove --repository flag to go live, make sure dist only has the files you expect):
```
Dev Package:
    python -m twine upload --repository testpypi dist/*
prod package:
    python -m twine upload dist/*
```

When install from testpypi repo you need this format: pip install --extra-index-url https://test.pypi.org/simple/ package_name_here https://stackoverflow.com/questions/51589673/pip-install-producing-could-not-find-a-version-that-satisfies-the-requirement - otherwise dependency packages wont be looked for on live pypi
slovik 1.0
EZ
Requires Python: >=3.6

# Pypi-uploader
#### Upload your Python libraries to PyPi with a beautiful interface.

</br>

<a href="README_RU.md" ><img src="https://emojio.ru/images/twitter-64/1f1f7-1f1fa.png" width="30" height="30"></img>Читать на Русском</a>
</br></br>

This program is written using the <a href="https://pypi.org/project/PySimpleGUI/">PySimpleGUI</a> library.

Just run <a href="Pypi_uploader.py">Pypi_uploader.py</a> and follow the instructions on the screen.</br>
The program will automatically install the necessary libraries, compile your project into an archive and upload it to Pypi or Test Pypi.</br>
After uploading, program can also clean up all generated files.

#### Important! Selected project folder should contain the ```__init__.py``` file! This is the main file of your library.

#### Folder hierarchy:
```
.../Any_folder_name
     |__Pypi-uploader.py
     |__Your_Project_Folder/
         |__ __init__.py
         |__Other_files... 
```

<img src="Image.png"></img>

#### If you are using api key:

**Username:** ```__token__``` </br>
**Password:** *The token value, including the ```pypi-``` prefix*

### Possible mistakes:
<ul>
<li> Login or password is incorrect (or API token if you uploaded through it). </li>
<li> You signed up for PyPi, and you are trying to upload a project to Test Pypi (or vice versa). </li>
<li> A library with this name already exists. So if this is your library - change the version. </li>
</ul>
cappuccino 0.1.5
Java GC Log Parser written in Python

# Java Garbage Collection parser written in Python
[![PyPI Latest Release](https://img.shields.io/pypi/v/cappucino.svg)](https://pypi.org/project/cappucino/)

## What is it?


**cappuccino** is a Python package that provides a way of parsing Java Garbage Collection Logs.

## Where to get it
The source code is currently hosted on GitHub at:
https://github.com/vidigalp/cappuccino


Binary installers for the latest released version are available at the [Python
Package Index (PyPI)](https://pypi.org/project/cappuccino).

```sh
# or PyPI
pip install cappuccino
```

## How to Run

```python
python cappuccino <input_directory>

gc_log1.log: 100%|██████████| 93842/93842 [00:00<00:00, 146317.63it/s]
gc_log2.log: 100%|██████████| 89468/89468 [00:00<00:00, 147814.29it/s]
gc_log3.log: 100%|██████████| 84950/84950 [00:00<00:00, 148095.09it/s]
gc_log4.log: 100%|██████████| 89549/89549 [00:00<00:00, 147173.26it/s]
gc_log5.log: 100%|██████████| 86187/86187 [00:00<00:00, 147973.24it/s]
                           count      mean       std   min   25%    50%  \
pause_type                                                                
G1 Evacuation Pause      16348.0  0.040432  0.141196  0.00  0.01  0.020   
G1 Humongous Allocation     34.0  0.228824  0.394222  0.03  0.07  0.105   
GCLocker Initiated GC        1.0  0.040000       NaN  0.04  0.04  0.040   
Metadata GC Threshold       15.0  0.024667  0.010601  0.01  0.02  0.020   

                           75%   max  
pause_type                            
G1 Evacuation Pause      0.030  4.58  
G1 Humongous Allocation  0.200  1.74  
GCLocker Initiated GC    0.040  0.04  
Metadata GC Threshold    0.035  0.04  

```

## Dependencies
- [Pandas - pandas is a fast, powerful, flexible and easy to use open source data analysis and manipulation tool, built on top of the Python programming language.](https://pandas.pydata.org)
- [NumPy - Adds support for large, multi-dimensional arrays, matrices and high-level mathematical functions to operate on these arrays](https://www.numpy.org)
- [python-dateutil - Provides powerful extensions to the standard datetime module](https://dateutil.readthedocs.io/en/stable/index.html)
- [pytz - Brings the Olson tz database into Python which allows accurate and cross platform timezone calculations](https://github.com/stub42/pytz)
- [Click - Click is a Python package for creating beautiful command line interfaces in a composable way with as little code as necessary.](https://click.palletsprojects.com/)
- [tqdm - Instantly make your loops show a smart progress meter - just wrap any iterable with tqdm(iterable), and you're done!](https://tqdm.github.io)
ShynaSystemInfo 0.4
Shyna Backend Functionality Package to fetch System information

# Shyna System Information Package

Shyna system info package to fetch all system information

****Suggested: NOT TO USE****

This will be a small package for the shyna back-end process package. This will help to understand which OS and which system architect we are using. The package is still underdevelopment and new features will be added as Shyna's needs increases.

Following dependencies:

* psutil
* setuptools
* wheel
* urllib3
* tabulate
* GPUtil

```
from Shynasysinfo import Shsysinfo

cpu_info = Shsysinfo.CPUInfo()
print(cpu_info.get_cpu_details()) # Returns a dictionary

online_status = Shsysinfo.CheckOnline() 
print(online_status.test_connection()) # Returns True or False

disk_info = Shsysinfo.DiskInfo() 
print(disk_info.get_disk_info()) # Returns a dictionary

mem_info = Shsysinfo.MemoryInfo() 
print(mem_info.get_memory_info()) # Returns a dictionary

boot_info = BootTime()
print(boot_info.get_boot_time()) # Returns a dictionary with below details:
 #{'year': 2020, 'month': 8, 'day': 20, 'hour': 21, 'minute': 26, 'second': 29}
```