semvec/pypi-packages huggingface dataset:
pyfris 0.0.2
FRIS Python API
Requires Python: >=3.8
Keywords: api, flanders, fris, information, pyfris, python, research, soap, space

# pyfris

pyfris is a Python API that allows you to interact with the SOAP API server of the Flanders Research Information Space (FRIS).

## Installation

You can install pyfris using pip:

```
pip install pyfris
```

## Requirements

- Python 3.8 or higher
- Required packages: requests, bs4

## Usage

Here's a quick example of how to use pyfris:

```python
from pyfris.fris_api import FRIS_API

# Create an instance of the FRIS_API
fris = FRIS_API()

# Search for projects
projects = fris.search_projects("protein", 10)
print(projects)

# Search for publications
publications = fris.search_pubs("protein", 10)
print(publications)

# Get project details
project_id = list(projects.keys())[1]
project_details = fris.get_project(project_id)
print(project_details)

# Get publication IDs for a project
pub_ids = fris.get_pub_ids(project_id)
print(pub_ids)

# Get publication details
publication_details = fris.get_publication(pub_ids[0])
print(publication_details)

# Create a second instance of the FRIS_API
# to see if the VODS data is already cached
fris2 = FRIS_API()
```

## Features

- Search for projects and publications
- Retrieve detailed information about projects and publications
- Get publication IDs associated with a project
- Pretty print XML responses

## API Reference

### FRIS_API

The main class for interacting with the FRIS API.

#### Methods

- `search_projects(query: str, n: int = 10, verbose: bool = False)`: Search for projects given a query.
- `search_pubs(query: str, n: int = 10, verbose: bool = False)`: Search for publications given a query.
- `get_pub_ids(uuid: str, verbose: bool = False)`: Retrieve all publication IDs for a project given its UUID.
- `get_project(uuid: str, verbose: bool = False)`: Retrieve project information given its UUID.
- `get_publication(pub_id: str, verbose: bool=False)`: Retrieve publication information given its ID.
- `ppxml(xml)`: Pretty print XML responses. Only used when verbose=True. Example output snippet below.

![snippet](pretty_print_xml.png?raw=true "Pretty Print XML")

## Testing

To run the tests, use the following command:

```
python -m unittest -v tests/test_fris_api.py
```

## License

This project is licensed under the MIT License.

## Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

## Authors

- H. Görkem Uyanık

## Acknowledgements

This package interacts with the Flanders Research Information Space (FRIS) API. We thank FRIS for providing access to their research information system.
SuSMoST-Monte-Carlo 1.2.19
SUrface Science MOdeling and Simulation Toolkit: Monte Carlo package

Monte Carlo package of the SUrface Science MOdeling and Simulation Toolkit:
https://doi.org/10.1002/jcc.26370
SuSMoST: Surface Science Modeling and Simulation Toolkit, S. S. Akimenko, G. D. Anisimova, A. I. Fadeeva, V. F. Fefelov, V. A. Gorbunov, T. R. Kayumova, A. V. Myshlyavtsev, M. D. Myshlyavtseva, and P. V. Stishenko, Journal of Computational Chemistry, 2020
SuSMoST 1.2.19
SUrface Science MOdeling and Simulation Toolkit

SUrface Science MOdeling and Simulation Toolkit: https://doi.org/10.1002/jcc.26370 SuSMoST: Surface Science Modeling and Simulation Toolkit, S. S. Akimenko, G. D. Anisimova, A. I. Fadeeva, V. F. Fefelov, V. A. Gorbunov, T. R. Kayumova, A. V. Myshlyavtsev, M. D. Myshlyavtseva, and P. V. Stishenko, Journal of Computational Chemistry, 2020
ShieldedPy 1.0.0
A simple library for security tasks like password hashing, token management, and encryption.
Requires Python: >=3.6

# ShieldedPy

`shieldedpy` is a simple library for managing security tasks such as password hashing, token management, and data encryption.

## Installation

You can install `shieldedpy` using pip:

```bash
pip install shieldedpy
```

## Usage

from shielded import SecurityManager

# Initialize SecurityManager
security = SecurityManager(secret_key='your-secret-key')

# Password Handling
hashed_password = security.hash_password('mypassword')
is_valid = security.verify_password(hashed_password, 'mypassword')

# Token Management
token = security.create_token({'user_id': 123})
data = security.validate_token(token)

# Encryption/Decryption
encrypted_data = security.encrypt('sensitive data')
decrypted_data = security.decrypt(encrypted_data)
ezpkl 0.2.0
lovely pickling🥒 for context manager hater👊
Requires Python: >=3
Keywords: pickle, file, easy, easypickle

# EZPKL: lovely pickling🥒 for context manager hater👊

 [![PyPI version](https://badge.fury.io/py/ezpkl.svg)](https://badge.fury.io/py/ezpkl) [![Python Downloads](https://static.pepy.tech/badge/ezpkl)](https://pepy.tech/project/ezpkl)

<h4 align="center">
    <p>
        English |
        <a href="https://github.com/yesinkim/ezpkl/blob/main/README_ko.md">한국어</a>
    </p>
</h4>

![EZPKL character](https://raw.githubusercontent.com/yesinkim/ezpkl/main/assets/banner.png)
I hate `with open(file_path) as file...` and I don't want to google `how to save pickle in python` anymore. 
then, i made it.

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install ezpkl.

```bash
pip install ezpkl
```

## Usage

### Save Object to pkl

```python
from ezpkl import save_pkl

a = [1, 2, 3, 4, 5]

# 'a.pkl' will be saved in the current directory.
save_pkl(var=a)

# 'a_list_temp.pkl' will be saved in the current directory.
save_pkl(var=a, file_name='a_list_temp')
```

### Load Object

```python
from ezpkl import load_pkl

a = load_pkl('a.pkl')
```

### Save Object to txt

```python
from ezpkl import save_txt

a = [1, 2, 3, 4, 5]

# 'a.txt' will be saved in the current directory.
save_txt(data=a)

# 'a_list_temp.txt' will be saved in the current directory.
save_txt(data=a, file_name='a_list_temp')
```

### Load Object

```python
from ezpkl import load_txt

a = load_txt('a.txt')
```

### Save List Object to txt with separator

```python
from ezpkl import save_txt

a = ["apple", "banana", "cherry"]

# 'a.txt' will be saved in the current directory with newline separator (default).
save_txt(data=a)
# a.txt file content:
# apple
# banana
# cherry

# 'a_list_temp.txt' will be saved in the current directory with space separator.
save_txt(data=a, file_name='a_list_temp', separator=' ')
# a_list_temp.txt file content:
# apple banana cherry

# 'a_list_temp.txt' will be saved in the current directory without separator.
save_txt(data=a, file_name='a_list_temp', separator=None)
# a_list_temp.txt file content:
# applebananacherry
```

## License

[MIT](https://choosealicense.com/licenses/mit/)