commit 1e1032b8a643d3fdaa5450599abb4ae9cac37a44
parent c8dfe5199bfb0a3bbda6c254da80232aee66870a
Author: Erik Loualiche <eloualic@umn.edu>
Date: Sun, 23 Feb 2025 21:12:48 -0600
version bump.
Diffstat:
3 files changed, 27 insertions(+), 20 deletions(-)
diff --git a/Project.toml b/Project.toml
@@ -1,7 +1,7 @@
name = "TigerFetch"
uuid = "59408d0a-a903-460e-b817-a5586a16527e"
authors = ["Erik Loualiche"]
-version = "0.1.1"
+version = "0.1.2"
[deps]
Comonicon = "863f3e99-da2a-4334-8734-de3dacbe5542"
diff --git a/README.md b/README.md
@@ -1,5 +1,12 @@
# TigerFetch
+This package downloads TIGER/Line shapefiles from the US Census Bureau FTP server.
+
+
+This was mostly written for personal use and to learn about julia's capabilities to generate cli tools.
+Thus the package is fairly lean and does not convert shapefiles into dataframes or GeoJSON.
+For serious use, you'd probably be better off using [tigris](https://github.com/walkerke/tigris)
+
## Installation
#### Command line tool
diff --git a/src/artifacts.jl b/src/artifacts.jl
@@ -9,31 +9,31 @@ Run this script once to update Artifacts.toml.
Bind the artifact from a GitHub-hosted tarball.
Run this script once to update Artifacts.toml.
"""
-function bind_github_artifact()
+# function bind_github_artifact()
-artifact_url = "https://github.com/eloualiche/TigerFetch.jl/releases/download/0.1.1/fips_state_county_list.tar.gz"
+# artifact_url = "https://github.com/eloualiche/TigerFetch.jl/releases/download/0.1.1/fips_state_county_list.tar.gz"
-# sha256
-artifact_hash_256 = "f00e895f9358863c07e9c6c3b9eedf199cc740aab0583ce25de39e9d7159b565"
+# # sha256
+# artifact_hash_256 = "f00e895f9358863c07e9c6c3b9eedf199cc740aab0583ce25de39e9d7159b565"
-# The SHA1 hash (obtained from sha256sum)
-# using SHA
-# artifact_path = "assets/fips_state_county_list.tar.gz"
-# artifact_hash = bytes2hex(open(sha1, artifact_path))
-artifact_hash = "d9f2ce485acf54390052e796cb4ccf8c01e70bcb"
-sha1_hash = Base.SHA1(artifact_hash)
+# # The SHA1 hash (obtained from sha256sum)
+# # using SHA
+# # artifact_path = "assets/fips_state_county_list.tar.gz"
+# # artifact_hash = bytes2hex(open(sha1, artifact_path))
+# artifact_hash = "d9f2ce485acf54390052e796cb4ccf8c01e70bcb"
+# sha1_hash = Base.SHA1(artifact_hash)
-# Bind the artifact with its SHA1 hash
-bind_artifact!(
- "Artifacts.toml", # Path to Artifacts.toml
- "fips_state_county_list", # Name of the artifact
- sha1_hash; # SHA1 hash (as a Base.SHA1 object)
- download_info=[(artifact_url, artifact_hash_256)], # URL for downloading the artifact and its SHA256 hash
- force=true # Overwrite if exists
-)
+# # Bind the artifact with its SHA1 hash
+# bind_artifact!(
+# "Artifacts.toml", # Path to Artifacts.toml
+# "fips_state_county_list", # Name of the artifact
+# sha1_hash; # SHA1 hash (as a Base.SHA1 object)
+# download_info=[(artifact_url, artifact_hash_256)], # URL for downloading the artifact and its SHA256 hash
+# force=true # Overwrite if exists
+# )
-end
+# end
"""