Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
jonochang committed Oct 22, 2024
1 parent d292c0b commit 98547f2
Showing 1 changed file with 50 additions and 2 deletions.
52 changes: 50 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,50 @@
# superset_client
Superset Client
# Superset Client

A Ruby client for interacting with Apache Superset's REST API.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'superset_client'
```

And then execute:

$ bundle install

Or install it yourself as:

$ gem install superset_client

## Usage

```ruby
# Create a new client
client = SupersetClient.new('https://your-superset-instance', 'username', 'password')

# Or if you prefer the explicit form
client = SupersetClient::Client.new('https://your-superset-instance', 'username', 'password')

# Get all charts
charts = client.charts

# Get a specific chart
chart = client.chart(123)

# Create a new chart
new_chart = client.create_chart({
slice_name: "My New Chart",
viz_type: "line",
# ... other params
})
```

## Development

After checking out the repo, run `nix-shell` to install dependencies. Then, run `bundle exec spec` to run the tests.

## License

The gem is available as open source under the terms of the MIT License.

0 comments on commit 98547f2

Please sign in to comment.