haystack 0.5.1

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • 26

haystack #

Port of haystack java toolkit. Use it to connect and work with SkySpark. [Project Haystack]http://project-haystack.org/ defines a tagging model and REST API for sensor systems such as HVAC, lighting, and energy equipment. [SkySpark] is a project to serve your IoT data and make analytics.

To use this package you need installed SkySpark server (and apply a some license). Authentication methods are skipped now, so you can use this library from SkySpark pub folder. Just create in you SkySpark's folder root 'pub' directory and place here your app. It will be accessible by 'localhost_or_smth:80/pub/my_app.html'. Only client side is implemented at this moment, you can't use it from server or command-line apps.

Usage #

A simple usage example (include this into HTML page):

import 'package:haystack/core.dart';
import 'package:haystack/hclient.dart';

final String uri = "http://localhost:8080/api/demo";
final String user = "haystack";
final String pass = "testpass";
HClient client;

main() {
  client = new HClient(uri, user, pass);
  client.open().then((_) => client.about()).then((HDict result) {
    print(result);
  });
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

Changelog #

0.5.1 #

  • Added commit method in HProj
  • Added simplify utils
  • Improved editing grids in HGridBuilder

0.5.0+2 #

  • Removed tags lists
  • fixed quiver dependency

0.5.0 #

  • Made types more strict

0.4.21+1 #

  • Added HNull class

0.4.21 #

  • Updated version header

0.4.20+3 #

  • Fixed grid dump with sub-grids

0.4.20+2 #

  • Added List implementation for HGrid (unmodifiable)

0.4.20+1 #

  • Fixed column's dis method

0.4.20 #

  • Fixed HGrid toString method

0.4.19 #

  • Fixed dollar sign string parsing

0.4.18 #

  • Added HList, HXStr,
  • Made HDict and HGrid HVals
  • Enhanced Zinc for nested data structures
  • Created HaystackTokenizer for parsing haystack types

0.4.17 #

  • test renamed to work with automatic testing

0.4.16 #

  • added HGrid.rows readonly getter
  • fixed tests to work with new test package

0.4.15 #

  • added tags

0.4.14 #

  • added map interface for HDict, HRow and HHisItem

0.4.13 #

  • fixed initial bool value error in HClientWatch class

0.4.11 #

  • Just fixed hclient library names conflict

0.4.10 #

  • Added HRemove singleton

0.4.0 #

  • Initial version, created by Dmitriy Vasilyev aka kelegorm

example/main.dart

// Copyright (c) 2015, <your name>. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.

library haystack.example;

import 'package:haystack/core.dart';
import 'package:haystack/hclient.dart';

final String uri = "http://localhost:8080/api/demo";
final String user = "haystack";
final String pass = "testpass";
HClient client;

void main() {
  client = new HClient(uri, user, pass);
  client.open().then((_) => client.about()).then((HDict result) {
    print(result);
  });
}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  haystack: ^0.5.1

2. Install it

You can install packages from the command line:

with pub:


$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:haystack/core.dart';
import 'package:haystack/utils.dart';
import 'package:haystack/hclient.dart';
  
Version Uploaded Documentation Archive
0.6.0+9 May 6, 2019 Go to the documentation of haystack 0.6.0+9 Download haystack 0.6.0+9 archive
0.6.0+8 May 3, 2019 Go to the documentation of haystack 0.6.0+8 Download haystack 0.6.0+8 archive
0.6.0+7 Apr 17, 2019 Go to the documentation of haystack 0.6.0+7 Download haystack 0.6.0+7 archive
0.6.0+6 Feb 21, 2019 Go to the documentation of haystack 0.6.0+6 Download haystack 0.6.0+6 archive
0.6.0+5 Feb 18, 2019 Go to the documentation of haystack 0.6.0+5 Download haystack 0.6.0+5 archive
0.6.0+4 Feb 15, 2019 Go to the documentation of haystack 0.6.0+4 Download haystack 0.6.0+4 archive
0.6.0+3 Nov 15, 2018 Go to the documentation of haystack 0.6.0+3 Download haystack 0.6.0+3 archive
0.6.0+2 Nov 6, 2018 Go to the documentation of haystack 0.6.0+2 Download haystack 0.6.0+2 archive
0.6.0+1 Sep 14, 2018 Go to the documentation of haystack 0.6.0+1 Download haystack 0.6.0+1 archive
0.6.0 Sep 13, 2018 Go to the documentation of haystack 0.6.0 Download haystack 0.6.0 archive

All 39 versions...

Popularity:
Describes how popular the package is relative to other packages. [more]
52
Health:
Code health derived from static analysis. [more]
--
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
--
Overall:
Weighted score of the above. [more]
26
Learn more about scoring.

The package version is not analyzed, because it does not support Dart 2. Until this is resolved, the package will receive a health and maintenance score of 0.

Analysis issues and suggestions

Support Dart 2 in pubspec.yaml.

The SDK constraint in pubspec.yaml doesn't allow the Dart 2.0.0 release. For information about upgrading it to be Dart 2 compatible, please see https://dart.dev/dart-2#migration.

Maintenance issues and suggestions

Make sure dartdoc successfully runs on your package's source files. (-10 points)

Dependencies were not resolved.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.20.1 <2.0.0