Skip to content
This repository has been archived by the owner on Jun 13, 2019. It is now read-only.

Commit

Permalink
s/ian/iliana/g
Browse files Browse the repository at this point in the history
  • Loading branch information
iliana committed Feb 7, 2017
1 parent 53baf1f commit c9afa70
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
name = "cpython-json"
version = "0.1.0"
authors = ["Ian Weller <ianweller@buttslol.net>"]
version = "0.1.1"
authors = ["Iliana Weller <ilianaw@buttslol.net>"]
description = "Converts native Python objects into serde_json Values and back again"
readme = "README.md"
repository = "https://github.com/ianweller/rust-cpython-json"
repository = "https://github.com/ilianaw/rust-cpython-json"
documentation = "https://docs.rs/cpython-json"
keywords = ["python", "json"]
license = "MIT/Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion LICENSE-MIT
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2016 Ian Weller
Copyright (c) 2016 Iliana Weller

Permission is hereby granted, free of charge, to any
person obtaining a copy of this software and associated
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ rust-cpython-json

[![crates.io](https://img.shields.io/crates/v/cpython-json.svg)](https://crates.io/crates/cpython-json)
[![docs.rs](https://docs.rs/cpython-json/badge.svg)](https://docs.rs/cpython-json)
[![Build Status](https://travis-ci.org/ianweller/rust-cpython-json.svg?branch=master)](https://travis-ci.org/ianweller/rust-cpython-json)
[![Build Status](https://travis-ci.org/ilianaw/rust-cpython-json.svg?branch=master)](https://travis-ci.org/ilianaw/rust-cpython-json)

cpython-json converts native Python objects (via [cpython](https://crates.io/crates/cpython) `PyObject`s) to [serde_json](https://crates.io/crates/serde_json) `Value`s and back again.

It was developed for [crowbar](https://crates.io/crates/crowbar), a shim for writing native Rust code in [AWS Lambda](https://aws.amazon.com/lambda/) using the Python execution environment. Because Lambda is a JSON-in, JSON-out API, all objects passing through crowbar are JSON serializable.

Values are not actually converted to JSON as part of this process; serializing and deserializing JSON is slow. Instead, `PyObject`s are natively casted to a reasonably matching type of `Value`, and `PyObject`s are created directly from pattern-matching `Value`s.

Data types that the Python `json` module can convert to JSON can be converted with this. (If you find something that works in the Python `json` module that doesn't work in `cpython-json`, please [file an issue](https://github.com/ianweller/rust-cpython-json/issues) with your test case.)
Data types that the Python `json` module can convert to JSON can be converted with this. (If you find something that works in the Python `json` module that doesn't work in `cpython-json`, please [file an issue](https://github.com/ilianaw/rust-cpython-json/issues) with your test case.)

## Usage

Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//!
//! Data types that the Python `json` module can convert to JSON can be converted with this. (If
//! you find something that works in the Python `json` module that doesn't work in `cpython-json`,
//! please [file an issue](https://github.com/ianweller/rust-cpython-json/issues) with your test
//! please [file an issue](https://github.com/ilianaw/rust-cpython-json/issues) with your test
//! case.)
//!
//! ## Usage
Expand Down Expand Up @@ -85,7 +85,7 @@ pub enum JsonError {
///
/// This usually means that Python's `json` module wouldn't be able to serialize the object
/// either. If the Python `json` module works but `cpython-json` doesn't, please [file an
/// issue] (https://github.com/ianweller/rust-cpython-json/issues) with your test case.
/// issue] (https://github.com/ilianaw/rust-cpython-json/issues) with your test case.
TypeError(String, PyResult<String>),
/// A `dict` key was not a string object, and so it couldn't be converted to an object. JSON
/// object keys must always be strings.
Expand Down

0 comments on commit c9afa70

Please sign in to comment.