semvec/pypi-packages huggingface dataset:
getgdelt 1.0.0
Get and use gdelt data more reliably without hardware limitation.
Requires Python: >=3.6

# What is getgdelt&usegdelt？

GDELT(**Global Database of Events, Language, and Tone**), monitors the world's news media from nearly every corner of every country in print, broadcast, and web formats, in over 100 languages, every moment of every day.

``getgdelt``is a Python based framework that calls the browser to download and format GDELT data.

# Why do we use getgdelt&usegdelt？

Existing frameworks, such as [gdeltPyR](https://github.com/linwoodc3/gdeltPyR), provide us with many conveniences for calling GDELT data using python, but as mentioned by [linwoodc3](https://github.com/linwoodc3): ['The only limitation with data pulls``gdeltPyR`` is you hardware. '](https://pypi.org/project/gdelt/) 

Using non-professional hardware or using existing python packages to call GDELT data in regions and countries where the network is restricted will encounter many errors. ``getgdelt``  downloads GDELT data by calling the browser. It makes the data calling process simpler and more visual. 

For users who use non-professional hardware or in countries and regions with limited networks, it will be very convenient to use ``getgdelt`` to obtain GDELT data.

# How do we use getgdelt&usegdelt?

## Installation

`getgdelt` can be installed via pip

```
pip install getgdelt
```

## Basic Examples

### Get GDELT

```python
from getgdelt import getgdelt
getgdelt(year_start,month_start,day_start,year_end,month_end,day_end)
```

### Use GDELT

```python
from getgdelt import usegdelt
gdelt = usegdelt(download_file_directory,output_file_directory)
```
geojson2vt 1.0.1
Python package to convert GeoJSON to vector tiles

Usage
-----
geojson2vt
**********
.. code:: python

    # build an initial index of tiles
    tile_index = geojson2vt(geojson, {})

    # request a particular tile
    features = tile_index.get_tile(z, x, y).get('features')

    # show an array of tile coordinates created so far
    print(tile_index.tile_coords) # [{'z': 0, 'x': 0, 'y': 0}, ...]

You can fine-tune the results with an options object,
although the defaults are sensible and work well for most use cases.

By default, tiles at zoom levels above ``indexMaxZoom`` are generated on the fly, but you can pre-generate all possible tiles for data by setting ``indexMaxZoom`` and ``maxZoom`` to the same value, setting ``indexMaxPoints`` to 0, and then accessing the resulting tile coordinates from the ``tile_coords`` property of ``tile_index``.

The ``promoteId`` and ``generateId`` options ignore existing ``id`` values on the feature objects.

geojson2vt only operates on zoom levels up to 24.


.. code:: python

    tile_index = geojson2vt(data, {
        'maxZoom': 14,  # max zoom to preserve detail on; can't be higher than 24
        'tolerance': 3, # simplification tolerance (higher means simpler)
        'extent': 4096, # tile extent (both width and height)
        'buffer': 64,   # tile buffer on each side
        'lineMetrics': False, # whether to enable line metrics tracking for LineString/MultiLineString features
        'promoteId': None,    # name of a feature property to promote to feature.id. Cannot be used with `generateId`
        'generateId': False,  # whether to generate feature ids. Cannot be used with `promoteId`
        'indexMaxZoom': 5,       # max zoom in the initial tile index
        'indexMaxPoints': 100000 # max number of points per tile in the index
    }, logging.INFO)
    


vt2geojson
**********
.. code:: python

    # build an initial index of tiles
    tile_index = geojson2vt(geojson_data, {})

    # get a specific tile
    vt_tile = tile_index.get_tile(z, x, y)

    # convert a specific vector tile to GeoJSON
    geojson = vt2geojson(vt_tile)


Acknowledgements
----------------

All the credit belongs to the collaborators of JS GeoJSON-VT.
cjkformat 0.1.1
This Python 3 module provides utility functions for formatting fixed-width CJK strings.
Requires Python: >=3

# CJK Format

This Python 3 module provides utility functions for formatting fixed-width CJK strings. One of the most important features of tihs module is to align Latin and CJK characters using `%{width}s` specifiers. For example, the following lines
```python
print('%-10s|%-10s|' % ('ab', 'cd'))
print('%-10s|%-10s|' % ('가나다라', '마바사아'))
```
will print misaligned lines between Latin and CJK characters even with the `%-10s` specifiers.

Now, using this module's `f()` function, the above example would be
```python
from cjkformat import f

print(f('%-10s|%-10s|', 'ab', 'cd'))
print(f('%-10s|%-10s|', '가나다라', '마바사아'))
```
which will print nicely aligned output.

The module also defines a shortcut function `printf()` to minic the same function in the C language. For example,
```python
from cjkformat import printf

printf('%-10s|%-10s|\n', 'ab', 'cd')
printf('%-10s|%-10s|\n', '가나다라', '마바사아')
```

For more information, please visit [the GitHub repository](https://github.com/HuidaeCho/cjkformat).