semvec/pypi-packages huggingface dataset:
pydbtcloud 0.0.3
Python SDK for dbt Cloud.
License: MIT
Requires Python: >=3.7
Keywords: dbt

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Python 3.7](https://upload.wikimedia.org/wikipedia/commons/f/fc/Blue_Python_3.7_Shield_Badge.svg)](https://www.python.org/downloads/release/python-370/)

# py-dbt-cloud
pydbtcloud is a developer kit for interfacing with the [dbt Cloud v2 API](https://app.swaggerhub.com/apis-docs/Sinter/api_v2/2.0.0a1#/) on Python 3.7 and above.

# Installation

```bash
pip install pydbtcloud
```

# Authentication

```python
from pydbtcloud import DbtCloud
dbtcloud = DbtCloud(account_id='account_id', api_token='api_token')
```

# Example Usage

Get information about a specific dbt cloud job:

```python
response = dbtcloud.get_job(1234)
```

You can iterate through pages using the following syntax:

```python
for page in dbtcloud.list_runs():
  for run in page.get('data'):
    print(run.get('id'))
```
BatAlgorithm 0.3.1
Bat algorithm implementation
License: MIT

# Bat Algorithm in Python

## Objective
The main objective is to create an implementation of bat algorithm in Python programming language.

## Installation

    pip install BatAlgorithm

### Example
The following example presents a simple use of bat algorithm. `Fun()` denotes the objective function that may be changed by the user. Control parameters should be defined within `BatAlgorithm()` constructor. Order of parameters is as
follows: `BatAlgorithm(D, NP, N_Gen, A, r, Qmin, Qmax, Lower, Upper, function)` where:

- `D`  denotes dimension of the problem,
- `NP` denotes population size,
- `N_Gen`  denotes number of generations (iterations),
- `A` parameter denotes loudness,
- `r` parameter denotes pulse rate,
- `Qmin` parameter denotes frequency minimum,
- `Qmax` parameter denotes frequency maximum,
- `Lower` denotes lower bound,
- `Upper` denotes upper bound and
- `function` passes objective function.

## CODE EXAMPLE:

```python
import random
from BatAlgorithm import *

def Fun(D, sol):
    val = 0.0
    for i in range(D):
        val = val + sol[i] * sol[i]
    return val

# For reproducive results
#random.seed(5)

for i in range(10):
    Algorithm = BatAlgorithm(10, 40, 1000, 0.5, 0.5, 0.0, 2.0, -10.0, 10.0, Fun)
    Algorithm.move_bat()
```

## Bugs
Bugs and extension should be send via Github.

## Authors
Iztok Fister Jr. and Marko Burjek

## References

Yang, X.-S. "A new metaheuristic bat-inspired algorithm." Nature inspired cooperative strategies for optimization (NICSO 2010). Springer
Berlin Heidelberg, 2010. 65-74.

Fister, I. Jr., Fister, I., Yang, X.-S., Fong, S., Zhuang, Y. "Bat algorithm: Recent advances." IEEE 15th International Symposium on Computational Intelligence and Informatics (CINTI), IEEE, 2014. 163-167.