semvec/pypi-packages huggingface dataset:
curseforge 1.6.1
A no-compromises wrapper for the CurseForge API
Keywords: CMPDL, Minecraft, Curseforge, API, Wrapper


# Curseforge API

[cfapi]: https://wow.curseforge.com/api
[cfapi-docs]: https://wow.curseforge.com/api/docs
[not-working-cfapi]: https://github.com/Owen-Cochell/cursepy
[cmpdl]: https://github.com/Advik-B/CMPDL

This is a no-compromise CurseForge API wrapper for python. It is a re-write of [cursepy][not-working-cfapi] which is maintained but not actively developed.
This project is a complete re-write of the original project, with a focus on simplicity and ease of use.

This project is still in development, and is not yet ready for production use.
It also speeds up the process by using disk caching, It will cache the response from the API and will only make a new request if the request is not cached.

This, of course can be disabled by setting the cache to False.

## Features

- Simple and easy to use
- Caches responses from the API to disk for faster response times
- Allows direct access to the API via the `fetch` method
- Allows exporting of the objects to DICT, JSON, or YAML
- Can directly parse a manifest file from a curseforge modpack

## Installation

```bash
pip install curseforge
```

## Usage

```python
from curseforge import CurseClient

client = CurseClient("API-KEY", cache=True)

minecraft = client.game(432) # 432 is the ID of Minecraft

# or we can list all the games
games = client.games()

for game in games:
    print(game.name)

# The search is up to the user to implement, this is just a wrapper

# We can also get the latest files for a project

JourneyMap = client.mod(2238) # 2238 is the ID of JourneyMap

for file in JourneyMap.files:
    print(file.name)
```

## TODO

- [x] Implement the export methods
- [x] Implement the cache
- [x] Implement the fetch method
- [x] Deal with the download URL being a null value
- [ ] Implement the search method
- [ ] Wrap the ENTIRE API
- [x] Rename the classes so they have a `Curse` prefix

## Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

## License

[MIT](https://choosealicense.com/licenses/mit/)
py-static-dtm 1.0.1
A custom DTM object that returns a constant value in a certain polygon
Requires Python: >=3.8

# py-static-dtm
This is a package for creating custom static DTMs using polygons to define the DTM geographic area.

The main packages here are: fastkml and shapely. pyproj is only used here to convert the coordinates to UTM.

One key feature is the ability to create a DTM out of a kml file. For creating a kml file easily you can tap into [google earth](https://earth.google.com/web/) and export the kml you sketched.

## The tests
The tests use a set of points to assert the behavior against a kml file of Haifa port. You can load the kml into [google earth](https://earth.google.com/web/) to see the polygon.

In the docs folder there is another kml file. Loading it to google earth will show on top of the polygon all the points the tests are checking. This file was manually created, if the tests will change, the file may loose its validity.