Types for the Rasterio package

Overview

types-rasterio

Types for the rasterio package

A work in progress

Install

Not yet published to PyPI

pip install types-rasterio

These type definitions should automatically be picked up by Mypy when type checking.

Versions

The versions of rasterio that types-rasterio tracks.

types-rasterio rasterio
0.1.x 1.2.x
You might also like...
A deployer and package manager for OceanBase open-source software.

OceanBase Deploy OceanBase Deploy (简称 OBD)是 OceanBase 开源软件的安装部署工具。OBD 同时也是包管理器,可以用来管理 OceanBase 所有的开源软件。本文介绍如何安装 OBD、使用 OBD 和 OBD 的命令。 安装 OBD 您可以使用以下方

Package pyVHR is a comprehensive framework for studying methods of pulse rate estimation relying on remote photoplethysmography (rPPG)
Package pyVHR is a comprehensive framework for studying methods of pulse rate estimation relying on remote photoplethysmography (rPPG)

Package pyVHR (short for Python framework for Virtual Heart Rate) is a comprehensive framework for studying methods of pulse rate estimation relying on remote photoplethysmography (rPPG)

Huggingface package for the discrete VAE used for DALL-E.

DALL-E-Tokenizer Huggingface package for the discrete VAE used for DALL-E.

A tool converting rpk (记乎) to apkg (Anki Package)
A tool converting rpk (记乎) to apkg (Anki Package)

RpkConverter This tool is used to convert rpk file to Anki apkg. 如果遇到任何问题,请发起issue,并描述情况。如果转换rpk出现问题,请将文件发到邮箱 ssqyang [AT] outlook.com,我会debug并修复问题。 下

This project recreates the R-based RCy3 Cytoscape Automation library as a Python package.

Python library for calling Cytoscape Automation via CyREST

Some usefull scripts for the Nastran's 145 solution (Flutter Analysis) using the pyNastran package.
Some usefull scripts for the Nastran's 145 solution (Flutter Analysis) using the pyNastran package.

nastran-aero-flutter This project is intended to analyse the Supersonic Panel Flutter using the NASTRAN software. The project uses the pyNastran and t

Hydralit package is a wrapping and template project to combine multiple independant Streamlit applications into a multi-page application.
Hydralit package is a wrapping and template project to combine multiple independant Streamlit applications into a multi-page application.

Hydralit The Hydralit package is a wrapping and template project to combine multiple independant (or somewhat dependant) Streamlit applications into a

A python package for bitclout.

BitClout.py A python package for bitclout. Developed by ItsAditya Run pip install bitclout to install the module! Examples of How To Use BitClout.py G

This is an example manipulation package of for a robot manipulator based on Drake with ROS2.

This is an example manipulation package of for a robot manipulator based on Drake with ROS2.

Comments
  • rasterio.open typing updates

    rasterio.open typing updates

    Offering two improvements to the open() type stub:

    1. The DatasetReader and DatasetWriter stubs should support context manager ("with _ as _") syntax, achieved through the __enter__ and __exit__ methods.

      image
    2. Union[DatasetReader, DatasetWriter] is not quite the correct return type because it restricts usage to only methods contained in both classes. Instead, I overloaded the stub to return either a DatasetReader or DatasetWriter conditionally based on the mode parameter. This also results in more accurate type hinting.

      image
    opened by alecglen 0
  • Module has not attribute

    Module has not attribute "Env"

    Awesome work on this @kylebarron!

    After installing and checking out some sample code, I'm getting the error referenced. image

    I see an Env stub exists in the source, and I can avoid the error by replacing my call with rio.env.Env. I also tried adding the import to get the original statement recognized, but I can't seem to get that working. Any idea what I'm doing wrong there?

    opened by alecglen 2
  • Don't import rasterio.path

    Don't import rasterio.path

    Hey @kylebarron :wave: rasterio.path is going to be deprecated in 1.3 (see https://github.com/rasterio/rasterio/pull/2424) and this will affect https://github.com/kylebarron/types-rasterio/blob/142a531c9dd1a35672f1bd811fdf05356b241f02/rasterio-stubs/drivers.pyi#L3.

    opened by sgillies 1
  • WIP generic classes

    WIP generic classes

    Enables a generic typevar to propagate through the class. For example, define a reader to be of type np.float64, and then data read from it will also be of that type.

    from __future__ import annotations
    from rasterio._io import DatasetReaderBase
    import numpy as np
    
    out: DatasetReaderBase[np.float64] = DatasetReaderBase('path')
    output_array = out.read()
    reveal_type(output_array)
    # note: Revealed type is "numpy.ndarray[Any, numpy.dtype[numpy.floating*[numpy.typing._64Bit]]]"
    
    opened by kylebarron 0
Owner
Kyle Barron
I'm a developer creating mapping-focused data visualizations.
Kyle Barron
Prints values and types during compilation!

Compile-Time Printer Compile-Time Printer prints values and types at compile-time in C++. Teaser test.cpp compile-time-printer

null 43 Dec 26, 2022
Convert three types of color in your clipboard and paste it to the color property (gamma correct)

ColorPaster [Blender Addon] Convert three types of color in your clipboard and paste it to the color property (gamma correct) How to Use Hover your mo

null 13 Oct 31, 2022
Statistics Calculator module for all types of Stats calculations.

Statistics-Calculator This Calculator user the formulas and methods to find the statistical values listed. Statistics Calculator module for all types

null 2 May 29, 2022
A test repository to build a python package and publish the package to Artifact Registry using GCB

A test repository to build a python package and publish the package to Artifact Registry using GCB. Then have the package be a dependency in a GCF function.

null 1 Feb 9, 2022
Example python package with pybind11 cpp extension

Developing C++ extension in Python using pybind11 This is a summary of the commands used in the tutorial.

null 55 Sep 4, 2022
qecsim is a Python 3 package for simulating quantum error correction using stabilizer codes.

qecsim qecsim is a Python 3 package for simulating quantum error correction using stabilizer codes.

null 44 Dec 20, 2022
A command-line utility that creates projects from cookiecutters (project templates), e.g. Python package projects, VueJS projects.

Cookiecutter A command-line utility that creates projects from cookiecutters (project templates), e.g. creating a Python package project from a Python

null 18.6k Jan 2, 2023
Unofficial package for fetching users information based on National ID Number (Tanzania)

Nida Unofficial package for fetching users information based on National ID Number made by kalebu Installation You can install it directly or using pi

Jordan Kalebu 57 Dec 28, 2022
A toy repo illustrating a minimal installable Python package

MyToy: a minimal Python package This repository contains a minimal, toy Python package with a few files as illustration for students of how to lay out

Fernando Perez 19 Apr 24, 2022
Python package that mirrors the original Nodejs ReplAPI-It.

Python-ReplAPI-It Python package that mirrors the original Nodejs ReplAPI-It. Contributing First fork the repo: $ git clone https://github.com/ReplAPI

The ReplAPI.it Project 10 Jun 5, 2022