Czf.Socrata.APIDownloader
0.4.0-help-20211224
This is a prerelease version of Czf.Socrata.APIDownloader.
dotnet tool install --global Czf.Socrata.APIDownloader --version 0.4.0-help-20211224
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 Czf.Socrata.APIDownloader --version 0.4.0-help-20211224
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Czf.Socrata.APIDownloader&version=0.4.0-help-20211224&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package Czf.Socrata.APIDownloader --version 0.4.0-help-20211224
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
DownSoda
A dotnet CLI tool for downloading from Socrata Open Data API.
Installing
Prerequisites
You'll first need to install the .NET SDK.
Install Tool from CLI
Recommend you install as a global tool
dotnet tool install -g downsoda
Usage
Help Output
Usage: downsoda [config arguments]
Download all rows from a Socrata hosted Open Data source using a specified resource url.
All configuration arguments can be specified in Environment Variable, appsettings.json config,
and/or via command line. They are read in order and overwrite values from the previous config
location.
Config Arguments:
-SocrataAppToken <APPLICATION_TOKEN> The token to identify the application with Socrata API
-SocrataSecretToken <APPLICATION_SECRET_TOKEN> The token to authenticate the application
with Socrata API
-DataUri <SOCRATA_JSON_URL> The uri of the json data source.
-FileTargetDestination <PATH_TO_STORE_FILE> The location to download the data file.
(default: current working directory)
-FileTargetBaseName <FILENAME> The file name that each data file will use as a
base template. (default: result.json)
-SkipDownload <BOOL> When true the DataUri is not downloaded. (default: false)
-QueryPagesPerFile <NUMBER_OF_PAGES> The number of request results to store in one file.
(default: 10)
-ConnectionString <DATABASE_CONNECTIONSTRING> The connection string to use for importing to
MSSQL Server Database.
(default: Server=.;Database=OpenData;Trusted_Connection=True;)
-StoredProcedureProcessJson, -sproc <STORED_PROCEDURE_NAME> The stored procedure to execute expecting the path
to one of the data files. (default: usp_ProcessJson)
-Logging <CONFIGURATION_SETTINGS> Logging configuration see:
https://docs.microsoft.com/en-us/aspnet/core/fundamentals/logging/?view=aspnetcore-6.0#configure-logging
-ImportToDatabaseEnabled <BOOL> When true the stored procedure specified by
StoredProcedureProcessJson will be executed
for each data file. The stored procedure is expected
to have a parameter @FilePath, representing the
location of the data file. (default: true)
Samples
A sample configuration file is included in the Samples directory of this repo. A sample database schema and store procedure is included in the SQL example subdirectory.
Uninstall
dotnet tool uninstall downsoda -g
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
Version | Downloads | Last updated |
---|---|---|
0.4.0-help-20211224 | 223 | 12/25/2021 |