semvec/pypi-packages huggingface dataset:
crypto-compare 0.0.1
Wrapper for CryptoCompare.com public API
License: MIT
Keywords: crypto cryptocurrency wrapper cryptocompare crypto_compare

# crypto_compare

CryptoCompare.com API client for Python

## Folder/code structure

The code is written such that all the methods are available as instance methods in `Client` class, but grouped them in diff. modules under `apis` module to keep the code readable. All these module methods are imported inside the class `Client`.

```
|_ crypto_compare
|__ client.py -- This is the main client class which has all the public methods
|__ apis
|___ average.py - methods for average APIs
|___ coin.py - methods for coin APIs
|___ helper.py - helper methods
|___ histo.py - methods for histo APIs
|___ mining.py - methods for mining APIs
|___ price.py - methods for pricing APIs
|___ subs.py - methods for subs APIs
|___ top.py - methods for top data APIs
|___ uncategorized.py - other API methods


```

## Usage

1. Install it using pip

``` shell
pip install crypto_compare

```
2. Use it as following
``` python

import crypto_compare

crypto_compare_client = crypto_compare.Client() #Create an instance and call any public API method!
crypto_compare_client.coin_list()
crypto_compare_client.coin_snapshot('BTC', 'USD')

```

## API docs

### Coin methods
1. `coin_list()`
2. `coin_snapshot_full_by_id(coin_id)`
3. `coin_snapshot(fsym, tsym)`

### Price methods
4. `price(**kwargs) - fsym and tsyms are mandatory as named arguments`
5. `price_multi(**kwargs) - fsyms and tsyms are mandatory as named arguments`
6. `price_multifull(**kwargs) - fsyms and tsyms are mandatory as named arguments`
7. `price_historical(**kwargs) - fsym and tsyms are mandatory as named arguments`

### Average methods
8. `generate_avg(**kwargs) - fsym, tsym and markets are mandatory as named arguments`
9. `day_avg(**kwargs) - fsym and tsym are mandatory as named arguments`

### Subs methods
10. `subs_watchlist(**kwargs) - fsyms and tsym are mandatory as named arguments`
11. `subs(**kwargs) - fsym is mandatory as named argument`

### Top Data methods
12. `top_exchanges(**kwargs) - fsym and tsym are mandatory as named arguments`
13. `top_volumes(**kwargs) - tsym is mandatory as named argument`
14. `top_pairs(**kwargs) - fsym and tsym are mandatory as named arguments`

### Histo methods
15. `histo_day(**kwargs) - fsym and tsym are mandatory as named arguments`
16. `histo_hour(**kwargs) - tsym is mandatory as named argument`
17. `histo_minute(**kwargs) - fsym and tsym are mandatory as named arguments`

### Mining methods
18. `mining_contracts()`
19. `mining_equipment()`

### Other methods
20. `all_exchanges(**kwargs)`
21. `social_stats(coin_id)`

## ToDo

1. Add tests
pyscales 1.0.2
Simple arithmetic on musical notes
License: MIT
Keywords: music scales notes midi

Pyscales
========

This module provides representations for musical notes and intervals in the
basic 12-note even tempered system that is typically used in western music. It
provides basic arithmetic and conversion to and from midi numbers.


Classes, Functions and Definitions
----------------------------------

This module provides the following classes:

``Note``: represents a musical note

``Interval``: represents the interval between two notes


It also provides the following utility functions:

``get_midi_number(note_string)`` -> midi number

``in_chord(note, root, chord)`` -> boolean


The following intervals are predefined:

::

    P1 = unison = Interval(0)
    m2 = semitone = Interval(1)
    M2 = Interval(2)
    m3 = Interval(3)
    M3 = Interval(4)
    P4 = Interval(5)
    aug4 = dim5 = Interval(6)
    P5 = Interval(7)
    m6 = Interval(8)
    M6 = Interval(9)
    m7 = Interval(10)
    M7 = Interval(11)
    P8 = octave = Interval(12)


The following chord types are predefined:

::

    MAJOR = (unison, M3, P5)
    MINOR = (unison, m3, P5)
    SEVENTH = (unison, M3, P5, m7)


Examples
--------

Some examples of use:

::

    >>> Note('c') - Note('a-2')
    Interval(16)
    >>> Note('c') + M3
    Note(64)
    >>> (Note('c3') + P5).get_note_string()
    'G3'
    >>> in_chord(Note('c5'), Note('a'), MINOR)
    True
    >>> in_chord(Note('c5'), Note('a'), MAJOR)
    False


Installing
----------

To install pyscales, use ``pip install pyscales``.