Add API for reading packages from disk and memory