madrigal-jl 0.1.0__tar.gz → 0.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: madrigal-jl
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: Python wrapper for Madrigal.jl - access the Madrigal database via Julia
5
5
  Keywords: madrigal,julia,atmospheric-science,ionosphere
6
6
  License-Expression: MIT
@@ -20,18 +20,10 @@ Python wrapper for [Madrigal.jl](https://github.com/JuliaSpacePhysics/Madrigal.j
20
20
 
21
21
  ## Installation
22
22
 
23
- With pip (requires Julia to be installed separately):
24
-
25
23
  ```bash
26
24
  pip install madrigal-jl
27
25
  ```
28
26
 
29
- With pixi (installs Julia automatically):
30
-
31
- ```bash
32
- pixi add madrigal-jl
33
- ```
34
-
35
27
  The Julia package installs automatically on first use.
36
28
 
37
29
  ## Usage
@@ -4,18 +4,10 @@ Python wrapper for [Madrigal.jl](https://github.com/JuliaSpacePhysics/Madrigal.j
4
4
 
5
5
  ## Installation
6
6
 
7
- With pip (requires Julia to be installed separately):
8
-
9
7
  ```bash
10
8
  pip install madrigal-jl
11
9
  ```
12
10
 
13
- With pixi (installs Julia automatically):
14
-
15
- ```bash
16
- pixi add madrigal-jl
17
- ```
18
-
19
11
  The Julia package installs automatically on first use.
20
12
 
21
13
  ## Usage
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "madrigal-jl"
3
- version = "0.1.0"
3
+ version = "0.1.1"
4
4
  description = "Python wrapper for Madrigal.jl - access the Madrigal database via Julia"
5
5
  readme = "README.md"
6
6
  license = "MIT"
@@ -32,9 +32,8 @@ requires = [
32
32
  build-backend = "pdm.backend"
33
33
 
34
34
  [tool.pdm.build]
35
- package-dir = "src"
36
35
  includes = [
37
- "madrigal",
36
+ "src/madrigal",
38
37
  ]
39
38
 
40
39
  [tool.pixi.workspace]
@@ -0,0 +1,38 @@
1
+ """Python wrapper for Madrigal.jl."""
2
+
3
+ from juliacall import Main as jl
4
+
5
+ # Load the Julia package
6
+ jl.seval("using Madrigal")
7
+
8
+ # Re-export Julia functions
9
+ get_instruments = jl.Madrigal.get_instruments
10
+ get_experiments = jl.Madrigal.get_experiments
11
+ get_experiment_files = jl.Madrigal.get_experiment_files
12
+ get_experiment_file_parameters = jl.Madrigal.get_experiment_file_parameters
13
+ download_file = jl.Madrigal.download_file
14
+ download_files = jl.Madrigal.download_files
15
+ get_metadata = jl.Madrigal.get_metadata
16
+
17
+ # Configuration functions
18
+ set_default_server = jl.Madrigal.set_default_server
19
+ set_default_user = jl.Madrigal.set_default_user
20
+ clear_metadata_cache = jl.Madrigal.clear_metadata_cache_b
21
+
22
+ # Server constructor
23
+ Server = jl.Madrigal.Server
24
+
25
+ __all__ = [
26
+ "get_instruments",
27
+ "get_experiments",
28
+ "get_experiment_files",
29
+ "get_experiment_file_parameters",
30
+ "download_file",
31
+ "download_files",
32
+ "get_metadata",
33
+ "set_default_server",
34
+ "set_default_user",
35
+ "clear_metadata_cache",
36
+ "Server",
37
+ "jl",
38
+ ]