appwritex 0.2.0 copy "appwritex: ^0.2.0" to clipboard
appwritex: ^0.2.0 copied to clipboard

Provides additional features to the Appwrite Dart SDK non-invasively.

[Beta] AppwriteX provides additional features to the Appwrite Dart SDK non-invasively.

Version CI License

Features #

  • AppwriteX extends the Appwrite Dart SDK with additional features.

Getting started #

  1. Add this package to your pubspec.yaml file:
dependencies:
  dart_appwrite: ^<latest_version>
  appwritex: ^1.0.0
  1. Install the package by running dart pub get.
  2. Import the package in your Dart code:
import 'package:dart_appwrite/dart_appwrite.dart';
import 'package:appwritex/appwritex.dart';
  1. Use the package in your code:
void main() async {
  final client = Client()
      .setEndpoint('http://localhost/v1')
      .setProject('fedcba9876543210')
      .setKey('0123456789abcdef');
    final users = Users(client);
    final usersUsage = await users.getUsage();    // users.getUsage() is provided by AppwriteX
    print(usersUsage.toMap());
}

Usage #

import 'package:dart_appwrite/dart_appwrite.dart';
import 'package:appwritex/appwritex.dart';

void main() async {
  final client = Client()
      .setEndpoint('http://localhost/v1')
      .setProject('fedcba9876543210')
      .setKey('0123456789abcdef');
  final users = Users(client);
  final usersUsage = await users.getUsage();    // users.getUsage() is provided by AppwriteX
  print(usersUsage.toMap());
}

Class #

// Extension AvatarsX on Avatars Service
Avatars.getCardsCloud();
Avatars.getCardsCloudBack();
Avatars.getCardsCloudOG();

// Console Service
Console.getVariables(); // Get all console variables

// Extension DatabasesX on Databases Service
Databases.getCollectionUsage(); // Get usage of a specific collection
Databases.getDatabaseUsage(); // Get usage of a specific database
Databases.getUsage(); // Get usage of all databases

// Extension FunctionsX on Functions Service
Functions.getFunctionUsage(); // Get usage of a specific function
Functions.getUsage(); // Get usage of all functions

// Extension HealthX on Health Service
Health.getStats(); // Get health stats

// Extension MessagingX on Messaging Service
Messaging.getUsage(); // Get usage of all messaging

// Project Service
Project.getVariables(); // Get all variables of a specific project
Project.getUsage(); // Get usage of a specific project

// Projects Service
Projects.list(); // List all projects

// Proxy Service
Proxy.listRules(); // List all proxy rules

// Public Service
Public.getVersions(); // Get all version information
Public.getHealthVersion(); // Get health version information

// Extension StorageX on Storage Service
Storage.getBucketUsage(); // Get usage of a specific bucket
Storage.getUsage(); // Get usage of all storage

// Extension TeamsX on Teams Service
Teams.getUsage(); // Get usage of all teams

// Extension UsersX on Users Service
Users.getUsage(); // Get usage of all users

// Vcs Service
Vcs.listInstallations(); // List all VCS installations

You can also use the Usage class to get usage of all services. The Usage class is a wrapper class that provides a single method to get usage of all services.

// Usage Service
Usage.getCollectionUsage(); // Get usage of a specific collection
Usage.getDatabaseUsage(); // Get usage of a specific database
Usage.getDatabasesUsage(); // Get usage of all databases

Usage.getFunctionUsage(); // Get usage of a specific function
Usage.getFunctionsUsage(); // Get usage of all functions

Usage.getMessagingUsage(); // Get usage of all messaging

Usage.getProjectUsage(); // Get usage of a specific project

Usage.getBucketUsage(); // Get usage of a specific bucket
Usage.getStorageUsage(); // Get usage of all storage

Usage.getTeamsUsage(); // Get usage of all teams

Usage.getUsersUsage(); // Get usage of all users

Contributors #

Contributors

2
likes
0
pub points
0%
popularity

Publisher

verified publisherinsightop.com

Provides additional features to the Appwrite Dart SDK non-invasively.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dart_appwrite, meta

More

Packages that depend on appwritex