Azuxiren.Aionian.Terminal 1.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global Azuxiren.Aionian.Terminal --version 1.1.0                
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local Azuxiren.Aionian.Terminal --version 1.1.0                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Azuxiren.Aionian.Terminal&version=1.1.0                
nuke :add-package Azuxiren.Aionian.Terminal --version 1.1.0                

Aionian Bible

This library and tool is a small attempt to bring Aionian Bible to the dotnet

Aionian Library

Aionian Library contains simplistic features to consume the bible resources. As of now, the following is provided

The BibleLink struct which defines the bible link as provided in http://resources.aionianbible.org/, The Bible struct which contains all the content of bible using nested Dictionaries, and BibleBook enum which has all the books of the bible defined within it.

Provided with these are static utility methods, most importantly for getting all links from the website (link given above) and a method for deserializing the Bible struct from downloaded link

BibleLink[] links = BibleLink.GetAllUrlsFromWebsite();//Gets all download links available from the website
BibleLink mylink = links[0]; //Taking the first link
var stream = mylink.DownloadStream();//Downloads the stream of the bible database
var bible = Bible.ExtractBible(stream);//Now the bible is ready to use
									   
									   //Alternatively
var AnotherBible = Bible.ExtractBible(mylink.DownloadStream());//One line 
string verse = AnotherBible[BibleBook.John, 3, 16];

By using a stream, there is an additional option of downloading the file by the URL in the BibleLink object and opening it via a Stream to load the Bible. There is now also an Async method for downloading the bible with events that are fired on the update on progress.

The bible struct is also compatible to be serialized with Json, provided the option IncludeFields = true is set.

//Prepare Option for Serializing
var options = new JsonSerializerOptions() { IncludeFields = true }

//Serialization Example
string SerializedBible = JsonSerializer.Serialize(BibleObject, options);

...
//Deserialization Example
var Bible = JsonSerializer.Deserialize<Bible>(SerializedBible, options);

You can add this package from Nuget

Aionian Tool

This is a basic terminal application (dotnet tool) to showcase the Aionian Library. It features the following:

  1. Bible reading
  2. Bible word search
  3. Download/Manage any Aionian bible package

Install it from Nuget

Release Notes:

Aionian Library

v1.0.1.1

  • Corrected Bible abstract IDictionary dependancy

v1.0.1.0

  • Reduced Target Framework requirements;
  • Removed a bug causing potential memory leaks on BibleLink.GetAllUrlsFromWebsite();
  • Made BibleLink Serialiazable with Json (System.Text.Json)

v1.0.0.0

  • First Release

Aionian Tool

v1.0.1.0

  • Reduced framework requirments;
  • Reduced dependancies;
  • Made the program code more readable and easier to debug;
  • Corrected package to be tool

v1.0.0.0

  • First Release

Building

Building both the projects requires dotnet-sdk, available for download from Microsoft's dotnet-sdk official site

Going to the each of the project's folder, use

dotnet build

to begin building. The nuget files are generated in the nuget folder.

License/Copyright

Both the projects in these repositories are under Creative Commons Attribution-No Derivatives 4.0.

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.1 is compatible.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Removed bug for app crashing when loading chapters with verses absent in some bibles (like Matt 17:21 in Aionian);