Skip to content

Commit

Permalink
v3.0.0-rc.6
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Stein <steinlink@gmail.com>
  • Loading branch information
texodus committed Aug 15, 2024
1 parent 2c04c66 commit ee2f560
Show file tree
Hide file tree
Showing 40 changed files with 77 additions and 85 deletions.
14 changes: 7 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cpp/perspective/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": true,
"author": "The Perspective Authors",
"license": "Apache-2.0",
"version": "3.0.0-rc.3",
"version": "3.0.0-rc.6",
"main": "./dist/esm/perspective.cpp.js",
"files": [
"dist/esm/**/*",
Expand Down
38 changes: 19 additions & 19 deletions docs/docs/server.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ compatible format (JSON, CSV or Apache Arrow).
#### Javascript client

```javascript
const worker = perspective.worker();
const worker = await perspective.worker();
const table = await worker.table(csv);

const viewer = document.createElement("perspective-viewer");
document.body.appendChild(viewer);
viewer.load(table);
await viewer.load(table);
```

## Client/Server Replicated
Expand All @@ -75,23 +75,23 @@ deltas, while operations like scrolling, pivots, sorting, etc. are performed on
the client.

Python servers can make especially good use of additional threads, as
Perspective will [release the GIL](python.md#async-mode) for almost all
operations. Interactive performance on the client is very good and identical to
client-only architecture. Updates and edits are seamlessly synchonized across
clients via their virtual server counterparts using websockets and Apache Arrow.
Perspective will release the GIL for almost all operations. Interactive
performance on the client is very good and identical to client-only
architecture. Updates and edits are seamlessly synchonized across clients via
their virtual server counterparts using websockets and Apache Arrow.

#### Python and Tornado server

```python
from perspective import Table, PerspectiveManager, PerspectiveTornadoHandler
from perspective import Server, PerspectiveTornadoHandler

table = Table(csv)
manager = PerspectiveManager()
manager.host("my_table", table)
server = Server()
client = server.new_local_client()
client.table(csv, name="my_table")
routes = [(
r"/websocket",
PerspectiveTornadoHandler,
{"manager": manager, "check_origin": True},
perspective.handlers.tornado.PerspectiveTornadoHandler,
{"perspective_server": server},
)]

app = tornado.web.Application(routes)
Expand All @@ -106,16 +106,16 @@ Perspective's websocket client interfaces with the Python server. then
_replicates_ the server-side Table.

```javascript
const websocket = perspective.websocket("ws://localhost:8080");
const server_table = websocket.open("my_table");
const websocket = await perspective.websocket("ws://localhost:8080");
const server_table = await websocket.open_table("my_table");
const server_view = await server_table.view();

const worker = perspective.worker();
const worker = await perspective.worker();
const client_table = await worker.table(server_view);

const viewer = document.createElement("perspective-viewer");
document.body.appendChild(viewer);
viewer.load(client_table);
await viewer.load(client_table);
```

## Server-only
Expand Down Expand Up @@ -144,10 +144,10 @@ Using the same Python server as the previous design, we can simply skip the
intermediate WebAssembly `Table` and pass the virtual table directly to `load()`

```javascript
const websocket = perspective.websocket("ws://localhost:8080");
const server_table = websocket.open("my_table");
const websocket = await perspective.websocket("ws://localhost:8080");
const server_table = await websocket.open_table("my_table");

const viewer = document.createElement("perspective-viewer");
document.body.appendChild(viewer);
viewer.load(server_table);
await viewer.load(server_table);
```
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@finos/perspective-docs",
"version": "3.0.0-rc.3",
"version": "3.0.0-rc.6",
"private": true,
"scripts": {
"docusaurus": "docusaurus",
Expand Down
2 changes: 1 addition & 1 deletion examples/blocks/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "blocks",
"private": true,
"version": "3.0.0-rc.3",
"version": "3.0.0-rc.6",
"description": "A collection of simple client-side Perspective examples for `http://bl.ocks.org`.",
"scripts": {
"start": "mkdirp dist && node --experimental-modules server.mjs",
Expand Down
2 changes: 1 addition & 1 deletion examples/esbuild-example/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "esbuild-example",
"private": true,
"version": "3.0.0-rc.3",
"version": "3.0.0-rc.6",
"description": "An esbuild example app built using `@finos/perspective-viewer`.",
"scripts": {
"build": "node build.js",
Expand Down
2 changes: 1 addition & 1 deletion examples/esbuild-remote/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "esbuild-remote",
"private": true,
"version": "3.0.0-rc.3",
"version": "3.0.0-rc.6",
"description": "An example of 2 Perspectives, one client and one server, streaming via Apache Arrow.",
"scripts": {
"start": "node build.js && node server/index.mjs"
Expand Down
2 changes: 1 addition & 1 deletion examples/python-aiohttp/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "python-aiohttp",
"private": true,
"version": "3.0.0-rc.3",
"version": "3.0.0-rc.6",
"description": "An example of editing a `perspective-python` server from the browser.",
"scripts": {
"start": "PYTHONPATH=../../python/perspective python3 server.py"
Expand Down
2 changes: 1 addition & 1 deletion examples/python-starlette/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "python-starlette",
"private": true,
"version": "3.0.0-rc.3",
"version": "3.0.0-rc.6",
"description": "An example of editing a `perspective-python` server from the browser.",
"scripts": {
"start": "PYTHONPATH=../../python/perspective python3 server.py"
Expand Down
2 changes: 1 addition & 1 deletion examples/python-tornado-streaming/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "python-tornado-streaming",
"private": true,
"version": "3.0.0-rc.3",
"version": "3.0.0-rc.6",
"description": "An example of streaming a `perspective-python` server to the browser.",
"scripts": {
"start": "PYTHONPATH=../../python/perspective python3 server.py"
Expand Down
2 changes: 1 addition & 1 deletion examples/python-tornado/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "python-tornado",
"private": true,
"version": "3.0.0-rc.3",
"version": "3.0.0-rc.6",
"description": "An example of editing a `perspective-python` server from the browser.",
"scripts": {
"start": "PYTHONPATH=../../python/perspective python3 server.py"
Expand Down
2 changes: 1 addition & 1 deletion examples/react-example/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-example",
"private": true,
"version": "3.0.0-rc.3",
"version": "3.0.0-rc.6",
"description": "An example app built using `@finos/perspective-viewer`.",
"scripts": {
"start": "webpack serve --open",
Expand Down
2 changes: 1 addition & 1 deletion examples/rust-axum/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ edition = "2021"
publish = false

[dependencies]
perspective = { version = "3.0.0-rc.3", path = "../../rust/perspective" }
perspective = { version = "3.0.0-rc.6", path = "../../rust/perspective" }
axum = { version = "=0.7.4", features = ["ws"] }
futures = "0.3"
tokio = { version = "1.0", features = ["full"] }
Expand Down
2 changes: 1 addition & 1 deletion examples/rust-axum/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "rust-axum",
"private": true,
"version": "3.0.0-rc.3",
"version": "3.0.0-rc.6",
"description": "An example of a Rust/Axum virtual Perspective server",
"scripts": {
"start": "cargo run"
Expand Down
2 changes: 1 addition & 1 deletion examples/webpack-example/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "webpack-example",
"private": true,
"version": "3.0.0-rc.3",
"version": "3.0.0-rc.6",
"description": "An example app built using `@finos/perspective-viewer`.",
"scripts": {
"webpack_build": "webpack",
Expand Down
2 changes: 1 addition & 1 deletion examples/workspace/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "workspace",
"private": true,
"version": "3.0.0-rc.3",
"version": "3.0.0-rc.6",
"description": "An example app built using `@finos/perspective-workspace`.",
"scripts": {
"start": "webpack serve --open",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "git",
"url": "https://github.com/finos/perspective"
},
"version": "3.0.0-rc.3",
"version": "3.0.0-rc.6",
"changelog": {
"labels": {
"enhancement": "Added",
Expand Down
2 changes: 1 addition & 1 deletion packages/perspective-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@finos/perspective-cli",
"version": "3.0.0-rc.3",
"version": "3.0.0-rc.6",
"description": "Perspective.js CLI",
"main": "src/js/index.js",
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion packages/perspective-esbuild-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@finos/perspective-esbuild-plugin",
"version": "3.0.0-rc.3",
"version": "3.0.0-rc.6",
"description": "esbuild plugin for Perspective",
"author": "",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/perspective-jupyterlab/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@finos/perspective-jupyterlab",
"version": "3.0.0-rc.3",
"version": "3.0.0-rc.6",
"description": "A Jupyterlab extension for the Perspective library, designed to be used with perspective-python.",
"files": [
"dist/**/*",
Expand Down
2 changes: 1 addition & 1 deletion packages/perspective-viewer-d3fc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@finos/perspective-viewer-d3fc",
"version": "3.0.0-rc.3",
"version": "3.0.0-rc.6",
"description": "Perspective.js D3FC Plugin",
"unpkg": "./dist/cdn/perspective-viewer-d3fc.js",
"jsdelivr": "./dist/cdn/perspective-viewer-d3fc.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/perspective-viewer-datagrid/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@finos/perspective-viewer-datagrid",
"version": "3.0.0-rc.3",
"version": "3.0.0-rc.6",
"description": "Perspective datagrid plugin based on `regular-table`",
"unpkg": "dist/cdn/perspective-viewer-datagrid.js",
"jsdelivr": "dist/cdn/perspective-viewer-datagrid.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/perspective-viewer-openlayers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@finos/perspective-viewer-openlayers",
"version": "3.0.0-rc.3",
"version": "3.0.0-rc.6",
"unpkg": "dist/cdn/perspective-viewer-openlayers.js",
"jsdelivr": "dist/cdn/perspective-viewer-openlayers.js",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/perspective-webpack-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@finos/perspective-webpack-plugin",
"version": "3.0.0-rc.3",
"version": "3.0.0-rc.6",
"description": "Perspective.js Webpack Plugin",
"main": "index.js",
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion packages/perspective-workspace/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@finos/perspective-workspace",
"version": "3.0.0-rc.3",
"version": "3.0.0-rc.6",
"description": "Perspective Workspace",
"files": [
"dist/**/*",
Expand Down
2 changes: 1 addition & 1 deletion rust/lint/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
[package]
name = "perspective-lint"
description = "A CLI utility to lint rust code"
version = "3.0.0-rc.3"
version = "3.0.0-rc.6"
edition = "2021"
publish = false

Expand Down
2 changes: 1 addition & 1 deletion rust/perspective-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

[package]
name = "perspective-client"
version = "3.0.0-rc.3"
version = "3.0.0-rc.6"
authors = ["Andrew Stein <steinlink@gmail.com>"]
edition = "2021"
description = "A data visualization and analytics component, especially well-suited for large and/or streaming datasets."
Expand Down
2 changes: 1 addition & 1 deletion rust/perspective-client/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fn prost_build() -> Result<()> {
// `perspective-python`.
println!(
"cargo::metadata=DOCS_PATH={}/docs/",
env!("CARGO_MANIFEST_DIR")
std::env::var("CARGO_MANIFEST_DIR").unwrap()
);

// This source file is included at `publish` time, but not `sbuild` time
Expand Down
Loading

0 comments on commit ee2f560

Please sign in to comment.